commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
b61ed65f563d19845a48554353ce46d79a39d44e
kode/kwsdl/wsdl/element.h
kode/kwsdl/wsdl/element.h
/* This file is part of KDE. Copyright (c) 2005 Tobias Koenig <tokoe@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
/* This file is part of KDE. Copyright (c) 2005 Tobias Koenig <tokoe@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
Fix knode compilation on NetBSD. Patch by Mark Davies, thanks. BUG: 154721
Fix knode compilation on NetBSD. Patch by Mark Davies, thanks. BUG: 154721 svn path=/trunk/KDE/kdepim/; revision=753595
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
dfeaa08d905e605519683cb85d25976264941d61
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
Remove now somehow unnecessary empty mutex B section from 13/32
Remove now somehow unnecessary empty mutex B section from 13/32
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
163393732a9a781b6b057c39ee6b1e0c96b9d199
lib/Target/PowerPC/PPC32JITInfo.h
lib/Target/PowerPC/PPC32JITInfo.h
//===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- 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. // //===------------...
//===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- 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. // //===------------...
Implement all of the methods
Implement all of the methods git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18142 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap...
1dd166ddec4d0fa72c42101adf4b89d734a332de
lib/lists/includes/list_commons.h
lib/lists/includes/list_commons.h
#ifndef _LIBADT_LIST_COMMONS_H #define _LIBADT_LIST_COMMONS_H typedef void (*t_destroyfunc)(void *data); enum list_insert_el_mode { HEAD, TAIL }; typedef struct _list_root list_root; typedef struct _list_node list_node; struct _list_node; struct _list_root { int size; // Size of the list structure. t_destro...
Rename to reflect the list situation of this header
Rename to reflect the list situation of this header
C
mit
vndmtrx/libadt
730fae1f1d85b3fbe5c7cc35d89011228e441147
lib/objpipe/include/monsoon/objpipe/doc_.h
lib/objpipe/include/monsoon/objpipe/doc_.h
// Document groups and namespaces. ///\defgroup objpipe Object Pipes. /** * \defgroup objpipe_errors Object pipe error handling. * \ingroup objpipe */ /** * \defgroup objpipe_detail Object pipe implementation details. * \ingroup objpipe */ namespace monsooon { /** * \brief Namespace for object pipes. * * ...
// Document groups and namespaces. ///\defgroup objpipe Object Pipes /** * \defgroup objpipe_errors Object pipe error handling * \ingroup objpipe */ /** * \defgroup objpipe_detail Object pipe implementation details * \ingroup objpipe */ namespace monsooon { /** * \brief Namespace for object pipes. * * Obj...
Remove trailing dots in group definitions.
Remove trailing dots in group definitions.
C
bsd-2-clause
nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus
25910be18da219c4a5a6cd292e25eb8b1dd147ed
ipxe/local/general.h
ipxe/local/general.h
#define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define VLAN_CMD /* VLAN commands */
#define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define IMAGE_TRUST_CMD /* Image trust management commands */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define VLAN_CMD...
Add support for image trust commands
Add support for image trust commands
C
apache-2.0
antonym/netboot.xyz,antonym/netboot.xyz,Dedsec1/netboot.xyz,antonym/netboot.xyz,chris18890/netboot.xyz,chris18890/netboot.xyz,Dedsec1/netboot.xyz,Dedsec1/netboot.xyz
d377fe80b1396b82f8af7bfcd76f869410865001
tests-clar/attr/attr_expect.h
tests-clar/attr/attr_expect.h
#ifndef __CLAR_TEST_ATTR_EXPECT__ #define __CLAR_TEST_ATTR_EXPECT__ enum attr_expect_t { EXPECT_FALSE, EXPECT_TRUE, EXPECT_UNDEFINED, EXPECT_STRING }; struct attr_expected { const char *path; const char *attr; enum attr_expect_t expected; const char *expected_str; }; static inline void attr_check_expected( ...
Add missing header to test suite
attr: Add missing header to test suite
C
lgpl-2.1
yongthecoder/libgit2,mingyaaaa/libgit2,skabel/manguse,Aorjoa/libgit2_maked_lib,zodiac/libgit2.js,t0xicCode/libgit2,mingyaaaa/libgit2,rcorre/libgit2,yongthecoder/libgit2,maxiaoqian/libgit2,t0xicCode/libgit2,kissthink/libgit2,oaastest/libgit2,mrksrm/Mingijura,swisspol/DEMO-libgit2,jflesch/libgit2-mariadb,joshtriplett/lib...
8b013deb4e9cd4130ece436909878b7ec7d90a60
src/shared/platform/win/nacl_exit.c
src/shared/platform/win/nacl_exit.c
/* * Copyright 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ #include <stdlib.h> #include <stdio.h> #include "native_client/src/include/portability.h" #include "native_client/src/shared/platform/nacl_ex...
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * be found in the LICENSE file. */ #include <stdlib.h> #include <stdio.h> #include "native_client/src/include/portability.h" #include "native_client/src/shared/platform/...
Remove printfs in exit path
Remove printfs in exit path Due to failures in Win7Atom I added printfs for debugging. This CL removes the printfs which should not be in the shipping code. TEST= all BUG= nacl1561 Review URL: http://codereview.chromium.org/6825057 git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@4846 fcba33aa-ac0c-11dd-b9e7-8d...
C
bsd-3-clause
nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client
f31ae20e998e8a456632cc3e96ba20c9e7ae1b12
ext/fancy_math.c
ext/fancy_math.c
#include <ruby.h> #include "add.h" static VALUE call_add(VALUE rb_self, VALUE rb_a, VALUE rb_b) { // Convert ruby values to C integers int a = FIX2INT(rb_a); int b = FIX2INT(rb_b); // Call C function int result = add(a, b); // Convert C integer into ruby value and return it VALUE rb_result = INT2FIX(re...
Create core FancyMath module and add hooks for ruby to access the C logic
Create core FancyMath module and add hooks for ruby to access the C logic
C
mit
drosholt/fancy_math,drosholt/fancy_math,drosholt/fancy_math,drosholt/fancy_math
ac39ed3a80fd71af70de0222a9dd1545f4d59dea
implementation/Cuda/lbm_sailfish_hist/sim.h
implementation/Cuda/lbm_sailfish_hist/sim.h
#ifndef __SIM_H_ #define __SIM_H_ 1 #define GEO_FLUID 0 #define GEO_WALL 1 #define GEO_INFLOW 2 #define LAT_H 180 #define LAT_W 420 #define BLOCK_SIZE 64 struct Dist { float *fC, *fE, *fW, *fS, *fN, *fSE, *fSW, *fNE, *fNW; }; struct SimState { int *map, *dmap; // macroscopic quantities on the video card float ...
#ifndef __SIM_H_ #define __SIM_H_ 1 #define GEO_FLUID 0 #define GEO_WALL 1 #define GEO_INFLOW 2 #define LAT_H 180 #define LAT_W 420 #define BLOCK_SIZE 64 #ifdef USE_FLOATS #define double float #define __dadd_rn __fadd_rn #define __dmul_rn __fmul_rn #else #define float double #define __fadd_rn __dadd_rn #define __fmu...
Use doubles instead of floats ny default
Use doubles instead of floats ny default
C
mit
Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis
edef395077a75fd7137031a3ab83f8d1118dbb51
MySQL/HelloWorld/src/mysql-c-api.c
MySQL/HelloWorld/src/mysql-c-api.c
/* http://zetcode.com/db/mysqlc/ */ /* http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html */ #include <mysql.h> #include <stdio.h> main(){ MYSQL *conn; MYSQL_RES *res; MYSQL_ROW row; char *server = "localhost"; char *user = "sa"; char *password = "developsa"; /* set me first ...
Add C 'Hello World' for connect to MySQL
Add C 'Hello World' for connect to MySQL
C
mit
xatienza/c-labs
729361e8dc2b79aee6c185a112b30fc0c99529ed
You-DataStore/internal/operation.h
You-DataStore/internal/operation.h
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: virtual ~IOperation(); ...
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { namespace Internal { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: vir...
Move IOperation to Internal namespace
Move IOperation to Internal namespace
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
f1e2ac78eaa187d1ceabbb70883b2b9458580877
rest-extras/test-runner.c
rest-extras/test-runner.c
/* * librest - RESTful web services access * Copyright (C) 2009 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program ...
/* * librest - RESTful web services access * Copyright (C) 2009 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program ...
Add lastfm error handling to the test suite
Add lastfm error handling to the test suite
C
lgpl-2.1
GNOME/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,GNOME/librest,GNOME/librest
d7c9c58c7ef0b29fe6eb8c500e594aa99fbfdfef
security/nss/macbuild/NSSCommon.h
security/nss/macbuild/NSSCommon.h
/* Defines common to all versions of NSS */ #define NSPR20 1
/* Defines common to all versions of NSS */ #define NSPR20 1 #define MP_API_COMPATIBLE 1
Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build correctly.
Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build correctly.
C
mpl-2.0
nmav/nss,nmav/nss,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,nmav/nss
753e1d55744ab3e79fa79612fc907e267521fbc4
problem_5/solution.c
problem_5/solution.c
#include <stdio.h> #define LIST_SIZE 20 unsigned long mdc(unsigned long a, unsigned long b){ unsigned long mod; mod = a % b; while(mod != 0){ a = b; b = mod; mod = a % b; } return b; } unsigned long mmc(unsigned long a, unsigned long b){ unsigned long r = a * b / mdc(a, b); return r; } uns...
Add C implementation for problem 5
Add C implementation for problem 5
C
mit
mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler
7c5ab46059bd8fa8bc1649a8dd6073161e703f9e
src/plat/win32/win32commandline.h
src/plat/win32/win32commandline.h
#ifndef __win32commandline_h__ #define __win32commandline_h__ #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <assert.h> #include "..\..\commandline.h" class CWin32CommandLine : public CCommandLine { public: CWin32CommandLine(); ~CWin32CommandLine(); public: virtu...
#ifndef __win32commandline_h__ #define __win32commandline_h__ #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <assert.h> #include "../../commandline.h" class CWin32CommandLine : public CCommandLine { public: CWin32CommandLine(); ~CWin32CommandLine(); public: virtu...
Replace backslashes in paths with slashes; should be compatible with both win32 compilers and mingw32 on linux
Replace backslashes in paths with slashes; should be compatible with both win32 compilers and mingw32 on linux
C
lgpl-2.1
MateuszSnamina/yacas,MateuszSnamina/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,martanoga/yacas,martanoga/yacas,martanoga/yacas,qwert2003/yacas,MateuszSnamina/yacas,martanoga/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,qwert2003/yacas,tomaszkrysiuk/yacas,grzeg...
0968bf9a8ad06572c068e0024fcc29bbf744ef04
demo/src/input.h
demo/src/input.h
// Copyright 2020 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 w...
// Copyright 2020 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 w...
Move away from deprecated C++ APIs in the demo
Move away from deprecated C++ APIs in the demo A bit less cruft printed during tests which use it.
C
apache-2.0
google/autocxx,google/autocxx,google/autocxx,google/autocxx
04b4c5a77120a26053cd853c603ff12cedf03a76
testmud/mud/home/Game/sys/treed.c
testmud/mud/home/Game/sys/treed.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add daemon to handle tree growth in the future
Add daemon to handle tree growth in the future
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
9fd8c99a43beea140d4656bc5871ed2b0ea3328c
src/plugins/ccode/ccode.h
src/plugins/ccode/ccode.h
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #ifndef ELEKTRA_PLUGIN_CCODE_H #define ELEKTRA_PLUGIN_CCODE_H #include <kdbplugin.h> typedef struct { char encode[256]; char decode[256]; char escape; char * buf; size_t bufalloc; } CCodeData; ssize_t ke...
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #ifndef ELEKTRA_PLUGIN_CCODE_H #define ELEKTRA_PLUGIN_CCODE_H #include <kdbplugin.h> typedef struct { unsigned char encode[256]; unsigned char decode[256]; char escape; char * buf; size_t bufalloc; } CCod...
Use `unsigned char` for mapping
CCode: Use `unsigned char` for mapping
C
bsd-3-clause
e1528532/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra,petermax2/libelektra,mpra...
ce299fb3e2c5b68fd4a43975c854e5ffaf91d192
Ansi.c
Ansi.c
#include <stdio.h> #include <stdlib.h> #include <string.h> /* * 1) ĺһǸ 2) ΪͨԺǿ׳Ҫ󣬲ܶԿʹκμ */ #define PRINT_GREETINGS do { \ printf("Hi there!\n"); \ } while (0) int main(const int argc, const char* const* argv) { // macro PRINT_GREETINGS; return 0; }
Add ANSI C code snippet.
Add ANSI C code snippet.
C
mit
niucheng/Snippets,niucheng/Snippets,niucheng/Snippets
cda59be9314833305fad936ca78f625d9e4e7de1
include/llvm/ExecutionEngine/Orc/JITSymbol.h
include/llvm/ExecutionEngine/Orc/JITSymbol.h
//===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit.
[Orc] Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@228564 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/ll...
f6f3aa060523c5f9b223e9d9665c266381cc2b6e
src/ios/GalleryAPI.h
src/ios/GalleryAPI.h
#import <AssetsLibrary/AssetsLibrary.h> #import <AssetsLibrary/ALAssetsGroup.h> #import <Cordova/CDVPlugin.h> @interface GalleryAPI : CDVPlugin - (void) getAlbums:(CDVInvokedUrlCommand*)command; - (void) getMedia:(CDVInvokedUrlCommand*)command; @end
#import <Photos/Photos.h> #import <Cordova/CDVPlugin.h> @interface GalleryAPI : CDVPlugin - (void) getAlbums:(CDVInvokedUrlCommand*)command; - (void) getMedia:(CDVInvokedUrlCommand*)command; @end
Move to new Photo API
[ios] Move to new Photo API
C
mit
subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api,subitolabs/cordova-gallery-api,subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api
c9200d420f8320a8d57437ae346b161dd092408a
kernel/x86/gdt.h
kernel/x86/gdt.h
#ifndef KERNEL_X86_GDT_H #define KERNEL_X86_GDT_H #define NULL_SEGMENT 0 #define KCODE_SEGMENT 1 #define KDATA_SEGMENT 2 #define SEGOFF(seg) (8 * seg) #ifndef ASM_FILE typedef struct GDTDesc GDTDesc; extern GDTDesc gdt_desc; void gdt_load(GDTDesc *); #endif #endif
#ifndef KERNEL_X86_GDT_H #define KERNEL_X86_GDT_H /** * Support for managing the Global Descriptor Table (GDT) * * GDT initialization in zero is trivial at runtime: the entire structure is * baked into the binary, ready to go, and the bringup code need only load the * GDT pointer. A simple call to: * * gdt_...
Add some comments to the GDT header.
Add some comments to the GDT header.
C
isc
zenhack/zero,zenhack/zero,zenhack/zero
71bc80b60e70084812deb646c8a12a964c2463ba
src/util/viratomic.h
src/util/viratomic.h
/* * viratomic.h: atomic integer operations * * Copyright (C) 2012 IBM Corporation * * Authors: * Stefan Berger <stefanb@linux.vnet.ibm.com> * * 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 Sof...
Support for atomic operations on integers
Support for atomic operations on integers For threading support, add atomic add and sub operations working on integers. Base this on locking support provided by virMutex.
C
lgpl-2.1
wiedi/libvirt,trainstack/libvirt,jfehlig/libvirt,bjzhang/libvirt,jardasgit/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt1,emaste/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,emaste/libvirt,elmarco/libvirt,agx/libvirt,trainstack/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jfehlig/libvirt,andreabolognani/lib...
05bf8903188764ffe423b03b72b8c2cb44eeb6b2
testmud/mud/home/Game/sys/subd.c
testmud/mud/home/Game/sys/subd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add difference delta measurement routine
Add difference delta measurement routine
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
d3a2ae6d315382b2dcc7747c5b3b70f0490e9157
drivers/net/ixgbe/ixgbe_fcoe.c
drivers/net/ixgbe/ixgbe_fcoe.c
/******************************************************************************* Intel 10 Gigabit PCI Express Linux driver Copyright(c) 1999 - 2009 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, ver...
Add FCoE feature code to 82599
ixgbe: Add FCoE feature code to 82599 This adds the FCoE feature code ixgbe_fcoe.c to 82599. For a start, this patch only adds ixgbe_configure_fcoe() to configure related register for FCoE to 82599. In patches that follow, I will be adding more functions to ixgbe_fcoe.c to add support of FCoE offload features to 82599...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
33fbf34388889fb5e771f51f8c34ef39079f2aa3
micropython-1.5/stmhal/ledtask.c
micropython-1.5/stmhal/ledtask.c
#include "stdio.h" #include "FreeRTOS.h" #include "task.h" #include STM32_HAL_H void LedTask(void *pvParameters) { /* GPIO structure */ GPIO_InitTypeDef GPIO_InitStructure; /* Configure I/O speed, mode, output type and pull */ GPIO_InitStructure.Pin = GPIO_PIN_5; GPIO_InitStructure.Mode = GPIO_MOD...
#include "stdio.h" #include "FreeRTOS.h" #include "task.h" #include STM32_HAL_H void LedTask(void *pvParameters) { /* GPIO structure */ GPIO_InitTypeDef GPIO_InitStructure; /* Configure I/O speed, mode, output type and pull */ GPIO_InitStructure.Pin = GPIO_PIN_5; GPIO_InitStructure.Mode = GPIO_MOD...
Use HAL_Delay in LED Task
Use HAL_Delay in LED Task
C
mit
jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos
cebc280640017d412058c2bf40d31a5af3d82d32
Sources/Foundation/OCAFoundation.h
Sources/Foundation/OCAFoundation.h
// // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // /// Producers #import "OCAProducer.h" #import "OCACommand.h" #import "OCAHub.h" #import "OCAProperty.h" #import "OCAInvoker.h" #import "OCANotificator.h" #import "OCATimer...
// // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // /// Producers #import "OCAProducer.h" #import "OCACommand.h" #import "OCAHub.h" #import "OCAProperty.h" #import "OCATimer.h" #import "OCANotificator.h" /// Mediators #i...
Add missing classes to Foundation import
Add missing classes to Foundation import
C
mit
Tricertops/Objective-Chain,iMartinKiss/Objective-Chain
cde5e48b099ffafee3d30404f72871142959a494
test/test_trim.c
test/test_trim.c
#include <string_manip.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define TEST_STRS 4 char *test_strs_initial[TEST_STRS] = {" ", " a", "a ", " a "}; char *test_strs_correct[TEST_STRS] = {"", "a", "a", "a"}; int main() { int i; for(i = 0; i < TEST_STRS; i++) { char *dup...
#include <string_manip.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define TEST_STRS 6 char *test_strs_initial[TEST_STRS] = {"", " ", " a", "a ", " a ", " a a "}; char *test_strs_correct[TEST_STRS] = {"", "", "a", "a", "a", "a a"}; int main() { int i, result = 0; for(i = ...
Add more test cases to trim
Add more test cases to trim
C
mit
Coderlane/morse_translator
e682b4021995c43d257d0dda0a542723dfa35e68
src/common/timer.h
src/common/timer.h
#pragma once #include <boost/timer/timer.hpp> namespace marian { namespace timer { using Timer = boost::timer::cpu_timer; using AutoTimer = boost::timer::auto_cpu_timer; } }
#pragma once #include <boost/timer/timer.hpp> namespace marian { namespace timer { using Timer = boost::timer::cpu_timer; using AutoTimer = boost::timer::auto_cpu_timer; } }
Add new line at end
Add new line at end
C
mit
marian-nmt/marian-train,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/amunmt,emjotde/Marian,emjotde/amunn,marian-nmt/marian-train,emjotde/amunn,amunmt/marian,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/Marian,marian-nmt/marian-train,emjotde/amunmt,marian-nmt/marian-train,marian-nmt/marian-train
2dc37817bc768b03dacbbe72503216f5e0c7f2a0
cpu/lm4f120/include/hwtimer_cpu.h
cpu/lm4f120/include/hwtimer_cpu.h
/* * Copyright (C) 2015 Rakendra Thapa <rakendrathapa@gmail.coa> * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @ingroup cpu_lm4f120 * @{ * * @file * @brief C...
/* * Copyright (C) 2015 Rakendra Thapa <rakendrathapa@gmail.coa> * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @ingroup cpu_lm4f120 * @{ * * @file * @brief C...
Modify to have C++ compatible header
Modify to have C++ compatible header
C
lgpl-2.1
stevenj/RIOT,rfuentess/RIOT,lebrush/RIOT,malosek/RIOT,adrianghc/RIOT,immesys/RiSyn,bartfaizoltan/RIOT,binarylemon/RIOT,jfischer-phytec-iot/RIOT,binarylemon/RIOT,avmelnikoff/RIOT,attdona/RIOT,abp719/RIOT,stevenj/RIOT,MonsterCode8000/RIOT,centurysys/RIOT,arvindpdmn/RIOT,RubikonAlpha/RIOT,DipSwitch/RIOT,adrianghc/RIOT,avm...
7ddebf3b6651e4c18b9ec9692c214429b5e89912
Modules/Components/DisplacementFieldMeshWarper/include/selxModuleDisplacementFieldMeshWarper.h
Modules/Components/DisplacementFieldMeshWarper/include/selxModuleDisplacementFieldMeshWarper.h
/*========================================================================= * * Copyright Leiden University Medical Center, Erasmus University Medical * Center and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
Add displacement mesh warper module header file
ENH: Add displacement mesh warper module header file
C
apache-2.0
kaspermarstal/SuperElastix,kaspermarstal/SuperElastix,SuperElastix/SuperElastix,SuperElastix/SuperElastix,kaspermarstal/SuperElastix,SuperElastix/SuperElastix,SuperElastix/SuperElastix
b6e07bbe538d0e7620b5f8c4786526f485e9c6fa
tests/addition_tests.c
tests/addition_tests.c
#include <check.h> #include "../src/roman_calculator.h" START_TEST(can_add_by_simple_repetition) { ck_assert_str_eq("II", roman_calculator_add("I", "I")); ck_assert_str_eq("III", roman_calculator_add("I", "II")); ck_assert_str_eq("XXX", roman_calculator_add("XX", "X")); ck_assert_str_eq("CC", roman_calculator_add...
#include <stdlib.h> #include <check.h> #include "../src/roman_calculator.h" void verify_addition(const char *left, const char *right, const char *expected_result) { char *actual_result = roman_calculator_add(left, right); ck_assert_msg( strcmp(expected_result, actual_result) == 0, "%s + %s: expected %s, but w...
Make sure to free memory in tests, and have better failure messages
Make sure to free memory in tests, and have better failure messages
C
mit
greghaskins/roman-calculator.c
f58c4ece0ec733f0703325c9d3d38c786258d493
tests/regression/56-witness/05-prec-problem.c
tests/regression/56-witness/05-prec-problem.c
//PARAM: --enable witness.yaml.enabled --enable ana.int.interval #include <stdlib.h> int foo(int* ptr1, int* ptr2){ int result; if(ptr1 == ptr2){ result = 0; } else { result = 1; } // Look at the generated witness.yml to check whether there contradictory precondition_loop_invariant[...
Add example where the generated witnesses are unsound.
Add example where the generated witnesses are unsound. In this example, among others, the following precondition_loop_invariants are generated: loop_invariant: string: result == 1 [...] precondition: string: '*ptr1 == 5 && *ptr2 == 5' and: loop_invariant: string: result == 0 [...] preconditi...
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
231c752d99db285edc7cdfce77297ce63f23f34a
src/tconf.c
src/tconf.c
// Copyright 2017 Adam Cowdy // // 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 w...
// Copyright 2017 Adam Cowdy // // 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 w...
Fix 'implicitly declaring library function 'malloc' ...' warning
Fix 'implicitly declaring library function 'malloc' ...' warning
C
apache-2.0
Acowdy/tconf
b36bf96bc95556d07cfa3c289beb51a998723d19
library/library_pch.h
library/library_pch.h
#pragma once #include "dependencies/tinyformat/tinyformat.h" #include <algorithm> #include <boost/algorithm/string/predicate.hpp> #include <boost/locale.hpp> #include <cstdint> #include <fstream> #include <glm/glm.hpp> #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <iostream> #include <istream> #include <ite...
#pragma once #include "dependencies/tinyformat/tinyformat.h" #include <algorithm> #include <cstdint> #include <fstream> #include <glm/glm.hpp> #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <map> #include <memory> #i...
Remove some rarely-used headers from library pch
Remove some rarely-used headers from library pch
C
mit
FranciscoDA/OpenApoc,Istrebitel/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,Istrebitel/OpenApoc,pmprog/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,pmprog/OpenApoc
2d48efc8e7fd44688f5dcb8bad5b91ffba39c0aa
src/google/protobuf/stubs/atomicops_internals_pnacl.h
src/google/protobuf/stubs/atomicops_internals_pnacl.h
// Protocol Buffers - Google's data interchange format // Copyright 2012 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
Add the missing PNaCl atomicops support.
Add the missing PNaCl atomicops support.
C
bsd-3-clause
LeslieW/protobuf,LeslieW/protobuf,LeslieW/protobuf,LeslieW/protobuf
c1289c7c8c4b373ca6682c3e33fa1f030b46685c
examples/blink_modular/Atm_blink.h
examples/blink_modular/Atm_blink.h
#ifndef Atm_blink_h #define Atm_blink_h #include <Automaton.h> class Atm_blink: public Machine { public: Atm_blink( void ) : Machine() { class_label = "BLNK"; }; short pin; atm_timer_millis timer; enum { LED_ON, LED_OFF } STATES; enum { EVT_TIMER, ELSE } EVENTS; enum { ACT_ON, ACT_OF...
#ifndef Atm_blink_h #define Atm_blink_h #include <Automaton.h> class Atm_blink: public Machine { public: Atm_blink( void ) : Machine() { class_label = "BLNK"; }; short pin; atm_timer_millis timer; enum { LED_ON, LED_OFF } STATES; enum { EVT_TIMER, ELSE } EVENTS; enum ...
Update blink_modular.ino: changed blinkrate argument to uint32_t
Update blink_modular.ino: changed blinkrate argument to uint32_t
C
mit
tinkerspy/Automaton,tinkerspy/Automaton
a0ff95bed586084cdbd693a3f71e902c7aafa7f2
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
Add restricted GPIO pins for FPGA testing
LPC55S69: Add restricted GPIO pins for FPGA testing
C
apache-2.0
kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed
9ff859ce71b1df689af6df4434ceddd7c107e8b1
apps/Empty/main.c
apps/Empty/main.c
/* * Copyright (c) 2008-2012 the MansOS team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of con...
/* * Copyright (c) 2008-2012 the MansOS team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of con...
Fix comment for Empty app
Fix comment for Empty app
C
mit
IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS
f6cddeef0ef79460b257b86e6ffe5cb57534c28e
OneTimePasswordLegacy/OneTimePasswordLegacy.h
OneTimePasswordLegacy/OneTimePasswordLegacy.h
// // OneTimePasswordLegacy.h // OneTimePasswordLegacy // // Created by Matt Rubin on 7/10/14. // Copyright (c) 2014 Matt Rubin. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for OneTimePasswordLegacy. FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber; //! Project version s...
// // OneTimePasswordLegacy.h // OneTimePasswordLegacy // // Created by Matt Rubin on 7/10/14. // Copyright (c) 2014 Matt Rubin. All rights reserved. // @import Foundation; //! Project version number for OneTimePasswordLegacy. FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber; //! Project version strin...
Remove unnecessary import of UIKit
Remove unnecessary import of UIKit
C
mit
mattrubin/onetimepassword,mattrubin/onetimepassword
4447cbac38eca7657a77e5d96a4c9f9d9710207c
src/main.c
src/main.c
/** * main.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "common.h" #include "argv.h" #include "daemon.h" #include "usage.h" int main (int argc, char *argv[]) { int i; /** * If the `--help` option was given, display usage details and exit */ if (in_array(GIT_STASHD_USAGE_OPT,...
/** * main.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "common.h" #include "argv.h" #include "daemon.h" #include "usage.h" int main (int argc, char *argv[]) { /** * If the `--help` option was given, display usage details and exit. */ if (in_array(GIT_STASHD_USAGE_OPT, argv, a...
Work on --daemon option handling
Work on --daemon option handling
C
mit
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
cceede5a3cbe1b8b508b8193aafb75d44319d472
gps-transmitter/gps_transmitter/xbee_helpers.h
gps-transmitter/gps_transmitter/xbee_helpers.h
/* * */ typedef union { float floatingPoint; byte binary[4]; } binaryFloat; uint8_t setXBeePanId (uint16_t addr); uint8_t setXBeeMyAddress (uint16_t addr); uint8_t setXBeeChannel (uint8_t channel); uint8_t setXBeeHoppingChannel (uint8_t channel); uint8_t setXBeeChannelVerification (uint8_t mode); uint8_t setXBe...
/* * */ typedef union { float floatingPoint; byte binary[4]; } binaryFloat; uint8_t setXBeePanId (uint16_t addr); uint8_t setXBeeMyAddress (uint16_t addr); uint8_t setXBeeChannel (uint8_t channel); uint8_t setXBeeHoppingChannel (uint8_t channel); uint8_t setXBeeChannelVerification (uint8_t mode); uint8_t setXBe...
Make the declatarion match reality.
Make the declatarion match reality.
C
isc
lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker
c9df2beb473f7461797074c51789761e0dbc1567
cmake/utils/CheckJemallocBuilds.c
cmake/utils/CheckJemallocBuilds.c
#include <jemalloc.h> int main(int argc, char** argv) { (void)argv; return argc + (int)(malloc(42)); }
#include <jemalloc.h> int main(int argc, char** argv) { void *volatile dummyPtr = malloc(42); (void)argv; return argc; }
Fix a -Wpointer-to-int-cast when searching Jemalloc
[CMAKE] Fix a -Wpointer-to-int-cast when searching Jemalloc Summary: This would trigger failures when `-Werror` is enabled, such as: https://build.bitcoinabc.org/viewLog.html?tab=buildLog&logTab=tree&filter=debug&expand=all&buildId=66573&guest=1#footer Test Plan: cmake -GNinja .. \ -DUSE_JEMALLOC_EXPERIMENTAL=O...
C
mit
cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc...
e0b1bc3afd755baa44092cfb0e80926718f8f9f8
ObjectiveC_AdvancedFeatures/ObjectiveC_AdvancedFeatures/Protocol_and_Proxy/MyProtocol.h
ObjectiveC_AdvancedFeatures/ObjectiveC_AdvancedFeatures/Protocol_and_Proxy/MyProtocol.h
/************************************************************************************************** * File name : MyProtocol.h * Description : Study how to create a protocol and use it. * Creator : Frederick Hsu * Creation date: Wed. 07 Sep. 2016 * Copyright(C) 2016 All rights reserved. * **********...
Define a protocol, study how to create and use the protocol in Objective-C programming.
Define a protocol, study how to create and use the protocol in Objective-C programming.
C
apache-2.0
Frederick-Hsu/iOS_Objective_C_Development,Frederick-Hsu/iOS_Objective_C_Development
b575eb91ea7cf5917ac6917e9ce2fb289915e24b
kernel/muen/muen-console.c
kernel/muen/muen-console.c
/* * Copyright (c) 2017 Contributors as noted in the AUTHORS file * * This file is part of Solo5, a unikernel base layer. * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the above copyright notice and this permission no...
Add console implementation for Muen
Add console implementation for Muen The console writes output using a shared memory stream channel.
C
isc
djwillia/solo5,Weichen81/solo5,Weichen81/solo5,mato/solo5,mato/solo5,djwillia/solo5,Weichen81/solo5,djwillia/solo5,Solo5/solo5,Solo5/solo5,mato/solo5
6d21ed0d97f5486c6508082c3646ad26024dc7a6
src/plugins/zlib/istream-bzlib.c
src/plugins/zlib/istream-bzlib.c
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gzread BZ2_bzread #de...
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <stdio.h> #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gz...
Include stdio.h in case bzlib.h needs it.
bzlib: Include stdio.h in case bzlib.h needs it.
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
3446ef49a05fe50bc1e6632983f9d78033af7be4
src/global_mapper/global_mapper.h
src/global_mapper/global_mapper.h
// Copyright 2017 Massachusetts Institute of Technology #pragma once #include <csignal> #include <deque> #include <vector> #include <mutex> #include "pcl_ros/point_cloud.h" namespace global_mapper { typedef pcl::PointCloud<pcl::PointXYZ> PointCloud; class GlobalMapper { public: explicit GlobalMapper(volatile st...
// Copyright 2017 Massachusetts Institute of Technology #pragma once #include <csignal> #include <deque> #include <vector> #include <mutex> #include "pcl_ros/point_cloud.h" namespace global_mapper { typedef pcl::PointCloud<pcl::PointXYZ> PointCloud; class GlobalMapper { public: explicit GlobalMapper(volatile st...
Delete copy and move constructors.
Delete copy and move constructors.
C
mit
jakeware/global_mapper
0cd7be4c4d330aa4f8918986b59e104411bf107d
test/PCH/modified-header-crash.c
test/PCH/modified-header-crash.c
// Don't crash. // RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t // RUN: touch %S/modified-header-crash.h // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only void f(void) { foo = 3; }
// Don't crash. // RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t // RUN: touch %S/modified-header-crash.h // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only // FIXME: On Windows we don't detect that the header was modified ? // XFAIL: win32 void f(void) { foo = 3; }
Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp.
Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@130204 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
467b5716d03b64dfe37c66769576ce9fe1d7fa62
tests/matcher_argument_run_tests.c
tests/matcher_argument_run_tests.c
// // Created by Jake Kinsella on 6/19/17. // #include <assert.h> #include "../src/matcher/matcher.h" int main(int argc, const char* argv[]) { return 0; }
// // Created by Jake Kinsella on 6/19/17. // #include <assert.h> #include "../src/matcher/matcher.h" #include "../src/registers.h" void dst_run(uint8_t *dst_register); void src_run(const uint8_t src_register); void rp_run(RegisterPair *dst_register_pair); void dst_src_run(uint8_t *dst_register, const uint8_t src_reg...
Create dummy functions for future matcher tests
Create dummy functions for future matcher tests
C
mit
TheLocust3/Intel-8080-Emulator,TheLocust3/Intel-8080-Emulator
c7b85c55569d65966601ba3fc1cdc709d1693fe7
src/qt/logging/messageboxlogger.h
src/qt/logging/messageboxlogger.h
/*Copyright 2010-2015 George Karagoulis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/*Copyright 2010-2015 George Karagoulis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
Allow to change the parent widget after construction. Sometimes your main widget changes and you don't want to make a new logger.
Allow to change the parent widget after construction. Sometimes your main widget changes and you don't want to make a new logger.
C
apache-2.0
karagog/gutil,karagog/gutil,karagog/gutil
496e639962fb8add9c62896cfd3c30096a1bdf08
src/libOL/Chunks.h
src/libOL/Chunks.h
// Copyright (c) 2014 Andrew Toulouse. // Distributed under the MIT License. #ifndef __libol__Chunks__ #define __libol__Chunks__ #include <vector> #include <cstdint> namespace libol { namespace Chunks { static std::vector<uint8_t> decrypt(std::vector<uint8_t> bytes, std::vector<uint8_t> key); } } #e...
// Copyright (c) 2014 Andrew Toulouse. // Distributed under the MIT License. #ifndef __libol__Chunks__ #define __libol__Chunks__ #include <vector> #include <cstdint> namespace libol { namespace Chunks { std::vector<uint8_t> decryptAndDecompress(std::vector<uint8_t> bytes, std::vector<uint8_t> key); }...
Fix dumb header issue (didn't update implementation)
Fix dumb header issue (didn't update implementation)
C
mit
loldevs/libOL,loldevs/libOL
7ddca23839bcd6316a185970fa78c2ce5813c23d
test/CodeGen/ms-inline-asm-EVEN.c
test/CodeGen/ms-inline-asm-EVEN.c
// RUN: %clang_cc1 %s -triple i386-unknown-unknown -fasm-blocks -emit-llvm -o - | FileCheck %s // CHECK: .byte 64 // CHECK: .byte 64 // CHECK: .byte 64 // CHECK: .even void t1() { __asm { .byte 64 .byte 64 .byte 64 EVEN mov eax, ebx } }
Add support for MS 'EVEN' directive
[X86][inline-asm] Add support for MS 'EVEN' directive MS assembly syntax provide us with the 'EVEN' directive as a synonymous to at&t '.even'. This patch include the (small, simple) changes need to allow it. llvm-side: https://reviews.llvm.org/D27417 Differential Revision: https://reviews.llvm.org/D27418 git-svn-...
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
ed2c064dc76995cd8027b7c27a4de00ffc28bebc
system.h
system.h
#ifndef SYSTEM_H #define SYSTEM_H #define FIXED_ADDRESS_MEMORY #define IN_DATA_BUFFER_ADDRESS_TAG __at(0x200) // for CDC device (XC8) #define OUT_DATA_BUFFER_ADDRESS_TAG __at(0x240) #define CONTROL_BUFFER_ADDRESS_TAG __at(0x280) #define DRIVER_DATA_ADDRESS_TAG __at(0x2C0) #endif
Use static USB buffer positions.
Use static USB buffer positions.
C
apache-2.0
kmzbrnoI/uLI-fw,kmzbrnoI/uLI-fw
3306b3ed35a2501ad2b517e10b09940b85072d33
webkit/glue/webkit_constants.h
webkit/glue/webkit_constants.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
Increase the minimum interval for timers on background tabs to reduce their CPU consumption.
Increase the minimum interval for timers on background tabs to reduce their CPU consumption. The new interval is 1000 ms, or once per second. We can easily adjust this value up or down, but this seems like a reasonable value to judge the compatibility impact of this change. BUG=66078 TEST=none (tested manually with m...
C
bsd-3-clause
junmin-zhu/chromium-rivertrail,patrickm/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,littlstar/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,TheTyp...
037429a86d8cd163f2d0af608f6e415bdf891bab
webkit/glue/unittest_test_server.h
webkit/glue/unittest_test_server.h
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #include "net/base/load_flags.h" #include "net/test/te...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #include "net/base/load_flags.h" #include "net/test/test_se...
Remove usage of a deprecated TestServer constructor.
Remove usage of a deprecated TestServer constructor. Hostname must now be explicitly specified (previously default was 127.0.0.1). See the following CL for further details: http://codereview.chromium.org/9369029/ A follow-up CL will remove the deprecated constructor: http://codereview.chromium.org/9431002/ BUG=114...
C
bsd-3-clause
adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,ado...
aa7e1ce0e564afd205acd5fc1323cd18232b0620
TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c
TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c
/* Copyright (c) 2018 ARM Limited * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
/* Copyright (c) 2018 ARM Limited * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
Fix its tests in non-psa targets
Fix its tests in non-psa targets
C
apache-2.0
mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed
0e52c608224046c8e6a737e13bf0ca258fea87e3
src/ConfirmationHandler.h
src/ConfirmationHandler.h
/* * This file is part of btag. * * © 2011 Fernando Tarlá Cardoso Lemos * * Refer to the LICENSE file for licensing information. * */ #ifndef CONFIRMATION_HANDLER_H #define CONFIRMATION_HANDLER_H #include <string> #include "BasicStringFilter.h" #include "InteractiveTerminal.h" class ConfirmationHandler { ...
/* * This file is part of btag. * * © 2011 Fernando Tarlá Cardoso Lemos * * Refer to the LICENSE file for licensing information. * */ #ifndef CONFIRMATION_HANDLER_H #define CONFIRMATION_HANDLER_H #include <string> #include "BasicStringFilter.h" #include "InteractiveTerminal.h" class ConfirmationHandler { ...
Remove unused private instance variable
Remove unused private instance variable btag now compiles again in OS X without warnings.
C
bsd-2-clause
fernandotcl/btag,fernandotcl/btag
44562efeedb317fecdcbe60b802d86ec361b6f61
ext/cool.io/ev_wrap.h
ext/cool.io/ev_wrap.h
#define EV_STANDALONE /* keeps ev from requiring config.h */ #ifdef _WIN32 # define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */ # define FD_SETSIZE 2048 /* wishful thinking, as msvcrt6 [?] seems to only allow 512 fd's and 256 sockets max */ #endif #include "../libev/ev.h"
#define EV_STANDALONE /* keeps ev from requiring config.h */ #ifdef _WIN32 #define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */ #define EV_USE_MONOTONIC 0 #define EV_USE_REALTIME 0 #endif #include "../libev/ev.h"
Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows
Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows
C
mit
nurse/cool.io,tarcieri/cool.io,nurse/cool.io,tarcieri/cool.io,tarcieri/cool.io,cosmo0920/cool.io,cosmo0920/cool.io
0b0347a7fded792024f223c7693bed7f7a91881c
ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h
ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h
// // NSString+RACKeyPathUtilities.h // ReactiveCocoa // // Created by Uri Baghin on 05/05/2013. // Copyright (c) 2013 GitHub, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (RACKeyPathUtilities) // Returns an array of the components of the receiver, or nil if the receiver is ...
// // NSString+RACKeyPathUtilities.h // ReactiveCocoa // // Created by Uri Baghin on 05/05/2013. // Copyright (c) 2013 GitHub, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (RACKeyPathUtilities) // Returns an array of the components of the receiver. // // Calling this method ...
Change RACKeyPathUtilities to be undefined on strings that aren't key paths.
Change RACKeyPathUtilities to be undefined on strings that aren't key paths.
C
mit
KJin99/ReactiveCocoa,buildo/ReactiveCocoa,pzw224/ReactiveCocoa,paulyoung/ReactiveCocoa,terry408911/ReactiveCocoa,swizzlr/ReactiveCocoa,brightcove/ReactiveCocoa,tonyli508/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,Khan/ReactiveCocoa,calebd/ReactiveCocoa,Ethan89/ReactiveCocoa,loupman/ReactiveCocoa,llb1119/test,KuPai32G/Reac...
c938227b9fcbf43d079bfd3a1e12244da2b3b73c
include/psp2/update.h
include/psp2/update.h
/** * \usergroup{SceUpdateMgr} * \usage{psp2/update.h,SceSblSsUpdateMgr_stub} */ #ifndef _PSP2_UPDATE_MGR_H_ #define _PSP2_UPDATE_MGR_H_ #include <psp2/types.h> typedef char SceUpdateMode; #define SCE_UPDATE_MODE_SWU_GUI 0x10 #define SCE_UPDATE_MODE_SWU_CUI 0x30 /** * Getting system update mode on boot * * @...
/** * \usergroup{SceUpdateMgr} * \usage{psp2/update.h,SceSblSsUpdateMgr_stub} */ #ifndef _PSP2_UPDATE_MGR_H_ #define _PSP2_UPDATE_MGR_H_ #include <psp2/types.h> typedef char SceUpdateMode; #define SCE_UPDATE_MODE_SWU_GUI 0x10 #define SCE_UPDATE_MODE_SWU_CUI 0x30 /** * Getting system update mode on boot * * @...
Fix compatibility with some modules
Fix compatibility with some modules
C
mit
Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers
8969691343354bdd80eff5405a0f879edbf013d6
arch/x86/include/asm/jump_label.h
arch/x86/include/asm/jump_label.h
#ifndef _ASM_X86_JUMP_LABEL_H #define _ASM_X86_JUMP_LABEL_H #ifdef __KERNEL__ #include <linux/types.h> #include <asm/nops.h> #define JUMP_LABEL_NOP_SIZE 5 # define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t" # define JUMP_LABEL(key, label) \ do { \ asm goto("1:" \ JUMP_LABEL_INITIAL_NO...
#ifndef _ASM_X86_JUMP_LABEL_H #define _ASM_X86_JUMP_LABEL_H #ifdef __KERNEL__ #include <linux/types.h> #include <asm/nops.h> #define JUMP_LABEL_NOP_SIZE 5 # define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t" # define JUMP_LABEL(key, label) \ do { \ asm goto("1:" \ JUMP_LABEL_INITIAL_NO...
Fix jump label with RO/NX module protection crash
x86: Fix jump label with RO/NX module protection crash If we use jump table in module init, there are marked as removed in __jump_table section after init is done. But we already applied ro permissions on the module, so we can't modify a read only section (crash in remove_jump_label_module_init). Make the __jump_tab...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,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,TeamVee-Kanas/android_kernel_samsung_kanas,Krist...
bbf167646bc113cbf33bc9e6e5bdf99314187e49
test/CodeGen/ms-inline-asm-align.c
test/CodeGen/ms-inline-asm-align.c
// REQUIRES: x86-registered-target // RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s --check-prefix=DARWIN // RUN: %clang_cc1 %s -triple i686-pc-win32 -fasm-blocks -emit-llvm -o - | FileCheck %s --check-prefix=WINDOWS // On Windows, .align is in bytes, and on Darwin, .align ...
Test case for alignment directive change in LLVM r251418
[ms-inline-asm] Test case for alignment directive change in LLVM r251418 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@251419 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
ff4f57f38db46266b15f843aa65fb4eada76d9de
mod_xinerama/ls_xinerama.c
mod_xinerama/ls_xinerama.c
#include <X11/Xlib.h> #include <X11/extensions/Xinerama.h> #include <stdbool.h> #include <stdio.h> int main() { Display *dpy = XOpenDisplay(NULL); int xinerama_event_base; int xinerama_error_base; bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base); if (!xi...
#include <X11/Xlib.h> #include <X11/extensions/Xinerama.h> #include <stdbool.h> #include <stdio.h> int main() { Display *dpy = XOpenDisplay(NULL); int xinerama_event_base; int xinerama_error_base; bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base); fprintf...
Document command to get even more details
Document command to get even more details
C
lgpl-2.1
knixeur/notion,neg-serg/notion,p5n/notion,dkogan/notion,raboof/notion,p5n/notion,dkogan/notion,p5n/notion,anoduck/notion,p5n/notion,dkogan/notion,neg-serg/notion,dkogan/notion.xfttest,knixeur/notion,anoduck/notion,raboof/notion,anoduck/notion,raboof/notion,p5n/notion,raboof/notion,anoduck/notion,neg-serg/notion,knixeur...
af1ac09a53e9b9f7d330522b7109c3ae65dbba61
sys/sys/dataacq.h
sys/sys/dataacq.h
/* Header for general data acquisition definitions. */ #ifndef _SYS_DATAACQ_H_ #define _SYS_DATAACQ_H_ #include <sys/ioccom.h> /* Period in microseconds between analog I/O samples. */ #define AD_MICRO_PERIOD_SET _IOW('A', 1, long) #define AD_MICRO_PERIOD_GET _IOR('A', 2, long) /* Gain list support. Initially all...
Put back this wholly innocent victim of Mike's drive-by shooting on alog; it belongs to the labpc driver. Mike will be in the corner wearing the pointed hat, should anyone be looking for him.
Put back this wholly innocent victim of Mike's drive-by shooting on alog; it belongs to the labpc driver. Mike will be in the corner wearing the pointed hat, should anyone be looking for him.
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
627c29bd229a5fb302087c4360d461079b59df9d
subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h
subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h
/* * Called by the Gradle CUnit launcher to register all CUnit tests. */ void gradle_cunit_register();
/* * Called by the Gradle CUnit launcher to register all CUnit tests. */ void gradle_cunit_register();
Add newline to end of generated cunit header file
Add newline to end of generated cunit header file
C
apache-2.0
blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,gradle/grad...
9f18e587c4365cab87c12df3ca889d96ee345e76
test/unit/test_exception.c
test/unit/test_exception.c
#include "preamble.h" int main(int argc, char const *argv[]) { hvm_gen *gen = hvm_new_gen(); hvm_obj_ref *obj0 = NULL; hvm_obj_ref *obj1 = NULL; byte reg0 = hvm_vm_reg_gen(0); byte reg1 = hvm_vm_reg_gen(1); // Immediately jump to the code that's going to throw the exception hvm_gen_goto_label(gen->bloc...
Add basic exceptions unit test
Add basic exceptions unit test
C
mpl-2.0
dirk/hivm,dirk/hivm,dirk/hivm,dirk/hivm
8b3bbb541d210883666ea58c21e0bd33de8ac96c
list.h
list.h
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); #endif
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); #endif
Add List destroy function declaration
Add List destroy function declaration
C
mit
MaxLikelihood/CADT
816bde39fe14670950bca6555adfb25d62aed147
chrome/nacl/nacl_broker_listener.h
chrome/nacl/nacl_broker_listener.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_NACL_NACL_BROKER_LISTENER_H_ #define CHROME_NACL_NACL_BROKER_LISTENER_H_ #pragma once #include "base/memory/scoped_ptr.h" #include "ba...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_ #define CHROME_NACL_NACL_BROKER_LISTENER_H_ #pragma once #include "base/memory/scoped_ptr.h" #include "ba...
Remove declaration of non-existent method
NaCl: Remove declaration of non-existent method BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9592039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125431 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,ondra-novak/chromium.src,keishi/chromium,timopulkkinen/BubbleFish,rogerwang/chromium,hgl888/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacew...
74eb3e370f275ef1825b2a5fb877cf7f1ae9be52
tests/regression/15-deadlock/11-common_mutex_nodeadlock.c
tests/regression/15-deadlock/11-common_mutex_nodeadlock.c
// PARAM: --set ana.activated[+] deadlock #include <pthread.h> #include <stdio.h> int g1, g2; pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutex3 = PTHREAD_MUTEX_INITIALIZER; void *t1(void *arg) { pthread_mutex_lock(&mutex3); // NODEADLOCK ...
Add TODO no deadlock test due to common mutex
Add TODO no deadlock test due to common mutex
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
be9a42d018015f8c8a2037884a9bfa1e1a240676
src/chemkit/vector3.h
src/chemkit/vector3.h
/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** ** This file is part of chemkit. For more information see ** <http://www.chemkit.org>. ** ** chemkit is free software: you can redistribute it and/or modify ** it under the ...
/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** ** This file is part of chemkit. For more information see ** <http://www.chemkit.org>. ** ** chemkit is free software: you can redistribute it and/or modify ** it under the ...
Add documentation to Vector3 typedefs
Add documentation to Vector3 typedefs This adds documentation for the Vector3f and Vector3d typedefs.
C
bsd-3-clause
kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit
2db6decc5d89b83aa2560f11f0039925998095a5
src/exercise203.c
src/exercise203.c
/* * A solution to Exercise 2-3 in The C Programming Language (Second Edition). * * This file was written by Damien Dart <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <ctype....
Add solution to Exercise 2-3.
Add solution to Exercise 2-3.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
37267bfe7ecf46ce3a37b1156c51c6076815c16f
src/platform/assert.h
src/platform/assert.h
// Copyright (c) 2015, the scalloc project authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_PLATFORM_ASSERT_H_ #define SCALLOC_PLATFORM_ASSERT_H_ #include "log.h" #define DISALLOW...
// Copyright (c) 2015, the scalloc project authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_PLATFORM_ASSERT_H_ #define SCALLOC_PLATFORM_ASSERT_H_ #include "log.h" #define DISALLOW...
Allow ScallocAssert() to be used in Release code
Allow ScallocAssert() to be used in Release code
C
bsd-2-clause
cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc
4319688dfb39444d9edcc384e4c56977967cda4b
src/includes/kernel/util.h
src/includes/kernel/util.h
/** arm-016-util.h */ #ifndef RPI_UTIL_H #define RPI_UTIL_H #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SCREEN_DEPTH 24 /* 16 or 32-bit */ #define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */ #include <math.h> typedef struct { float r; float g; ...
/** arm-016-util.h */ #ifndef RPI_UTIL_H #define RPI_UTIL_H #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SCREEN_DEPTH 24 /* 16 or 32-bit */ #define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */ #include <math.h> #include <stdlib.h> typedef struct { float...
Include stdlib.h and changed function declaration to extern
Include stdlib.h and changed function declaration to extern
C
mit
Neo-Desktop/bare-metal-pi,Neo-Desktop/bare-metal-pi
362fb9e62b878adae788b3120608418da057d522
arch/arm/core/irq_offload.c
arch/arm/core/irq_offload.c
/* * Copyright (c) 2015 Intel corporation * * 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 ...
/* * Copyright (c) 2015 Intel corporation * * 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 ...
Fix irq offload inline asm memory ordering.
arm: Fix irq offload inline asm memory ordering. Add a "memory" clobber to inline asm SVC call to ensure the compiler does not reorder the instruction relative to other memory accesses. Issue found by inspect the source code. There is no evidence to suggest that this bug will manifest for any current ARM target usin...
C
apache-2.0
punitvara/zephyr,runchip/zephyr-cc3220,fbsder/zephyr,Vudentz/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,ldts/zephyr,runchip/zephyr-cc3200,holtmann/zephyr,kraj/zephyr,runchip/zephyr-cc3200,nashif/zephyr,runchip/zephyr-cc3220,kraj/zephyr,bigdinotech/zephyr,zephyrproject-rtos/zephyr,erwango/zephyr,r...
b0a84087556b24b9fa76306a80ed7fb59f2dac11
dtool/src/parser-inc/stdtypedefs.h
dtool/src/parser-inc/stdtypedefs.h
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file stdtypedefs.h * @autho...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file stdtypedefs.h * @autho...
Fix issue with Windows build
Fix issue with Windows build
C
bsd-3-clause
chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,t...
c960766f51d6ad7069f2ef0084f2f31fbdf20365
igor/parser/DEIgorParserException.h
igor/parser/DEIgorParserException.h
@interface DEIgorParserException : NSObject + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
@interface DEIgorParserException : NSException + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
Make Igor parser exception extend NSParserException
Make Igor parser exception extend NSParserException
C
mit
dhemery/igor,dhemery/igor,dhemery/igor
dabdca497602225931441dec89a5d557659ebef1
tests/mpich-example.c
tests/mpich-example.c
#include <stdio.h> #include <stdlib.h> #include <mpi.h> int main (int argc, char *argv[]) { int rank, size, length; char name[BUFSIZ]; MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); MPI_Comm_size (MPI_COMM_WORLD, &size); MPI_Get_processor_name (name, &length); printf ("%s: hello world ...
Add missing file for the MPI test.
Add missing file for the MPI test. git-svn-id: 71c8032c709790ec749031c4215f8515ac00dc5a@27337 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
C
mit
falsifian/personal_nixos,falsifian/personal_nixos,falsifian/personal_nixos,falsifian/personal_nixos,falsifian/personal_nixos
a302b82b8de5a2427baec8257b023fb65f9cd607
test/functionalities/process_attach/main.c
test/functionalities/process_attach/main.c
#include <stdio.h> #include <unistd.h> int main(int argc, char const *argv[]) { // Waiting to be attached by the debugger. int temp = 0; while (temp < 30) // Waiting to be attached... { sleep(1); temp++; } printf("Exiting now\n"); }
#include <stdio.h> #include <unistd.h> #if defined(__linux__) #include <sys/prctl.h> #endif int main(int argc, char const *argv[]) { int temp; #if defined(__linux__) // Immediately enable any ptracer so that we can allow the stub attach // operation to succeed. Some Linux kernels are locked down so that ...
Fix TestProcessAttach for Linux ptracer lock-down and llgs-local.
Fix TestProcessAttach for Linux ptracer lock-down and llgs-local. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@220660 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb
023e066734f60dc9f8153d5f34b6d122c94ad83a
lib/vpsc/block.h
lib/vpsc/block.h
/** * \brief A block is a group of variables that must be moved together to improve * the goal function without violating already active constraints. * The variables in a block are spanned by a tree of active constraints. * * Authors: * Tim Dwyer <tgdwyer@gmail.com> * * Copyright (C) 2005 Authors * * This v...
Add the vpsc library for IPSEPCOLA features
Add the vpsc library for IPSEPCOLA features
C
epl-1.0
jho1965us/graphviz,tkelman/graphviz,MjAbuz/graphviz,ellson/graphviz,kbrock/graphviz,pixelglow/graphviz,ellson/graphviz,pixelglow/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,tkelman/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,pixelglow/graph...
e88be22a0b19d365c3c20d45b50da8af88fd6960
static_ar_param.c
static_ar_param.c
int f(int x[static volatile /*const*/ 10]) { return *++x; } main() { int x[5]; x[1] = 2; f(x); //int y[1]; //int *y; //#define y (void *)0 //pipe(y); }
int f(int x[static /*const*/ 10]) { return *++x; } main() { int x[5]; x[1] = 2; f(x); //int y[1]; //int *y; //#define y (void *)0 //pipe(y); }
Remove volatile from test (decl_equal doesn't check properly for now)
Remove volatile from test (decl_equal doesn't check properly for now)
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
68772ba85b158325b82743a9df55d583cc547c48
bpf/netdev_config.h
bpf/netdev_config.h
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2016-2020 Authors of Cilium */ /* * This is just a dummy header with dummy values to allow for test * compilation without the full code generation engine backend. */ #define DROP_NOTIFY #ifndef SKIP_DEBUG #define DEBUG #endif #define ENCAP_IFINDEX 1 #define SE...
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2016-2020 Authors of Cilium */ /* * This is just a dummy header with dummy values to allow for test * compilation without the full code generation engine backend. */ #define DROP_NOTIFY #ifndef SKIP_DEBUG #define DEBUG #endif #define ENCAP_IFINDEX 1 #define SE...
Replace CALLS_MAP symbol in compile-tested binaries
bpf: Replace CALLS_MAP symbol in compile-tested binaries Because we don't define CALLS_MAP for several programs, the binaries end up with 'CALLS_MAP' as the actual map name: $ for f in $(ls bpf/*.o); do ( readelf -s $f | grep -q CALLS_MAP ) && echo $f; done bpf/bpf_alignchecker.o bpf/bpf_network.o bpf...
C
apache-2.0
cilium/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,michi-covalent/cilium,tklauser/cilium,tgraf/cilium,michi-covalent/cilium,tklauser/cilium,cilium/cilium,tklauser/cilium,cilium/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,tklauser/cilium,michi-covalent/ciliu...
f7c7267e99a50ece23ff4db05e6fdb5aead0fdbe
test/cpp-raw/os.h
test/cpp-raw/os.h
#define INTERCOM_FLATTEN_DECLARATIONS #include <intercom.h> #include "../../intercom-cpp/src/msdef.h" // Interface definitions. #ifdef _MSC_VER #include "msvc/import.h" #endif // Platform specific runtime initialization. void InitializeRuntime(); // Platform specific runtime uninitialization. void UninitializeRunt...
// Interface definitions. #ifdef _MSC_VER #include "msvc/import.h" #else // Include declarations on non-Windows platforms. #define INTERCOM_FLATTEN_DECLARATIONS #include <intercom.h> #include "../../intercom-cpp/src/msdef.h" #endif // Platform specific runtime initialization. void InitializeRuntime(); // Platform ...
Include specific declarations only on ńon-Windows platform
Include specific declarations only on ńon-Windows platform The "intercom.h" is not currently visible on Windows build chain.
C
mit
Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs
a9f39225c5502b7d8948dc195292db80a5814834
src/ent.c
src/ent.c
#include <ent/ent.h> #if defined __OPENBSD__ || (defined __linux__ && defined _DEFAULT_SOURCE) # include <unistd.h> # define getentropy_impl getentropy #elif defined __APPLE__ && defined __MACH__ # include <sys/random.h> # define getentropy_impl getentropy #else # error "Port: getentropy unimplemented" #endif int ent...
#include <ent/ent.h> #if defined __OPENBSD__ || (defined __linux__ && defined _DEFAULT_SOURCE) # include <unistd.h> # define getentropy_impl getentropy #elif defined __APPLE__ && defined __MACH__ # include <unistd.h> # include <sys/random.h> # define getentropy_impl getentropy #else # error "Port: getentropy unimpleme...
Fix build on OS X
Fix build on OS X
C
mit
jfranklin9000/urbit,urbit/urbit,ngzax/urbit,ngzax/urbit,ngzax/urbit,jfranklin9000/urbit,urbit/urbit,urbit/urbit,jfranklin9000/urbit,urbit/urbit,ngzax/urbit,ngzax/urbit,jfranklin9000/urbit,jfranklin9000/urbit,urbit/urbit,urbit/urbit,jfranklin9000/urbit,ngzax/urbit,urbit/urbit,ngzax/urbit,jfranklin9000/urbit
facd3c72a46b2a62ec347a1527583abc2bd529ab
block.h
block.h
#ifndef BLOCK_PAGE_SIZE # define BLOCK_PAGE_SIZE 65536 #endif #include <stddef.h> struct block { void **pages; size_t *offsets; size_t count; size_t size; }; struct block *block_new(void); void block_free(struct block*); void *block_alloc(struct block*, size_t bytes);
#ifndef BLOCK_PAGE_SIZE # define BLOCK_PAGE_SIZE 4096 #endif #include <stddef.h> struct block { void **pages; size_t *offsets; size_t count; size_t size; }; struct block *block_new(void); void block_free(struct block*); void *block_alloc(struct block*, size_t bytes);
Use 4KB as the default page size
Use 4KB as the default page size
C
mit
chriso/intern
3879da46920abe21c07fa073a31713086c898a7d
source/examples/demo_buffer_fifo.c
source/examples/demo_buffer_fifo.c
//============================================================================// // File: demo_buffer_fifo.c // // Description: Example for CANpie FIFO configuration // // ...
Add example code for FIFO
Add example code for FIFO
C
apache-2.0
JoTid/CANpie,canpie/CANpie,canpie/CANpie,JoTid/CANpie,canpie/CANpie,JoTid/CANpie
70143e0f9e65543b4fef71a67bacc53ae25f57e2
SouqTask/Application/SouqTask-Bridging-Header.h
SouqTask/Application/SouqTask-Bridging-Header.h
// // SouqTask-Bridging-Header.h // SouqTask // // Created by Ma'moun Diraneyya on 3/4/16. // Copyright © 2016 Mamouneyya. All rights reserved. // // NOTE This workaround is used to import important libraries everywhere in the app // REF http://stackoverflow.com/questions/26408612/implicitly-import-specific-swift...
Create a bridging header so we can import important libraries implicitly.
Create a bridging header so we can import important libraries implicitly.
C
mit
mamouneyya/TheSkillsProof,mamouneyya/TheSkillsProof
ce976a1d0bfd1679fd9eef466f993216e88dc7e5
ann.c
ann.c
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[HIDDEN]; int output[OUTPUTS]; }...
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[ROWS - 3][HIDDEN]; int output[O...
Fix Neurons struct so that hidden is 2D
Fix Neurons struct so that hidden is 2D
C
mit
tysonzero/c-ann
169dc7b8de2f347edb54ce9007cfbf1c551be33a
Settings/Display.h
Settings/Display.h
#pragma once #include "Tab.h" class Display : public Tab { public: virtual void SaveSettings(); private: virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId); virtual DLGPROC Notification(NMHDR *nHdr); virtual void Initialize(); virtual void LoadSettings(); void OnPositionCh...
#pragma once #include "Tab.h" class Display : public Tab { public: virtual void SaveSettings(); private: virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId); virtual DLGPROC Notification(NMHDR *nHdr); virtual void Initialize(); virtual void LoadSettings(); void OnPositionCh...
Add strings (will be used for translation)
Add strings (will be used for translation)
C
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX
280ced6bd1aebd62b1288b3b55f70fe1d00e3b2f
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 94 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 95 #endif
Update Skia milestone to 95
Update Skia milestone to 95 Change-Id: I17a6adf5f14cfc160c13a2341453e9767ab39f0a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/439158 Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
C
bsd-3-clause
aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/pl...
673ab60ceb8dbb42bebd52241178741a57f5f7a0
main.c
main.c
int main() { printf("Hello World!\n"); return 0; }
#include <bwio.h> int main() { bwsetfifo(COM2, OFF); bwprintf(COM2, "Hello World!\n"); return 0; }
Add Makefile, bwio lib, headers and compile script
Add Makefile, bwio lib, headers and compile script
C
mit
gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel
204927c50f6ca2549092e422fe5377ae3aae1b63
Files/VelibModel.h
Files/VelibModel.h
// // Velib.h // Bicyclette // // Created by Nicolas on 09/10/10. // Copyright 2010 Nicolas Bouilleaud. All rights reserved. // #import "CoreDataManager.h" #import <MapKit/MapKit.h> #define kVelibStationsListURL @"http://www.velib.paris.fr/service/carto" #define kVelibStationsStatusURL @"http://www.velib.paris...
// // Velib.h // Bicyclette // // Created by Nicolas on 09/10/10. // Copyright 2010 Nicolas Bouilleaud. All rights reserved. // #import "CoreDataManager.h" #import <MapKit/MapKit.h> #define kVelibStationsListURL @"http://www.velib.paris.fr/service/carto" #define kVelibStationsStatusURL @"http://www.velib.paris...
Fix stations details request url (webservices were updated)
Fix stations details request url (webservices were updated)
C
bsd-2-clause
durvalrafael/Bicyclette,n-b/Bicyclette,durvalrafael/Bicyclette,n-b/Bicyclette
265bbe4f8fed33baff0f6340ac0f36965b2f24ed
src/gba/renderers/video-software.h
src/gba/renderers/video-software.h
#ifndef VIDEO_SOFTWARE_H #define VIDEO_SOFTWARE_H #include "gba-video.h" #include <pthread.h> struct GBAVideoSoftwareRenderer { struct GBAVideoRenderer d; uint16_t* outputBuffer; unsigned outputBufferStride; union GBARegisterDISPCNT dispcnt; pthread_mutex_t mutex; pthread_cond_t cond; }; void GBAVideoSoftw...
#ifndef VIDEO_SOFTWARE_H #define VIDEO_SOFTWARE_H #include "gba-video.h" #include <pthread.h> struct GBAVideoSoftwareBackground { int index; int enabled; int priority; uint32_t charBase; int mosaic; int multipalette; uint32_t screenBase; int overflow; int size; uint16_t x; uint16_t y; uint32_t refx; uin...
Add struct for keeping track of background state
Add struct for keeping track of background state
C
mpl-2.0
Anty-Lemon/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,Iniquitatis/mgba,Touched/mgba,askotx/mgba,Anty-Lemon/mgba,Iniquitatis/mgba,fr500/mgba,libretro/mgba,jeremyherbert/mgba,askotx/mgba,askotx/mgba,fr500/mgba,AdmiralCurtiss/mgba,fr500/mgba,matthewbauer/mgba,Anty-Lemon/mgba,bentley/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,mg...
7558b9540b6c51b9822c63bbbdf42da282b1a7c1
src/include/cynara-creds-commons.h
src/include/cynara-creds-commons.h
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
Add enums for credentials acquire methods
Add enums for credentials acquire methods Change-Id: I5719a7622a78ae6d1ca86a7dcce986c69abb3e23
C
apache-2.0
Samsung/cynara,Samsung/cynara,pohly/cynara,pohly/cynara,pohly/cynara,Samsung/cynara
9c48a952435797ead8239b7e0c9d5eeda1d7f999
lib/libmid/errstr.c
lib/libmid/errstr.c
#include "../../include/mid.h" #include <SDL/SDL_error.h> #include <stdarg.h> #include <errno.h> #include <string.h> enum { Bufsz = 1024 }; static char curerr[Bufsz + 1]; void seterrstr(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vsnprintf(curerr, Bufsz + 1, fmt, ap); va_end(ap); } const char *miderr...
#include "../../include/mid.h" #include <SDL/SDL_error.h> #include <stdarg.h> #include <errno.h> #include <string.h> enum { Bufsz = 1024 }; static char curerr[Bufsz]; void seterrstr(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vsnprintf(curerr, Bufsz, fmt, ap); va_end(ap); } const char *miderrstr(void...
Change buffer sizes to ease stk5.
Change buffer sizes to ease stk5.
C
mit
velour/mid,velour/mid,velour/mid
c083b0c24035620ec14db062fff8e62bd689c237
test/Driver/compilation_database.c
test/Driver/compilation_database.c
// RUN: %clang -MD -MP -c -x c %s -xc++ %s -Wall -MJ - 2>&1 | FileCheck %s // RUN: not %clang -c -x c %s -MJ %s/non-existant 2>&1 | FileCheck --check-prefix=ERROR %s // CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "arguments": ["{{[^"]...
// RUN: %clang -MD -MP --sysroot=somewhere -c -x c %s -xc++ %s -Wall -MJ - 2>&1 | FileCheck %s // RUN: not %clang -c -x c %s -MJ %s/non-existant 2>&1 | FileCheck --check-prefix=ERROR %s // CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "...
Make test case slightly more robust by explicitly passing --sysroot. Otherwise it would change when DEFAULT_SYSROOT is provided.
Make test case slightly more robust by explicitly passing --sysroot. Otherwise it would change when DEFAULT_SYSROOT is provided. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@288823 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
79ecdd107f7531d36f69d6e7089b4a685a370312
src/graphics_tb.h
src/graphics_tb.h
#ifndef __GRAPHICS_TB_H__ #define __GRAPHICS_TB_H__ #include <termbox.h> #include "models.h" #include "graphics.h" typedef struct {} graphics_tb_t; // graphics_tb initialize the graphic module. graphics_tb_t *graphics_tb_init(); // graphics_tb_draw draws the given state on the screen. void graphics_tb_draw(void ...
#ifndef __GRAPHICS_TB_H__ #define __GRAPHICS_TB_H__ #include <termbox.h> #include "models.h" #include "graphics.h" typedef struct {} graphics_tb_t; // graphics_tb initializes the graphic module. graphics_tb_t *graphics_tb_init(); // graphics_tb_draw draws the given state on the screen. // // We do not use `graph...
Add an explanation for graphics_*_draw prototype
Add an explanation for graphics_*_draw prototype
C
mit
moverest/bagh-chal,moverest/bagh-chal,moverest/bagh-chal
d1e345a13ca28825b672aa8e75e9f5d0f48be1bd
overseer.c
overseer.c
// vim: sw=4 ts=4 et filetype=c #include <stdio.h> #include <stdlib.h> #include "overseer.h" #include "iface_lcd.h" #include "iface_uart.h" #include "iface_w1_gpio.h" int main() { sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array)); size_t actualsize = getSensorList(sensor_array)...
// vim: sw=4 ts=4 et filetype=c #include <stdio.h> #include <stdlib.h> #include <time.h> #include "overseer.h" #include "iface_lcd.h" #include "iface_uart.h" #include "iface_w1_gpio.h" int main() { sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array)); size_t actualsize = getSensor...
Adjust output to LCD and console
Adjust output to LCD and console Better kitchen usefulness w/ a timestamp. Also munin support!
C
mit
rtucker/raspi-fridge-overseer,rtucker/raspi-fridge-overseer
228304d144861aa3e13384835aea7dc51fae140f
include/lldb/Host/freebsd/HostInfoFreeBSD.h
include/lldb/Host/freebsd/HostInfoFreeBSD.h
//===-- HostInfoFreeBSD.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- HostInfoFreeBSD.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix FreeBSD build after r215992
Fix FreeBSD build after r215992 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@216021 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb
2044a19198c1a178b0994ece8db9286099586ed4
text_widget.c
text_widget.c
// Copyright 2017, Jeffrey E. Bedard #include "text_widget.h" #include "XSTextWidget.h" #include "font.h" #include "xdata.h" short xstatus_draw_text_widget(struct XSTextWidget * widget) { xcb_connection_t * xc = widget->connection; struct JBDim font_size = xstatus_get_font_size(); xcb_image_text_8(xc, widget->buffer...
// Copyright 2017, Jeffrey E. Bedard #include "text_widget.h" #include "XSTextWidget.h" #include "config.h" #include "font.h" #include "xdata.h" short xstatus_draw_text_widget(struct XSTextWidget * widget) { xcb_connection_t * xc = widget->connection; struct JBDim font_size = xstatus_get_font_size(); xcb_image_text_...
Include configured padding in offset calculation.
Include configured padding in offset calculation.
C
mit
jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus