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
8ad9143cc688ba501223684d2eb723f5c46237b2
test/wasm/soft/float/addtf3.c
test/wasm/soft/float/addtf3.c
#include "src/math/reinterpret.h" #include <assert.h> long double __addtf3(long double, long double); static _Bool equivalent(long double x, long double y) { if (x != x) return y != y; return reinterpret(unsigned __int128, x) == reinterpret(unsigned __int128, y); } static _Bool run(long double x, lo...
#include "src/math/reinterpret.h" #include <math.h> #include <assert.h> long double __addtf3(long double, long double); static _Bool run(long double x, long double y) { return reinterpret(unsigned __int128, x + y) == reinterpret(unsigned __int128, __addtf3(x, y)); } int main(void) { assert(isnan(__addtf3(NAN...
Test non-finite soft float addition
Test non-finite soft float addition
C
mit
jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic
7bed25a23f0967cc5a57bfe913416a85a59fd913
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( ...
#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; }; GIT_INLINE(void) attr_check_expected( en...
Fix the build on Windows
Fix the build on Windows
C
lgpl-2.1
saurabhsuniljain/libgit2,joshtriplett/libgit2,stewid/libgit2,magnus98/TEST,mrksrm/Mingijura,swisspol/DEMO-libgit2,oaastest/libgit2,Tousiph/Demo1,maxiaoqian/libgit2,Corillian/libgit2,amyvmiwei/libgit2,kenprice/libgit2,t0xicCode/libgit2,Snazz2001/libgit2,sygool/libgit2,evhan/libgit2,maxiaoqian/libgit2,mrksrm/Mingijura,JI...
dc2edbb5925de782ba73ce7e2e496c17b5427cff
reptyr.h
reptyr.h
/* * Copyright (C) 2011 by Nelson Elhage * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
/* * Copyright (C) 2011 by Nelson Elhage * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
Bump the version number for development.
Bump the version number for development.
C
mit
nelhage/reptyr,jerome-pouiller/reredirect,yatsek/reptyr,yatsek/reptyr,nelhage/reptyr,yatsek/reptyr,developerfm/reptyr,developerfm/reptyr,developerfm/reptyr,nelhage/reptyr,jerome-pouiller/reredirect
b4324c4e201ad7a0ee1f5a316cbc119cd8be33c2
OpenMRS-iOS/EditPatientForm.h
OpenMRS-iOS/EditPatientForm.h
// // EditPatientForm.h // OpenMRS-iOS // // Created by Yousef Hamza on 7/5/15. // Copyright (c) 2015 Erway Software. All rights reserved. // #import "XLForm.h" #import "XLFormViewController.h" #import "MRSPatient.h" @interface EditPatientForm : XLFormViewController <UIAlertViewDelegate> - (instancetype)initWith...
// // EditPatientForm.h // OpenMRS-iOS // // Created by Yousef Hamza on 7/5/15. // Copyright (c) 2015 Erway Software. All rights reserved. // #import "XLForm.h" #import "XLFormViewController.h" #import "MRSPatient.h" @interface EditPatientForm : XLFormViewController <UIAlertViewDelegate> @property (nonatomic, st...
Move method after property declaration
Move method after property declaration
C
mpl-2.0
Undo1/openmrs-contrib-ios-client,Undo1/openmrs-contrib-ios-client,yousefhamza/openmrs-contrib-ios-client,yousefhamza/openmrs-contrib-ios-client
b781d46789fdbe4ae039ba622d1285b3a09afda3
arch/mvme88k/include/setjmp.h
arch/mvme88k/include/setjmp.h
/* $OpenBSD: setjmp.h,v 1.6 2001/08/12 12:03:02 heko Exp $ */ /* * machine/setjmp.h: machine dependent setjmp-related information. */ #ifndef __MACHINE_SETJMP_H__ #define __MACHINE_SETJMP_H__ #define _JBLEN 22 /* size, in longs, of a jmp_buf */ #endif /* __MACHINE_SETJMP_H__ */
/* $OpenBSD: setjmp.h,v 1.7 2003/08/01 07:41:33 miod Exp $ */ /* * machine/setjmp.h: machine dependent setjmp-related information. */ #ifndef __MACHINE_SETJMP_H__ #define __MACHINE_SETJMP_H__ #define _JBLEN 21 /* size, in longs, of a jmp_buf */ #endif /* __MACHINE_SETJMP_H__ */
Fix the *longjmp() behaviour - it is legal to reuse a jmp_buf several times. Gets us a working perl 5.8.
Fix the *longjmp() behaviour - it is legal to reuse a jmp_buf several times. Gets us a working perl 5.8.
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
42d282fd4f4dc53389fe62eba8b934cb7174acf0
include/lldb/lldb-python.h
include/lldb/lldb-python.h
//===-- lldb-python.h --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
//===-- lldb-python.h --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
Fix build on FreeBSD after r196141
Fix build on FreeBSD after r196141 This should probably be replaced with build infrastructure support for a platform-specific canonical Python include path, but for now it should restore the FreeBSD buildbot. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@196167 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb
963c9b00874672a03e4f1251bcdde9f5d929a81a
src/math/p_itof.c
src/math/p_itof.c
#include <pal.h> /** * * Converts integer values in 'a' to floating point values. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @param p Number of processor to use (task parallelism) * * @param team Team to work with...
#include <pal.h> /** * * Converts integer values in 'a' to floating point values. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @param p Number of processor to use (task parallelism) * * @param team Team to work with...
Initialize variable in the declaration
Initialize variable in the declaration Google style guide http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Local_Variables "Place a function's variables in the narrowest scope possible, and initialize variables in the declaration." Signed-off-by: Tom Anderson <bd28f8d49b61b0565f68fcded57d71607075701...
C
apache-2.0
eliteraspberries/pal,RafaelRMA/pal,8l/pal,debug-de-su-ka/pal,mateunho/pal,aolofsson/pal,Adamszk/pal3,parallella/pal,olajep/pal,eliteraspberries/pal,parallella/pal,mateunho/pal,Adamszk/pal3,RafaelRMA/pal,RafaelRMA/pal,8l/pal,debug-de-su-ka/pal,8l/pal,debug-de-su-ka/pal,olajep/pal,aolofsson/pal,parallella/pal,mateunho/pa...
e194d0bc205719c2359ab339be64b93154106500
src/pythoninlua.h
src/pythoninlua.h
/* Lunatic Python -------------- Copyright (c) 2002-2005 Gustavo Niemeyer <gustavo@niemeyer.net> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, o...
/* Lunatic Python -------------- Copyright (c) 2002-2005 Gustavo Niemeyer <gustavo@niemeyer.net> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, o...
Change Lua registry key to PythonObject.
Change Lua registry key to PythonObject.
C
lgpl-2.1
dmcooke/Lunatic-Python,dmcooke/Lunatic-Python
847d68b622b46fa558ddade13a1b04f9cf9a24b9
PWG3/PWG3LinkDef.h
PWG3/PWG3LinkDef.h
#ifdef __CINT__ #pragma link off all glols; #pragma link off all classes; #pragma link off all functions; #endif
#ifdef __CINT__ #pragma link off all glols; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliD0toKpi+; #pragma link C++ class AliD0toKpiAnalysis+; #pragma link C++ class AliBtoJPSItoEle+; #pragma link C++ class AliBtoJPSItoEleAnalysis+; #endif
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
C
bsd-3-clause
fcolamar/AliPhysics,dmuhlhei/AliPhysics,pbuehler/AliPhysics,carstooon/AliPhysics,rderradi/AliPhysics,mbjadhav/AliPhysics,fbellini/AliPhysics,preghenella/AliPhysics,mkrzewic/AliPhysics,btrzecia/AliPhysics,kreisl/AliPhysics,mazimm/AliPhysics,nschmidtALICE/AliPhysics,lcunquei/AliPhysics,fcolamar/AliPhysics,kreisl/AliPhysi...
3aca30dc730b96e1ac50933bae2914c81a3a3c67
cod.c
cod.c
#include <stdio.h> unsigned int x; char in; void input(void); void main(void){ x = 0; input(); } void input(void){ printf(">> "); /* Bash-like input */ scanf("%c", &in); /* Get char input */ /* Boundary checks */ if(x == 256 || x == -1) x = 0; /* Operators */ switch(in){ case 'i': case 'x': ...
#include <stdio.h> unsigned int x; char in; void input(void); void run(char c); void main(void){ x = 0; input(); } void input(void){ printf(">> "); /* Bash-like input */ scanf("%c", &in); /* Get char input */ run(in); input(); /* Loop */ } void run(char c){ /* Boundary checks */ if(x == 256 || x == ...
Move run into new method
Move run into new method
C
mit
phase/cod
5c217b60fed39ed2ac6a2e8b788df4a74fa68878
arch/ia64/kernel/irq_lsapic.c
arch/ia64/kernel/irq_lsapic.c
/* * LSAPIC Interrupt Controller * * This takes care of interrupts that are generated by the CPU's * internal Streamlined Advanced Programmable Interrupt Controller * (LSAPIC), such as the ITC and IPI interrupts. * * Copyright (C) 1999 VA Linux Systems * Copyright (C) 1999 Walt Drummond <drummond@valinux.com...
/* * LSAPIC Interrupt Controller * * This takes care of interrupts that are generated by the CPU's * internal Streamlined Advanced Programmable Interrupt Controller * (LSAPIC), such as the ITC and IPI interrupts. * * Copyright (C) 1999 VA Linux Systems * Copyright (C) 1999 Walt Drummond <drummond@valinux.com...
Convert lsapic to new irq_chip functions
ia64: Convert lsapic to new irq_chip functions Signed-off-by: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k...
c6998bbba2a0dc57e5dbb2ceff2146cfd52a34d5
include/PurchaseEvent.h
include/PurchaseEvent.h
#ifndef _PURCHASEEVENT_H_ #define _PURCHASEEVENT_H_ #include <Event.h> class PurchaseEvent : public Event { public: enum Type { PURCHASE_STATUS }; PurchaseEvent(double _timestamp, int _productId, Type _type, bool _newPurchase) : Event(_timestamp), type(_type), newPurchase(_newPurchase), productId(_productId)...
#ifndef _PURCHASEEVENT_H_ #define _PURCHASEEVENT_H_ #include <Event.h> class PurchaseEvent : public Event { public: enum Type { PURCHASE_STATUS }; PurchaseEvent(double _timestamp, std::string _productId, Type _type, bool _newPurchase) : Event(_timestamp), type(_type), newPurchase(_newPurchase), productId(_pr...
Change product Id to string
Change product Id to string
C
mit
Sometrik/framework,Sometrik/framework,Sometrik/framework
80d38eb7f25cd0fe2483a52ab225fa7331615f18
test/Parser/ms-inline-asm.c
test/Parser/ms-inline-asm.c
// RUN: %clang_cc1 %s -verify -fasm-blocks #define M __asm int 0x2c #define M2 int void t1(void) { M } void t2(void) { __asm int 0x2c } void t3(void) { __asm M2 0x2c } void t4(void) { __asm mov eax, fs:[0x10] } void t5() { __asm { int 0x2c ; } asm comments are fun! }{ } __asm {} } int t6() { __asm int 3 ;...
// REQUIRES: x86-64-registered-target // RUN: %clang_cc1 %s -verify -fasm-blocks #define M __asm int 0x2c #define M2 int void t1(void) { M } void t2(void) { __asm int 0x2c } void t3(void) { __asm M2 0x2c } void t4(void) { __asm mov eax, fs:[0x10] } void t5() { __asm { int 0x2c ; } asm comments are fun! }{ } ...
Add x86 requirement to hopefully fix ppc bots.
Add x86 requirement to hopefully fix ppc bots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@173190 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
38f0051c77a1057fe0547eeefb9c83d067f8265c
kernel/types.h
kernel/types.h
// The Mordax Microkernel // (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com> // Report bugs and issues on <http://github.com/skordal/mordax/issues> #ifndef MORDAX_TYPES_H #define MORDAX_TYPES_H #include <stdint.h> /** Object size type. */ typedef uint32_t size_t; /** Physical pointer type. */ typede...
// The Mordax Microkernel // (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com> // Report bugs and issues on <http://github.com/skordal/mordax/issues> #ifndef MORDAX_TYPES_H #define MORDAX_TYPES_H #include <stdbool.h> #include <stdint.h> /** Object size type. */ typedef uint32_t size_t; /** Physical po...
Add stdbool to the datatype header
Add stdbool to the datatype header
C
bsd-3-clause
skordal/mordax
b4aeaf99c621d17a147acf431d7e131c6860f5ac
bmmap.c
bmmap.c
#include "bmmap.h" #include "vty.h" void bmmap_init() { } void bmmap_print() { vty_puts("BIOS memory map:\n"); vty_printf("%d entries at %p\n", *bios_memmap_entries_ptr, bios_memmap_ptr); vty_printf("ADDR LOW ADDR HI LEN LOW LEN HI ...
#include "bmmap.h" #include "vty.h" void bmmap_init() { } void bmmap_print() { vty_puts("BIOS memory map:\n"); vty_printf("%d entries at %p\n", *bios_memmap_entries_ptr, bios_memmap_ptr); vty_printf(" ADDR LEN TY...
Tweak display of BIOS memory map
Tweak display of BIOS memory map
C
mit
wconrad/brazzle,wconrad/brazzle
73689e53255c6ac22a90b0cd01fe40180ec2bbba
chrome/browser/desktop_notification_handler.h
chrome/browser/desktop_notification_handler.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_DESKTOP_NOTIFICATION_HANDLER_H_ #define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ #pragma once #include "content/browser/...
// 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_DESKTOP_NOTIFICATION_HANDLER_H_ #define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_ #pragma once #include "content/browser/...
Revert 80939 - Fix clang error TBR=jam@chromium.org
Revert 80939 - Fix clang error TBR=jam@chromium.org git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@80954 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
dushu1203/chromium.src,anirudhSK/chromium,ChromiumWebApps/chromium,hujiajie/pa-chromium,patrickm/chromium.src,mogoweb/chromium-crosswalk,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,rogerwang/chromium,Just-D/chromium-1,dednal/chromium.src,zcbenz/cefode-chromium,robclark/chromium,anirudhSK/chromium,ondra-novak/ch...
c6aef16d6f64fa9cd13ce6a1ceb89713455bc6b0
modules/electromagnetics/include/postprocessors/ReflectionCoefficient.h
modules/electromagnetics/include/postprocessors/ReflectionCoefficient.h
#ifndef REFLECTIONCOEFFICIENT_H #define REFLECTIONCOEFFICIENT_H #include "SidePostprocessor.h" #include "MooseVariableInterface.h" class ReflectionCoefficient; template <> InputParameters validParams<ReflectionCoefficient>(); class ReflectionCoefficient : public SidePostprocessor, public MooseVariableInterface<Real...
#pragma once #include "SidePostprocessor.h" #include "MooseVariableInterface.h" class ReflectionCoefficient; template <> InputParameters validParams<ReflectionCoefficient>(); class ReflectionCoefficient : public SidePostprocessor, public MooseVariableInterface<Real> { public: ReflectionCoefficient(const InputPara...
Convert postprocessors to pragma once
Convert postprocessors to pragma once refs #21085
C
lgpl-2.1
harterj/moose,dschwen/moose,andrsd/moose,sapitts/moose,milljm/moose,harterj/moose,laagesen/moose,harterj/moose,harterj/moose,laagesen/moose,lindsayad/moose,milljm/moose,milljm/moose,andrsd/moose,dschwen/moose,dschwen/moose,sapitts/moose,lindsayad/moose,andrsd/moose,laagesen/moose,andrsd/moose,milljm/moose,sapitts/moose...
85de995f9baa868dd53ed84986426a63ed9bdc99
PC/dl_nt.c
PC/dl_nt.c
/* Entry point for the Windows NT DLL. About the only reason for having this, is so initall() can automatically be called, removing that burden (and possible source of frustration if forgotten) from the programmer. */ #include "windows.h" /* NT and Python share these */ #undef INCREF #undef DECREF #include "config...
/* Entry point for the Windows NT DLL. About the only reason for having this, is so initall() can automatically be called, removing that burden (and possible source of frustration if forgotten) from the programmer. */ #include "windows.h" /* NT and Python share these */ #include "config.h" #include "Python.h" HMO...
Use Python.h, not allobjects.h. Don't call initall() (Experimental incompatible change!!!!!!)
Use Python.h, not allobjects.h. Don't call initall() (Experimental incompatible change!!!!!!)
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
f6cbd04937a2b1503a4eaeeb6e18a8c31133d0b6
hanoi.c
hanoi.c
/* * Copyright (C) 2014-2015 Pavel Dolgov * * See the LICENSE file for terms of use. */ #include <stdio.h> #define TOWER1 1 #define TOWER2 3 void hanoi(int a, int n1, int n2) { if (a == 1) { // end of recursion printf("%d %d %d\n", a, n1, n2); } else { int x, na; for (x = TOWER1...
/* * Copyright (C) 2014-2015 Pavel Dolgov * * See the LICENSE file for terms of use. */ #include <stdio.h> #define TOWER1 1 #define TOWER2 3 void hanoi(int a, int n1, int n2) { if (a == 1) { // end of recursion printf("%d %d %d\n", a, n1, n2); } else { int x, na; for (x = TOWER1...
Fix layout (delete empty string)
Fix layout (delete empty string)
C
mit
zer0main/hanoi_tower
f9dedee2f091dd14a8da268399c34c00b6d37695
Game.h
Game.h
#pragma once // This guarantees that the code is included only once in the game. #include "SFML/Window.hpp" #include "SFML/Graphics.hpp" class Game { public: // Objects declared static are allocated storage in static storage area, and have scope till the end of the program. static void Start(); ...
#ifndef GAME_H // This guarentees that the code is included only once in the game. #define GAME_H #include "SFML/Graphics.hpp" #include "SFML/Window.hpp" class Game { public: // Objects declared static are allocated storage in static storage area, and have scope till the end of the program. static...
Change styling convention of the variable names
Change styling convention of the variable names
C
mit
jessicaphuong/pong-clone
f533072ea6e6b4806db8166d10f40a3acb982c79
modules/solid_mechanics/include/materials/nonlinear_strain/Elastic.h
modules/solid_mechanics/include/materials/nonlinear_strain/Elastic.h
#ifndef ELASTIC_H #define ELASTIC_H #include "MaterialModel.h" // Forward declarations class ElasticityTensor; class Elastic; template<> InputParameters validParams<Elastic>(); class Elastic : public MaterialModel { public: Elastic( const std::string & name, InputParameters parameters ); virtual ~Ela...
#ifndef ELASTIC_H #define ELASTIC_H #include "MaterialModel.h" // Forward declarations class ElasticityTensor; class Elastic; template<> InputParameters validParams<Elastic>(); class Elastic : public MaterialModel { public: Elastic( const std::string & name, InputParameters parameters ); virtual ~Ela...
Update new files with SymmTensor changes
Update new files with SymmTensor changes r5226
C
lgpl-2.1
zzyfisherman/moose,jasondhales/moose,jhbradley/moose,jessecarterMOOSE/moose,cpritam/moose,jhbradley/moose,wgapl/moose,YaqiWang/moose,shanestafford/moose,xy515258/moose,raghavaggarwal/moose,andrsd/moose,Chuban/moose,apc-llc/moose,bwspenc/moose,mellis13/moose,xy515258/moose,adamLange/moose,giopastor/moose,giopastor/moose...
d037fe2cca7e0cdc8bfe48b67480201458d083d0
lib/msun/src/w_dremf.c
lib/msun/src/w_dremf.c
/* * dremf() wrapper for remainderf(). * * Written by J.T. Conklin, <jtc@wimsey.com> * Placed into the Public Domain, 1994. */ #include "math.h" #include "math_private.h" float dremf(x, y) float x, y; { return remainderf(x, y); }
/* * dremf() wrapper for remainderf(). * * Written by J.T. Conklin, <jtc@wimsey.com> * Placed into the Public Domain, 1994. */ /* $FreeBSD$ */ #include "math.h" #include "math_private.h" float dremf(float x, float y) { return remainderf(x, y); }
Work around known GCC 3.4.x problem and use ANSI prototype for dremf().
Work around known GCC 3.4.x problem and use ANSI prototype for dremf().
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
0f4df1ecbd2a1b0067ae779b28599668c7a27167
inc/scc.h
inc/scc.h
#include <stddef.h> extern int debug; #ifndef NDEBUG #define DBG(...) dbg(__VA_ARGS__) #define DBGON() (debug = 1) #else #define DBG(...) #define DBGON() #endif #define TINT long long #define TUINT unsigned long long #define TFLOAT double struct items { char **s; unsigned n; }; typedef struct a...
#include <stddef.h> extern int debug; #ifndef NDEBUG #define DBG(...) dbg(__VA_ARGS__) #define DBGON() (debug = 1) #else #define DBG(...) #define DBGON() #endif #define TINT long long #define TUINT unsigned long long #define TUINT_MAX ULLONG_MAX #define TINT_MAX LLONG_MAX #define TFLOAT double...
Add limits macros for TUINT and TINT
Add limits macros for TUINT and TINT
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
c2b84152f437e86cc2b55c1cc0bbb35d3fa645b5
example_no_runner.c
example_no_runner.c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include "greatest.h" TEST standalone_pass(void) { PASS(); } /* Add all the definitions that need to be in the test runner's main file. */ GREATEST_MAIN_DEFS(); int main(int argc, char **argv) { (void)argc; (void)argv; /* Initialize gre...
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include "greatest.h" TEST standalone_pass(void) { PASS(); } /* Add all the definitions that need to be in the test runner's main file. */ GREATEST_MAIN_DEFS(); int main(int argc, char **argv) { struct greatest_report_t report; (void)argc; (...
Fix warning for mixing declarations and code in ISO C90.
Fix warning for mixing declarations and code in ISO C90.
C
isc
silentbicycle/greatest,silentbicycle/greatest
80bf0da7bfe646f94615ce6e3aa67cfa4648bc1d
include/libtrading/byte-order.h
include/libtrading/byte-order.h
#ifndef LIBTRADING_BYTE_ORDER_H #define LIBTRADING_BYTE_ORDER_H #include "libtrading/types.h" #include <arpa/inet.h> static inline be16 cpu_to_be16(u16 value) { return htons(value); } static inline be32 cpu_to_be32(u32 value) { return htonl(value); } static inline u16 be16_to_cpu(be16 value) { return ntohs(valu...
#ifndef LIBTRADING_BYTE_ORDER_H #define LIBTRADING_BYTE_ORDER_H #include <endian.h> /* * Little Endian */ static inline le16 cpu_to_le16(u16 value) { return htole16(value); } static inline le32 cpu_to_le32(u32 value) { return htole32(value); } static inline le64 cpu_to_le64(u64 value) { return htole64(value);...
Use <endian.h> for byte order helpers
Use <endian.h> for byte order helpers Also add missing helper functions. Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>
C
bsd-2-clause
fengzhyuan/libtrading,mstanichenko/libtrading,etoestja/libtrading,mstanichenko/libtrading,NunoEdgarGub1/libtrading,libtrading/libtrading,libtrading/libtrading,penberg/libtrading,divaykin/libtrading,etoestja/libtrading,Bitcoinsulting/libtrading,divaykin/libtrading,femtotrader/libtrading,femtotrader/libtrading,jvirtanen/...
54cfb51eabc5c61e3cdfdbc6e745a22d6f992e53
WildcardPattern.h
WildcardPattern.h
#import <Cocoa/Cocoa.h> @interface WildcardPattern : NSObject { NSString* pattern_; } - (id) initWithString: (NSString*) s; - (BOOL) isMatch: (NSString*) s; @end
/* * Copyright (c) 2006 KATO Kazuyoshi <kzys@8-p.info> * This source code is released under the MIT license. */ #import <Cocoa/Cocoa.h> @interface WildcardPattern : NSObject { NSString* pattern_; } - (id) initWithString: (NSString*) s; - (BOOL) isMatch: (NSString*) s; @end
Add copyright and license header.
Add copyright and license header.
C
mit
torezzz/greasekit
601b1f4970926d2b09218265ba661346a89612ea
src/util.h
src/util.h
#ifndef LACO_UTIL_H #define LACO_UTIL_H struct LacoState; struct lua_State; /** * Load a line into the lua stack to be evaluated later * * param pointer to LacoState * * return -1 if there is no line input to load */ int laco_load_line(struct LacoState* laco); /** * Called after laco_load_line, this ...
#ifndef LACO_UTIL_H #define LACO_UTIL_H struct LacoState; /** * Load a line into the lua stack to be evaluated later * * param pointer to LacoState * * return -1 if there is no line input to load */ int laco_load_line(struct LacoState* laco); /** * Called after laco_load_line, this evaluated the line...
Change lua_State pointer to LacoState
Change lua_State pointer to LacoState Mostly for consistency in the API.
C
bsd-2-clause
sourrust/laco
b232dd075cad8d21bffb4096afb081f097c3caab
helpers/pgrp_placeholder.c
helpers/pgrp_placeholder.c
/* Copyright 2019 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/* Copyright 2019 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
Return failure if the unexitable loop ever exits ;)
Return failure if the unexitable loop ever exits ;) (cleaner)
C
apache-2.0
google/xsecurelock,google/xsecurelock
d7ff6aa14bca10865795a218c863d3149263621f
src/debugger.h
src/debugger.h
#ifndef DEBUGGER_H #define DEBUGGER_H enum DebuggerState { DEBUGGER_PAUSED, DEBUGGER_RUNNING, DEBUGGER_EXITING }; struct ARMDebugger { enum DebuggerState state; struct ARMCore* cpu; char* lastCommand; }; void ARMDebuggerInit(struct ARMDebugger*, struct ARMCore*); void ARMDebuggerRun(struct ARMDebugger*); void...
#ifndef DEBUGGER_H #define DEBUGGER_H enum DebuggerState { DEBUGGER_PAUSED, DEBUGGER_RUNNING, DEBUGGER_EXITING }; struct ARMDebugger { enum DebuggerState state; struct ARMCore* cpu; char* lastCommand; struct DebugBreakpoint* breakpoints; }; void ARMDebuggerInit(struct ARMDebugger*, struct ARMCore*); void ARM...
Add missing field for breakpoints
Add missing field for breakpoints
C
mpl-2.0
askotx/mgba,fr500/mgba,sergiobenrocha2/mgba,Iniquitatis/mgba,fr500/mgba,mgba-emu/mgba,libretro/mgba,matthewbauer/mgba,fr500/mgba,Touched/mgba,jeremyherbert/mgba,cassos/mgba,askotx/mgba,fr500/mgba,nattthebear/mgba,Iniquitatis/mgba,libretro/mgba,jeremyherbert/mgba,Touched/mgba,libretro/mgba,libretro/mgba,nattthebear/mgba...
9614463119c6c28626ae237f9ce7225a638d32ef
src/commands/i2c_test_command.c
src/commands/i2c_test_command.c
#include <stdint.h> #include <string.h> #include "obc.h" #include "system.h" #include "terminal.h" void I2CTestCommandHandler(uint16_t argc, char* argv[]) { UNREFERENCED_PARAMETER(argc); I2CBus* bus; if (strcmp(argv[0], "system") == 0) { bus = Main.I2C.System; } else if (strcmp(argv[...
#include <stdint.h> #include <string.h> #include "obc.h" #include "system.h" #include "terminal.h" void I2CTestCommandHandler(uint16_t argc, char* argv[]) { UNREFERENCED_PARAMETER(argc); if (argc != 3) { TerminalPuts("i2c <system|payload> <device> <data>\n"); return; } I2CBus* bu...
Check args count in test i2c terminal command
Check args count in test i2c terminal command
C
agpl-3.0
PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC
01a0794bfbc6dd31c4847d2562e890622eac1ee3
Pod/Classes/GGReadabilityParser.h
Pod/Classes/GGReadabilityParser.h
/* Copyright (c) 2012 Curtis Hard - GeekyGoodness */ /* Modified by Denis Zamataev. 2014 */ #import <Foundation/Foundation.h> #import <HTMLReader.h> #import "DZReadability_constants.h" typedef void (^GGReadabilityParserCompletionHandler)( NSString * content ); typedef void (^GGReadabilityParserErrorHandler)( N...
/* Copyright (c) 2012 Curtis Hard - GeekyGoodness */ /* Modified by Denis Zamataev. 2014 */ #import <Foundation/Foundation.h> #import "HTMLReader.h" #import "DZReadability_constants.h" typedef void (^GGReadabilityParserCompletionHandler)( NSString * content ); typedef void (^GGReadabilityParserErrorHandler)( N...
Fix HTMLReader include when using dynamic frameworks
Fix HTMLReader include when using dynamic frameworks
C
mit
DZamataev/DZReadability,DZamataev/DZReadability,DZamataev/DZReadability,DZamataev/DZReadability
4f7bf9e92189558747c5298830afd2f9a591b5e8
src/game_state.h
src/game_state.h
// // Created by Borin Ouch on 2016-03-22. // #ifndef SFML_TEST_GAME_STATE_H #define SFML_TEST_GAME_STATE_H #include "game.h" class GameState { public: Game* game; virtual void draw(const float dt) = 0; virtual void update(const float dt) = 0; virtual void handleInput() = 0; }; #endif //SFML_TE...
// // Created by Borin Ouch on 2016-03-22. // #ifndef SFML_TEST_GAME_STATE_H #define SFML_TEST_GAME_STATE_H #include "game.h" class GameState { public: Game* game; virtual void draw(const float dt) = 0; virtual void update(const float dt) = 0; virtual void handleInput() = 0; virtual ~GameSta...
Add virtual destructor to game state
Add virtual destructor to game state
C
mit
aceiii/sfml-city-builder
4740d588a16d45add192ed3ea58627f06cba9b3f
src/plugin/synchronized_queue.h
src/plugin/synchronized_queue.h
// This is a queue that can be accessed from multiple threads safely. // // It's not well optimized, and requires obtaining a lock every time you check for a new value. #pragma once #include <condition_variable> #include <mutex> #include <optional> #include <queue> template <class T> class SynchronizedQueue { st...
// This is a queue that can be accessed from multiple threads safely. // // It's not well optimized, and requires obtaining a lock every time you check for a new value. #pragma once #include <condition_variable> #include <mutex> #include <optional> #include <queue> template <class T> class SynchronizedQueue { st...
Increase the efficiency of multithreading. This should slightly slightly increase frame rate.
Increase the efficiency of multithreading. This should slightly slightly increase frame rate.
C
mit
leecbaker/datareftool,leecbaker/datareftool,leecbaker/datareftool
e1aa0719162620c50ad6f402a1c58ed817f75bf7
libedataserverui/gtk-compat.h
libedataserverui/gtk-compat.h
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.21.1 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 21) \ |...
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.21.1 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 21) \ |...
Work around sudden disappearance of GdkRegion in GTK+ 2.90.5.
Work around sudden disappearance of GdkRegion in GTK+ 2.90.5. API was deprecated and removed in less than two hours! Sheesh!
C
lgpl-2.1
Distrotech/evolution-data-server,tintou/evolution-data-server,Distrotech/evolution-data-server,matzipan/evolution-data-server,matzipan/evolution-data-server,gcampax/evolution-data-server,tintou/evolution-data-server,matzipan/evolution-data-server,Distrotech/evolution-data-server,tintou/evolution-data-server,tintou/evol...
7efce87f280e015217514c73097a080a47a56f05
src/wclock_test.c
src/wclock_test.c
#include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include "wclock.h" #ifdef _WIN32 # include <windows.h> static unsigned int sleep(unsigned int x) { Sleep(x * 1000); return 0; } #else # include <unistd.h> #endif int main(void) { double res, t1, t2; wclock clock; if (wclock_init...
#include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include "wclock.h" #ifdef _WIN32 # include <windows.h> static unsigned int sleep(unsigned int x) { Sleep(x * 1000); return 0; } #else # include <unistd.h> #endif int main(void) { double res, t1, t2; wclock clock; if (wclock_init...
Increase time tolerance to reduce flakiness on slow systems
Increase time tolerance to reduce flakiness on slow systems
C
mit
Rufflewind/calico,Rufflewind/calico,Rufflewind/calico
5da72a7cbfc9d388f6f22aabfefda2bc53ce56c8
test/assertions.h
test/assertions.h
#include <setjmp.h> #include <stdarg.h> #include <stddef.h> #include <cmocka.h> #include "cbor.h" #ifndef ASSERTIONS_H_ #define ASSERTIONS_H_ void assert_uint8(cbor_item_t* item, uint8_t num); void assert_uint16(cbor_item_t* item, uint16_t num); void assert_uint32(cbor_item_t* item, uint32_t num); void assert_uint6...
#include <setjmp.h> #include <stdarg.h> #include <stddef.h> #include <cmocka.h> #include "cbor.h" #ifndef ASSERTIONS_H_ #define ASSERTIONS_H_ void assert_uint8(cbor_item_t* item, uint8_t num); void assert_uint16(cbor_item_t* item, uint16_t num); void assert_uint32(cbor_item_t* item, uint32_t num); void assert_uint6...
Add inline docs for asserts
Add inline docs for asserts
C
mit
PJK/libcbor,PJK/libcbor,PJK/libcbor,PJK/libcbor,PJK/libcbor
15828d06faf35837ae1efe22ac5ec05692af2521
buzzLockU.h
buzzLockU.h
#include <sys/types.h> #include <pthread.h> #include "vendor/simclist.h" #ifndef BUZZLOCK_H_ #define BUZZLOCK_H_ #define BZZ_BLACK 1 #define BZZ_GOLD 0 typedef int useconds_t; typedef struct { pid_t id; int color; double waiting_since; } bzz_thread_t; typedef struct { pthread_mutex_t mutex; pthread_cond_t c...
#include <sys/types.h> #include <unistd.h> #include <pthread.h> #include "vendor/simclist.h" #ifndef BUZZLOCK_H_ #define BUZZLOCK_H_ #define BZZ_BLACK 1 #define BZZ_GOLD 0 typedef struct { pid_t id; int color; double waiting_since; } bzz_thread_t; typedef struct { pthread_mutex_t mutex; pthread_cond_t cond; ...
Use typedef of useconds_t in unistd
Use typedef of useconds_t in unistd
C
mit
skalnik/3210-project-2
ece2d63323bde9fd89956193167e09708802d73c
src/util.h
src/util.h
// Copyright 2011 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright 2011 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
Remove the declaration of DumpBacktrace.
Remove the declaration of DumpBacktrace. This function was removed on 01880fb3a2a13f9071e9729c3a13752846828ed2.
C
apache-2.0
synaptek/ninja,rjogrady/ninja,maximuska/ninja,dabrahams/ninja,yannicklm/ninja,hnney/ninja,ninja-build/ninja,dendy/ninja,sorbits/ninja,Ju2ender/ninja,sgraham/ninja,liukd/ninja,purcell/ninja,metti/ninja,tychoish/ninja,jimon/ninja,justinsb/ninja,nocnokneo/ninja,dendy/ninja,dabrahams/ninja,jimon/ninja,dabrahams/ninja,dorgo...
efec94aee0e0c8805645572b73dee3358abb0aac
Category/UIKit/UIKitCategory.h
Category/UIKit/UIKitCategory.h
// // UIKitCategory.h // WWCategory // // Created by ww on 2016. 1. 10.. // Copyright © 2016년 Won Woo Choi. All rights reserved. // #import "UIApplication+Keyboard.h" #import "UIBezierPath+Drawing.h" #import "UIColor+CreateColor.h" #import "UIImage+CreateImage.h" #import "UIImage+ImageProcessing.h" #import "UIImag...
// // UIKitCategory.h // WWCategory // // Created by ww on 2016. 1. 10.. // Copyright © 2016년 Won Woo Choi. All rights reserved. // #import "UIApplication+Keyboard.h" #import "UIApplication+TopmostViewController.h" #import "UIBarButtonItem+Block.h" #import "UIBezierPath+Drawing.h" #import "UIButton+Align.h" #impor...
Add category headers to global header.
Add category headers to global header.
C
mit
wonwoooochoi/WWCategory
b502a1ea2f1c9735c7af7d67e275532437eb539f
inet_ntop.c
inet_ntop.c
/** * \file inet_ntop * inet_ntop emulation based on inet_ntoa. * \author Matthias Andree * */ #include "config.h" #ifndef HAVE_INET_NTOP #include "leafnode.h" #include "mastring.h" #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #ifdef WITH_DMALLO...
/** * \file inet_ntop * inet_ntop emulation based on inet_ntoa. * \author Matthias Andree * */ #include "config.h" #if !HAVE_INET_NTOP #include "leafnode.h" #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #include <string.h> const char * inet_ntop...
Drop dmalloc.h, not needed. Drop dmalloc.h, not needed. Use strncpy for portability, we do not want this function to rely on mastring.
Drop dmalloc.h, not needed. Drop dmalloc.h, not needed. Use strncpy for portability, we do not want this function to rely on mastring.
C
lgpl-2.1
BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode
58f00f52de054b44bec79497e33805f57d8bc8e5
EVGEN/AliDecayer.h
EVGEN/AliDecayer.h
#ifndef ALI_DECAYER__H #define ALI_DECAYER__H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ #include "RVersion.h" #include "TVirtualMCDecayer.h" typedef TVirtualMCDecayer AliDecayer; #if ROOT_VERSIO...
#ifndef ALI_DECAYER__H #define ALI_DECAYER__H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ #include "RVersion.h" #include "TVirtualMCDecayer.h" typedef TVirtualMCDecayer AliDecayer; #if ROOT_VERSIO...
Test case for B0 -> mu
Test case for B0 -> mu
C
bsd-3-clause
jgrosseo/AliRoot,alisw/AliRoot,sebaleh/AliRoot,alisw/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,coppedis/AliRoot,mkrzewic/AliRoot,coppedis/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,mkrzewic/AliRoot,alisw/AliRoot,ecalvovi/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,mkrzewic/AliRoot,shahor0...
22c56c3a03b377d21d8363f737aa2a855d892458
arch/mips/oprofile/op_impl.h
arch/mips/oprofile/op_impl.h
/** * @file arch/alpha/oprofile/op_impl.h * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Richard Henderson <rth@twiddle.net> */ #ifndef OP_IMPL_H #define OP_IMPL_H 1 struct pt_regs; extern int null_perf_irq(void); extern int (*perf_irq)(void); /* Per-counter configura...
/** * @file arch/alpha/oprofile/op_impl.h * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Richard Henderson <rth@twiddle.net> */ #ifndef OP_IMPL_H #define OP_IMPL_H 1 extern int null_perf_irq(void); extern int (*perf_irq)(void); /* Per-counter configuration as set via o...
Delete unneeded pt_regs forward declaration.
[MIPS] Delete unneeded pt_regs forward declaration. Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,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_kana...
a7540887e8b5cb34ee28c12bef863bad85c65b6f
test/Driver/coverage.c
test/Driver/coverage.c
// Test coverage flag. // // RUN: %clang_cl -### -coverage %s -o foo/bar.o 2>&1 | FileCheck -check-prefix=CLANG-CL-COVERAGE %s // CLANG-CL-COVERAGE-NOT: error: // CLANG-CL-COVERAGE-NOT: warning: // CLANG-CL-COVERAGE-NOT: argument unused // CLANG-CL-COVERAGE-NOT: unknown argument
// Test coverage flag. // REQUIRES: system-windows // // RUN: %clang_cl -### -coverage %s -o foo/bar.o 2>&1 | FileCheck -check-prefix=CLANG-CL-COVERAGE %s // CLANG-CL-COVERAGE-NOT: error: // CLANG-CL-COVERAGE-NOT: warning: // CLANG-CL-COVERAGE-NOT: argument unused // CLANG-CL-COVERAGE-NOT: unknown argument
Add a missing "REQUIRES: system-windows" to a Windows-only test.
Add a missing "REQUIRES: system-windows" to a Windows-only test. This un-breaks builds on other platforms. Otherwise, they fail due to warnings like: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found] git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa...
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
6d31cc20116485bf732cdd9e3e8d7ebaa9b24f25
master/basic.h
master/basic.h
//Basic master parser extern uint8_t MODBUSParseResponseBasic( union MODBUSParser * );
//Basic master parser extern uint8_t MODBUSParseResponseBasic( union MODBUSParser *, union MODBUSParser * );
Add passing of request frame to parsing functions
Add passing of request frame to parsing functions
C
mit
Jacajack/modlib
8493cdb9c63ed7a720a4b8e6077c07fa1513659b
test/small2/index1.c
test/small2/index1.c
#include "../small1/testharness.h" // NUMERRORS 1 struct foo { int a[8]; int *b; } gfoo; struct bar { int a[8]; int *b; }; int main() { int * __INDEX p = & gfoo.a[2]; // Force gfoo.a to have a length // This should be Ok, but pbar->b is gfoo.a[7] struct bar *pbar = (struct bar*)&gfoo; gfoo.a[7] = ...
#include "../small1/testharness.h" #include "../small1/testkinds.h" // NUMERRORS 3 struct foo { int a[8]; int *b; } gfoo; struct bar { int a[8]; int *b; }; #if ERROR == 2 struct s1 { int a[8]; int *b; } * s1; struct s2 { int *c; int d[8]; } * s2; #endif #if ERROR == 3 struct s_with_index { int ...
Change the solver handling of arrays. Previously we were calling compat on the pointers underneath matching arrays. However, this led to problems: union { char a[8]; int b[2]; } This is in fact fine, but we'd end up with compat edges between a node pointing to char and a node pointing to int and they wouldn't be congru...
Change the solver handling of arrays. Previously we were calling compat on the pointers underneath matching arrays. However, this led to problems: union { char a[8]; int b[2]; } This is in fact fine, but we'd end up with compat edges between a node pointing to char and a node pointing to int and they would...
C
bsd-3-clause
samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c
6fe16f4a387a58169ee4fa48c25d76c362a41d6a
Sub-Terra/include/Renderer.h
Sub-Terra/include/Renderer.h
#pragma once #include <boost/container/vector.hpp> #include "System.h" class Renderer : public System { protected: uint16_t width = 1280; uint16_t height = 720; Decimal fovPlus = glm::radians(10.0f); Decimal zNear = 0.05f; Decimal zFar = 48.0f; Decimal pixelDistanceFromScreen = 1000.0f; public: bool showFPS = ...
#pragma once #include <boost/container/vector.hpp> #include "System.h" class Renderer : public System { protected: uint16_t width = 1280; uint16_t height = 720; Decimal fovPlus = glm::radians(10.0f); Decimal zNear = 0.05f; Decimal zFar = 48.0f; Decimal pixelDistanceFromScreen = 1000.0f; public: bool showFPS = ...
Add getters for width/height of renderer
Add getters for width/height of renderer
C
mpl-2.0
polar-engine/polar,shockkolate/polar4,polar-engine/polar,shockkolate/polar4,shockkolate/polar4,shockkolate/polar4
2f947132e0af53bcb7863629589e989d8c6262f2
packages/Python/lldbsuite/test/functionalities/swift-runtime-reporting/abi-v2/library.h
packages/Python/lldbsuite/test/functionalities/swift-runtime-reporting/abi-v2/library.h
// library.h // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBU...
// library.h // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBU...
Include the necessary headers to make the swift-runtime-reporting test work.
[testsuite] Include the necessary headers to make the swift-runtime-reporting test work.
C
apache-2.0
apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb
71c0305e5ae4e2734e92d3760992a3856b62f6be
inc/osvr/Server/ServerPtr.h
inc/osvr/Server/ServerPtr.h
/** @file @brief Header @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) #ifndef INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_...
/** @file @brief Header @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) #ifndef INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_...
Add a weak pointer type for the server.
Add a weak pointer type for the server.
C
apache-2.0
d235j/OSVR-Core,leemichaelRazer/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,feilen/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,d235j/OSVR-Core,feilen/OSVR-Core,feilen/OSVR-Core,leemichaelRazer/OSVR-Core,leemichaelRazer/OSVR-Core,d235j/OSVR-Core,OSVR/OSVR-Core,d235j/OSVR-Core,feilen/OSVR-Core,Armada651/...
7b30aba561165ee173059cd3a65c732bd5bc9056
UIKitExtensions/UIView/Sizing.h
UIKitExtensions/UIView/Sizing.h
// // UIView+Sizing.h // aaah // // Created by Stanislaw Pankevich on 5/10/13. // Copyright (c) 2013 IProjecting. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (Sizing) @property CGPoint origin; @property CGSize size; @property CGFloat x; @property CGFloat y; @property CGFloat height; @prope...
// Inspired by FrameAccessor // https://github.com/AlexDenisov/FrameAccessor/ #import <UIKit/UIKit.h> @interface UIView (Sizing) @property CGPoint origin; @property CGSize size; @property CGFloat x; @property CGFloat y; @property CGFloat height; @property CGFloat width; @property CGFloat centerX; @property CGFloat...
Add a note about FrameAccessor
Add a note about FrameAccessor
C
mit
stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions
dc336ecfd14b0b5007ea43faa780650030fa47ae
os/winapi/alloc.c
os/winapi/alloc.c
// // os/winapi/alloc.h: Low-level WinAPI-based allocators. // // CEN64: Cycle-Accurate Nintendo 64 Simulator. // Copyright (C) 2014, Tyler J. Stachecki. // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include "os/common...
// // os/winapi/alloc.h: Low-level WinAPI-based allocators. // // CEN64: Cycle-Accurate Nintendo 64 Simulator. // Copyright (C) 2014, Tyler J. Stachecki. // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include "os/common...
Fix a WinAPI VirtualFree bug.
Fix a WinAPI VirtualFree bug. Thanks go out to izy for this commit.
C
bsd-3-clause
tj90241/cen64,tj90241/cen64
e27afdfbe608809f3a7961bc980e2183540c9214
src/main.h
src/main.h
#pragma once #include <unistd.h> #include <algorithm> #include <exception> #include <iostream> #include <list> #include <map> #include <memory> #include <set> #include <sstream> #include <string> #include <tuple> #include <unordered_map> #include <utility> #include <vector> const std::string BotVersion ("3.0.0-devel"...
#pragma once #include <unistd.h> #include <algorithm> #include <cstdarg> #include <exception> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <queue> #include <set> #include <sstream> #include <string> #include <thread> #include <tuple> #include <unordered_map> #incl...
Update includes with stuff I'll need
Update includes with stuff I'll need
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
ed97a4dfa37019c451d53f7c0ad945504c41a17d
BlackJack/src/Game.h
BlackJack/src/Game.h
/* * Game.h * * Created on: 30.12.2016 * Author: Stefan */ #include "Deck.h" #include "Dealer.h" #include <memory> #include "GlobalDeclarations.h" #include "PlayerStrategy.h" #ifndef GAME_H_ #define GAME_H_ // Class game is the glue code which binds all other classes together. // It guides the game. class...
/* * Game.h * * Created on: 30.12.2016 * Author: Stefan */ #include "Deck.h" #include "Dealer.h" #include <memory> #include "GlobalDeclarations.h" #include "PlayerStrategy.h" #ifndef GAME_H_ #define GAME_H_ // Class game is the glue code which binds all other classes together. // It guides the game. class...
Move functions in correct sectors in game class.
Move functions in correct sectors in game class.
C
mit
saccharios/BlackJack,saccharios/BlackJack,saccharios/BlackJack
60ad6d206abc1aecef270e4ec6e37e51deebc3a6
main.c
main.c
#include <stdio.h> #include "aes.h" int main(int argc, char **argv) { aes_init(); return 0; }
#include <stdio.h> #include <stdlib.h> #include "aes.h" int main(int argc, char **argv) { long blocks; char *nptr; aes_init(); blocks = 10; if (argc > 1) { long b = strtol(argv[1], &nptr, 10); if (argv[1] != nptr) { blocks = b; } } return 0; }
Allow specifying number of blocks to test
Allow specifying number of blocks to test
C
bsd-2-clause
seankelly/aesni,seankelly/aesni
f740bdd7dfea751bb9f7657ba58d44c4b2f5652d
src/core/SkTextFormatParams.h
src/core/SkTextFormatParams.h
/* * Copyright 2010 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkTextFormatParams_DEFINES #define SkTextFormatParams_DEFINES #include "include/core/SkScalar.h" #include "include/core/SkTypes.h" // Fraction o...
/* * Copyright 2010 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkTextFormatParams_DEFINES #define SkTextFormatParams_DEFINES #include "include/core/SkScalar.h" #include "include/core/SkTypes.h" // The fracti...
Remove unused text format constants.
Remove unused text format constants. A long time ago Skia used handle strike-thru and underlines as part of the glyph masks. When it did so there were some overridable constants for where they should go. Since this function has long since been removed, remove these no longer used constants. Change-Id: I8bc7dbe03e82a5...
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aos...
72939a4c9e1db029e42473a0b4e018c8e6f46cf8
sql/sqlite/inc/TSQLiteRow.h
sql/sqlite/inc/TSQLiteRow.h
// @(#)root/sqlite:$Id$ // Author: o.freyermuth <o.f@cern.ch>, 01/06/2013 /************************************************************************* * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/sqlite: // Author: o.freyermuth <o.f@cern.ch>, 01/06/2013 /************************************************************************* * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Fix fatal typo in code guard
Fix fatal typo in code guard
C
lgpl-2.1
arch1tect0r/root,zzxuanyuan/root-compressor-dummy,davidlt/root,BerserkerTroll/root,Y--/root,omazapa/root-old,vukasinmilosevic/root,sawenzel/root,gbitzes/root,sbinet/cxx-root,omazapa/root-old,arch1tect0r/root,simonpf/root,zzxuanyuan/root,gbitzes/root,omazapa/root-old,dfunke/root,zzxuanyuan/root-compressor-dummy,esakella...
69f10062ab629f12d111e538a4f1acb6d66327d4
test/Driver/nozlibcompress.c
test/Driver/nozlibcompress.c
// REQUIRES: nozlib // RUN: %clang -### -fintegrated-as -gz -c %s 2>&1 | FileCheck %s -check-prefix CHECK-WARN // RUN: %clang -### -fintegrated-as -gz=none -c %s 2>&1 | FileCheck -allow-empty -check-prefix CHECK-NOWARN %s // CHECK-WARN: warning: cannot compress debug sections (zlib not installed) // CHECK-NOWARN-NOT:...
// REQUIRES: !zlib // RUN: %clang -### -fintegrated-as -gz -c %s 2>&1 | FileCheck %s -check-prefix CHECK-WARN // RUN: %clang -### -fintegrated-as -gz=none -c %s 2>&1 | FileCheck -allow-empty -check-prefix CHECK-NOWARN %s // CHECK-WARN: warning: cannot compress debug sections (zlib not installed) // CHECK-NOWARN-NOT: ...
Replace 'REQUIRES: nozlib' with '!zlib' because we don't need two ways to say the same thing.
Replace 'REQUIRES: nozlib' with '!zlib' because we don't need two ways to say the same thing. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@360452 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
a7d34e88287ab77caa99d58092c66da92546a10a
ReactLocalization.h
ReactLocalization.h
// // The MIT License (MIT) // // Copyright (c) 2015 Stefano Falda (stefano.falda@gmail.com) // // 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 limit...
// // The MIT License (MIT) // // Copyright (c) 2015 Stefano Falda (stefano.falda@gmail.com) // // 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 limit...
Change headers for react-native 0.40 compatibility
Change headers for react-native 0.40 compatibility
C
mit
stefalda/ReactNativeLocalization,stefalda/ReactNativeLocalization,stefalda/ReactNativeLocalization,stefalda/ReactNativeLocalization
9ba97cce3773e59677346e66484dbdc5c80f26a6
test/main.c
test/main.c
#include <stdio.h> #include "bincookie.h" int main(int argc, char *argv[]) { if (argc != 2) { printf("Usage: %s [Full path to Cookies.binarycookies file]\n", argv[0]); printf("Example: %s Cookies.binarycookies\n", argv[0]); return 1; } binarycookies_t *bc = binarycookies_init(argv...
#include <stdio.h> #include "bincookie.h" int main(int argc, char *argv[]) { if (argc != 2) { printf("Usage: %s [Full path to Cookies.binarycookies file]\n", argv[0]); printf("Example: %s Cookies.binarycookies\n", argv[0]); return 1; } binarycookies_t *bc = binarycookies_init(argv...
Use macro in example code
Use macro in example code
C
mit
Tatsh/libbinarycookies,Tatsh/libbinarycookies
92bbf5c179d533c93c19a51a62770cf5392a95a5
t/04-nativecall/04-pointers.c
t/04-nativecall/04-pointers.c
#include <stdio.h> #include <string.h> #ifdef WIN32 #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT extern #endif DLLEXPORT void * ReturnSomePointer() { char *x = "Got passed back the pointer I returned"; return x; } DLLEXPORT int CompareSomePointer(void *ptr) { int x = strcmp("Got passed...
#include <stdio.h> #include <string.h> #ifdef WIN32 #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT extern #endif DLLEXPORT void * ReturnSomePointer() { return strdup("Got passed back the pointer I returned"); } DLLEXPORT int CompareSomePointer(void *ptr) { int x = strcmp("Got passed back the...
Fix C issue in NativeCall tests.
Fix C issue in NativeCall tests. One of the pointer tests returned a pointer to astack allocated string outside of the function, which is not very safe. Replace it with a strdup()ed string that's freed on verification.
C
artistic-2.0
ab5tract/rakudo,b2gills/rakudo,niner/rakudo,nbrown/rakudo,sergot/rakudo,cygx/rakudo,samcv/rakudo,rakudo/rakudo,lucasbuchala/rakudo,raydiak/rakudo,b2gills/rakudo,niner/rakudo,niner/rakudo,salortiz/rakudo,rakudo/rakudo,Gnouc/rakudo,softmoth/rakudo,paultcochrane/rakudo,zostay/rakudo,tony-o/rakudo,nunorc/rakudo,cygx/rakudo...
a089ce29161267cca724bf76ad98602e90b30178
tests/test_utils.h
tests/test_utils.h
/* Copyright libCellML Contributors 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, softwa...
/* Copyright libCellML Contributors 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, softwa...
Add fullstop for the pc crowd (punctually correct).
Add fullstop for the pc crowd (punctually correct).
C
apache-2.0
cellml/libcellml,hsorby/libcellml,nickerso/libcellml,nickerso/libcellml,cellml/libcellml,nickerso/libcellml,hsorby/libcellml,cellml/libcellml,cellml/libcellml,MichaelClerx/libcellml,hsorby/libcellml,hsorby/libcellml,MichaelClerx/libcellml,MichaelClerx/libcellml,nickerso/libcellml
7b731e9071b09adedb44d097a3ae7c04488e345c
NSTimeZone+Offset.h
NSTimeZone+Offset.h
// // NSTimeZone+Offset.h // CocoaGit // // Created by Geoffrey Garside on 28/07/2008. // Copyright 2008 ManicPanda.com. All rights reserved. // #import <Foundation/NSTimeZone.h> @interface NSTimeZone (Offset) + (id)timeZoneWithStringOffset:(NSString*)offset; - (NSString*)offsetString; @end
// // NSTimeZone+Offset.h // CocoaGit // // Created by Geoffrey Garside on 28/07/2008. // Copyright 2008 ManicPanda.com. All rights reserved. // #import <Foundation/NSTimeZone.h> @interface NSTimeZone (Offset) /*! Creates and returns a time zone with the specified offset. * The string is broken down into the ho...
Add documentation of the category methods on NSTimeZone
Add documentation of the category methods on NSTimeZone
C
mit
geoffgarside/cocoagit,geoffgarside/cocoagit,schacon/cocoagit,schacon/cocoagit
b2dcde40c7dc565e51210b1fd505a3f7368bec23
panda/src/audio/audio.h
panda/src/audio/audio.h
// Filename: audio.h // Created by: frang (06Jul00) // //////////////////////////////////////////////////////////////////// // // 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 r...
// Filename: audio.h // Created by: frang (06Jul00) // //////////////////////////////////////////////////////////////////// // // 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 r...
Apply patch by Josh Enes
Apply patch by Josh Enes
C
bsd-3-clause
mgracer48/panda3d,Wilee999/panda3d,brakhane/panda3d,jjkoletar/panda3d,jjkoletar/panda3d,tobspr/panda3d,jjkoletar/panda3d,Wilee999/panda3d,grimfang/panda3d,brakhane/panda3d,brakhane/panda3d,tobspr/panda3d,hj3938/panda3d,matthiascy/panda3d,brakhane/panda3d,hj3938/panda3d,jjkoletar/panda3d,ee08b397/panda3d,tobspr/panda3d,...
9cf087465ffee40dbe4657dc2e8ffeb63eeb53e9
Synchronized/ObjCSynchronized.h
Synchronized/ObjCSynchronized.h
// The MIT License (MIT) // // Copyright (c) 2014-present James Ide // // 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 us...
// The MIT License (MIT) // // Copyright (c) 2014-present James Ide // // 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 us...
Use NS_ASSUME_NONNULL_BEGIN/END macros in Obj-C header
Use NS_ASSUME_NONNULL_BEGIN/END macros in Obj-C header The mutex object and block shouldn't be null. We could change the API to accept null but I don't think that's natural to do (and the Swift API forbids it anyway right now).
C
mit
ide/Synchronized,ide/Synchronized
5560daf0cbabab65b07476ca16285012a4f6489e
src/util/tmpfile.c
src/util/tmpfile.c
#define _XOPEN_SOURCE 500 /* mkstemp */ #include <stdlib.h> #include <unistd.h> #include "tmpfile.h" #include "alloc.h" int tmpfile_prefix_out(const char *prefix, char **const fname) { char *tmppath; int fd; char *tmpdir = getenv("TMPDIR"); #ifdef P_tmpdir if(!tmpdir) tmpdir = P_tmpdir; #endif if(!tmpdir) t...
#define _XOPEN_SOURCE 500 /* mkstemp */ #include <stdlib.h> #include <unistd.h> #include "tmpfile.h" #include "alloc.h" int tmpfile_prefix_out(const char *prefix, char **const fname) { char *tmppath; int fd; char *tmpdir = getenv("TMPDIR"); #ifdef P_tmpdir if(!tmpdir) tmpdir = P_tmpdir; #endif if(!tmpdir) t...
Revert "Free tmppath on mkstemp() failure" (moved to master)
Revert "Free tmppath on mkstemp() failure" (moved to master) This reverts commit 85598a0ccbea2d82303c5cb2daa9a29ec01eb3d2.
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
dd54e6b9aded46da7a74eede6f935b289a979912
WidgetTimeInput.h
WidgetTimeInput.h
/** * @file WidgetTimeInput.h * @author Volodymyr Shymanskyy * @license This project is released under the MIT License (MIT) * @copyright Copyright (c) 2015 Volodymyr Shymanskyy * @date Aug 2016 * @brief * */ #ifndef WidgetTimeInput_h #define WidgetTimeInput_h #include <Blynk/BlynkApi.h> #...
/** * @file WidgetTimeInput.h * @author Volodymyr Shymanskyy * @license This project is released under the MIT License (MIT) * @copyright Copyright (c) 2015 Volodymyr Shymanskyy * @date Aug 2016 * @brief * */ #ifndef WidgetTimeInput_h #define WidgetTimeInput_h #include <Blynk/BlynkApi.h> #...
Switch to Time instead of DateTime
Switch to Time instead of DateTime
C
mit
ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library
c078961dce97d0126188b1d3df96f9af8fd2f00f
projects/com.oracle.truffle.llvm.test/tests/c/truffle-c/inlineTest/inline0.c
projects/com.oracle.truffle.llvm.test/tests/c/truffle-c/inlineTest/inline0.c
int foo(int a, int b, int c) { int arr[5] = { 1, 2, 3, 4, 5 }; int d = 4; int *p = &d; return a + b + c + arr[4] + arr[0] + *p; } int main() { int a, b, c; a = 2; b = 1; c = 3; int d = 4; int *p = &d; int i; for (i = 0; i < 1234567; i++) { *p = foo(a, b, c); } return *p; }
int foo(int a, int b, int c) { int arr[5] = { 1, 2, 3, 4, 5 }; int d = 4; int *p = &d; return a + b + c + arr[4] + arr[0] + *p; } int main() { int a, b, c; a = 2; b = 1; c = 3; int d = 4; int *p = &d; int i; for (i = 0; i < 12345; i++) { *p = foo(a, b, c); } return *p; }
Reduce the loop iteration count in test case to reduce the execution time
Reduce the loop iteration count in test case to reduce the execution time
C
bsd-3-clause
crbb/sulong,PrinzKatharina/sulong,lxp/sulong,lxp/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong,crbb/sulong,PrinzKatharina/sulong,crbb/sulong,crbb/sulong,lxp/sulong,lxp/sulong
faa2c3b0b4ff1b4d90d897aa15b90b58ce4bdbb6
Classes/LVTFolder.h
Classes/LVTFolder.h
// // LVTFolder.h // LayerVaultAPIClient // // Created by Matt Thomas on 12/4/13. // Copyright (c) 2013 codecaffeine. All rights reserved. // #import <Mantle/Mantle.h> #import "LVTColor.h" @interface LVTFolder : MTLModel <MTLJSONSerializing> @property (readonly, nonatomic, copy) NSString *name; @property (nonato...
// // LVTFolder.h // LayerVaultAPIClient // // Created by Matt Thomas on 12/4/13. // Copyright (c) 2013 codecaffeine. All rights reserved. // #import <Mantle/Mantle.h> #import "LVTColor.h" @interface LVTFolder : MTLModel <MTLJSONSerializing> @property (readonly, nonatomic, copy) NSString *name; @property (nonato...
Allow us to edit this
Allow us to edit this
C
mit
layervault/LayerVaultAPI.objc
ad83a4669be1681f314f54eee728d69543f9caa4
sw/device/lib/dif/dif_pinmux.c
sw/device/lib/dif/dif_pinmux.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_pinmux.h" #include "sw/device/lib/dif/dif_base.h" #include "pinmux_regs.h" // Generated. // This just exists to check that the header...
// 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_pinmux.h" #include "sw/device/lib/base/bitfield.h" #include "sw/device/lib/dif/dif_base.h" #include "pinmux_regs.h" // Generated. // ...
Add DIF to set pinmux insel
[sw/pinmux] Add DIF to set pinmux insel Signed-off-by: Alexander Williams <d0fb8a15e7b6f5e62278a4cf44515038c232186c@google.com>
C
apache-2.0
lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan
f99f3f4944bb8973899bffc52040c19bb31b6119
test/CFrontend/exact-div-expr.c
test/CFrontend/exact-div-expr.c
// RUN: %llvmgcc -S %s -o - -O | grep ashr // RUN: %llvmgcc -S %s -o - -O | not grep sdiv int test(int *A, int *B) { return A-B; }
// RUN: %llvmgcc -S %s -o - -O | grep ashr // RUN: %llvmgcc -S %s -o - -O | not grep sdiv long long test(int *A, int *B) { return A-B; }
Fix for PR1567, which involves a weird bug on non-32bit architectures and silly C type sizes.
Fix for PR1567, which involves a weird bug on non-32bit architectures and silly C type sizes. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@40451 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/s...
ffeaf8d4204a555cb95858839378f36d0c5cc69e
VENCore/VENCore.h
VENCore/VENCore.h
@import Foundation; #import <VENCore/VENCreateTransactionRequest.h> #import <VENCore/VENHTTP.h> #import <VENCore/VENHTTPResponse.h> #import <VENCore/VENTransaction.h> #import <VENCore/VENTransactionTarget.h> #import <VENCore/VENUser.h> extern NSString *const VENErrorDomainCore; typedef NS_ENUM(NSInteger, VENCoreErro...
@import Foundation; #import <VENCore/VENCreateTransactionRequest.h> #import <VENCore/VENHTTP.h> #import <VENCore/VENHTTPResponse.h> #import <VENCore/VENTransaction.h> #import <VENCore/VENTransactionTarget.h> #import <VENCore/VENUser.h> #import <VENCore/NSArray+VENCore.h> #import <VENCore/NSDictionary+VENCore.h> #impor...
Add formerly private headers to the umbrella header
Add formerly private headers to the umbrella header
C
mit
venmo/VENCore
20fa76952f07ba3538e7528444bdbf17a5433099
c_solutions_1-10/Euler_4.c
c_solutions_1-10/Euler_4.c
#include "euler_util.h" #include <string.h> #define MAX 7 int main(int argc, char *argv[]) { float start = timeit(); char product[MAX] = { '\0' }; int high = 0; for (int x=100; x < 1000; x++) { for (int y=x; y < 1000; y++) { int canidate = x * y; size_t int_len = ...
#include "euler_util.h" #include <string.h> #define MAX 7 int main(int argc, char *argv[]) { float start = timeit(); char product[MAX] = { '\0' }; int high = 0; for (int x=100; x < 1000; x++) { for (int y=x; y < 1000; y++) { int canidate = x * y; if (canidate < hi...
Test against high before palindrome check down to ~0.01
Test against high before palindrome check down to ~0.01
C
mit
tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler
c09fa15de38e00b487e7aa07ba65882d3cb9d635
src/c/lib/colors.h
src/c/lib/colors.h
/* * Copyright (c) 2016 Jan Hoffmann * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #define COLOR_WINDOW_BACKGROUND GColorWhite #define COLOR...
/* * Copyright (c) 2016 Jan Hoffmann * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #define COLOR_WINDOW_BACKGROUND GColorWhite #define COLOR...
Change color of list selection to dark blue
Change color of list selection to dark blue
C
mpl-2.0
janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart
033dc1c92cf018d396e983d425b821dda420cfff
contrib/pg_xlogdump/rmgrdesc.c
contrib/pg_xlogdump/rmgrdesc.c
/* * rmgrdesc.c * * pg_xlogdump resource managers definition * * contrib/pg_xlogdump/rmgrdesc.c */ #define FRONTEND 1 #include "postgres.h" #include "access/clog.h" #include "access/gin.h" #include "access/gist_private.h" #include "access/hash.h" #include "access/heapam_xlog.h" #include "access/multixact.h" #inc...
/* * rmgrdesc.c * * pg_xlogdump resource managers definition * * contrib/pg_xlogdump/rmgrdesc.c */ #define FRONTEND 1 #include "postgres.h" #include "access/clog.h" #include "access/gin.h" #include "access/gist_private.h" #include "access/hash.h" #include "access/heapam_xlog.h" #include "access/multixact.h" #inc...
Fix compilation of pg_xlogdump, now that rm_safe_restartpoint is no more.
Fix compilation of pg_xlogdump, now that rm_safe_restartpoint is no more. Oops. Pointed out by Andres Freund.
C
mpl-2.0
Postgres-XL/Postgres-XL,ovr/postgres-xl,oberstet/postgres-xl,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,ovr/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,zeroae/postgres-xl,techdragon/Postgres-XL,lisakowen/gpdb,adam8157/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,xin...
fc7e29bc154d67f627274c657b4157132a1503e8
src/auth/mycrypt.c
src/auth/mycrypt.c
#define _XOPEN_SOURCE 4 #define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */ #define _XOPEN_VERSION 4 #define _XPG4_2 #include <unistd.h> #include "mycrypt.h" char *mycrypt(const char *key, const char *salt) { return crypt(key, salt); }
#define _XOPEN_SOURCE 4 #define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */ #define _XOPEN_VERSION 4 #define _XPG4_2 #ifdef CRYPT_USE_XPG6 # define _XPG6 /* Some Solaris versions require this, some break with this */ #endif #include <unistd.h> #include "mycrypt.h" char *mycrypt(const char *key, const char *salt)...
Add _XPG6 macro if needed..
Add _XPG6 macro if needed..
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
c5b898743a202742847f9738382c9d928b0d8586
arch/arm/core/aarch64/prep_c.c
arch/arm/core/aarch64/prep_c.c
/* * Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com> * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Full C support initialization * * Initialization of full C support: zero the .bss and call z_cstart(). * * Stack is available in this module, but not the global data/bss until their * ...
/* * Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com> * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Full C support initialization * * Initialization of full C support: zero the .bss and call z_cstart(). * * Stack is available in this module, but not the global data/bss until their * ...
Fix alignment fault on z_bss_zero()
aarch64: Fix alignment fault on z_bss_zero() Using newlibc with AArch64 is causing an alignement fault in z_bss_zero() when the code is run on real hardware (on QEMU the problem is not reproducible). The main cause is that the memset() function exported by newlibc is using 'DC ZVA' to zero out memory. While this is ...
C
apache-2.0
finikorg/zephyr,galak/zephyr,galak/zephyr,Vudentz/zephyr,nashif/zephyr,finikorg/zephyr,finikorg/zephyr,Vudentz/zephyr,finikorg/zephyr,Vudentz/zephyr,Vudentz/zephyr,finikorg/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,galak/zephyr,nashif/zephyr,gala...
6b95983e0c50bc24cb0bca433bd93d00d8de276f
src/eigen_qdebug.h
src/eigen_qdebug.h
#ifndef SRC_EIGEN_QDEBUG_H_ #define SRC_EIGEN_QDEBUG_H_ #include <Eigen/Core> #include <QDebug> #include <iostream> QDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector) { dbg << "[" << vector.x() << "|" << vector.y() << "]"; return dbg.maybeSpace(); } QDebug operator<<(QDebug dbg, const Eigen::Vector3f...
#ifndef SRC_EIGEN_QDEBUG_H_ #define SRC_EIGEN_QDEBUG_H_ #include <Eigen/Core> #include <QDebug> #include <iostream> QDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector) { dbg << "[" << vector.x() << "|" << vector.y() << "]"; return dbg.maybeSpace(); } QDebug operator<<(QDebug dbg, const Eigen::Vector3f...
Add overload for qDebug << and Eigen::Vector4f.
Add overload for qDebug << and Eigen::Vector4f.
C
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
34f3d3bba81d1714588ed7a0daf55d0b05a653f0
src/common/halloc/src/macros.h
src/common/halloc/src/macros.h
/* * This file is a part of Hierarchical Allocator library. * Copyright (c) 2004-2011 Alex Pankratov. All rights reserved. * * http://swapped.cc/halloc */ /* * The program is distributed under terms of BSD license. * You can obtain the copy of the license by visiting: * * http://www.opensource.org/licenses/b...
/* * This file is a part of Hierarchical Allocator library. * Copyright (c) 2004-2011 Alex Pankratov. All rights reserved. * * http://swapped.cc/halloc */ /* * The program is distributed under terms of BSD license. * You can obtain the copy of the license by visiting: * * http://www.opensource.org/licenses/b...
Fix pointer cast into integer type.
Fix pointer cast into integer type.
C
apache-2.0
fintler/tomatodb,fintler/tomatodb,fintler/tomatodb
a502e4bfc8c3a016f764df0c4baf9987ba7af1de
src/config/mpich2.h
src/config/mpich2.h
#ifndef PyMPI_CONFIG_MPICH2_H #define PyMPI_CONFIG_MPICH2_H #ifdef MS_WINDOWS #define PyMPI_MISSING_MPI_TYPE_CREATE_F90_INTEGER 1 #define PyMPI_MISSING_MPI_TYPE_CREATE_F90_REAL 1 #define PyMPI_MISSING_MPI_TYPE_CREATE_F90_COMPLEX 1 #endif #ifndef ROMIO_VERSION #include "mpich2io.h" #endif /* !ROMIO_VERSION */ #endif ...
#ifndef PyMPI_CONFIG_MPICH2_H #define PyMPI_CONFIG_MPICH2_H #ifdef MS_WINDOWS #if !defined(MPICH2_NUMVERSION) || (MPICH2_NUMVERSION < 10100000) #define PyMPI_MISSING_MPI_TYPE_CREATE_F90_INTEGER 1 #define PyMPI_MISSING_MPI_TYPE_CREATE_F90_REAL 1 #define PyMPI_MISSING_MPI_TYPE_CREATE_F90_COMPLEX 1 #endif /* MPICH2 < 1.1...
Update for MPICH2 1.1 on Windows
Update for MPICH2 1.1 on Windows
C
bsd-2-clause
mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py
c49c79960407e33d6ba47d5de0c78500cbf3205f
src/cpp2/expr_tok.h
src/cpp2/expr_tok.h
#ifndef EXPR_TOK_H #define EXPR_TOK_H extern expr_n tok_cur_num; extern enum tok { tok_ident = -1, tok_num = -2, tok_eof = 0, tok_lparen = '(', tok_rparen = ')', /* operators returned as char-value, * except for double-char ops */ /* binary */ tok_multiply = '*', tok_divide = '/', tok_modulus ...
#ifndef EXPR_TOK_H #define EXPR_TOK_H extern expr_n tok_cur_num; extern enum tok { tok_ident = -1, tok_num = -2, tok_eof = 0, tok_lparen = '(', tok_rparen = ')', /* operators returned as char-value, * except for double-char ops */ /* binary */ tok_multiply = '*', tok_divide = '/', tok_modulus ...
Fix clash in cpp tokens
Fix clash in cpp tokens
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
208d638fa4fbf31ba83445861ad13c2e8c72e5f4
include/llvm/Assembly/CWriter.h
include/llvm/Assembly/CWriter.h
//===-- llvm/Assembly/CWriter.h - C Printer for LLVM programs ---*- 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/Assembly/CWriter.h - C Printer for LLVM programs ---*- 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. // //===--------...
Change access to the cwriter
Change access to the cwriter git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@11406 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,GP...
ac7ac74083f27b98aebc6c2a3d370c609f3e0df5
libgnomeui/gnome-properties.h
libgnomeui/gnome-properties.h
#ifndef GNOME_PROPERTIES_H #define GNOME_PROPERTIES_H #include <libgnome/gnome-defs.h> BEGIN_GNOME_DECLS typedef struct { GtkWidget *notebook; GList *props; } GnomePropertyConfigurator; /* This is the first parameter to the callback function */ typedef enum { GNOME_PROPERTY_READ, GNOME_PROPERTY_WRITE, GNOME_PR...
#ifndef GNOME_PROPERTIES_H #define GNOME_PROPERTIES_H #include <libgnome/gnome-defs.h> BEGIN_GNOME_DECLS typedef struct { GtkWidget *notebook; GtkWidget *property_box; GList *props; } GnomePropertyConfigurator; /* This is the first parameter to the callback function */ typedef enum { GNOME_PROPERTY_READ, ...
Add a property box field so this stuff compiles
Add a property box field so this stuff compiles
C
lgpl-2.1
Distrotech/libgnomeui,Distrotech/libgnomeui,Distrotech/libgnomeui
8dbc6a0bccf04bb4d2cbc7a403c607641a2aaa25
optional/capi/ext/proc_spec.c
optional/capi/ext/proc_spec.c
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(args) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strc...
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(val) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strca...
Revert "Fix typo in the commit a5312c77."
Revert "Fix typo in the commit a5312c77." This reverts commit 401825d6045ab8e3bd1514404e7c326a045a92ae. See the following revert for an explanation.
C
mit
calavera/rubyspec,calavera/rubyspec
e38845ec04ed22b4e2190695bd0395a90dcc1794
lib/Common/ChakraCoreVersion.h
lib/Common/ChakraCoreVersion.h
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Update master branch version to 1.4
Update master branch version to 1.4
C
mit
mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore
eadd77272d857d9478baaf94833210e9af5498ed
Engine/source/gfx/gl/tGL/tGL.h
Engine/source/gfx/gl/tGL/tGL.h
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
Add @Azaezel's exception for Win32
Add @Azaezel's exception for Win32 "This chunk causes issues on the win8.1/non-SDL side."
C
mit
Bloodknight/Torque3D,GarageGames/Torque3D,Will-of-the-Wisp/Torque3D,Azaezel/Torque3D,lukaspj/Speciality,chaigler/Torque3D,rextimmy/Torque3D,Azaezel/Torque3D,Azaezel/Torque3D,aaravamudan2014/Torque3D,John3/Torque3D,Will-of-the-Wisp/Torque3D,GarageGames/Torque3D,Will-of-the-Wisp/Torque3D,Bloodknight/Torque3D,Duion/Torque...
2b78b93cc76b65b4f388d29431f70112c784d78d
src/graph.h
src/graph.h
#ifndef MOLCORE_GRAPH_H #define MOLCORE_GRAPH_H #include "molcore.h" #include <vector> namespace MolCore { class MOLCORE_EXPORT Graph { public: // construction and destruction Graph(); Graph(size_t size); ~Graph(); // properties void setSize(size_t size); size_t size() const; bool isEmpty() const; ...
#ifndef MOLCORE_GRAPH_H #define MOLCORE_GRAPH_H #include "molcore.h" #include <vector> #include <cstddef> namespace MolCore { class MOLCORE_EXPORT Graph { public: // construction and destruction Graph(); Graph(size_t size); ~Graph(); // properties void setSize(size_t size); size_t size() const; boo...
Include cstddef for size_t in newer GCC.
Include cstddef for size_t in newer GCC.
C
bsd-3-clause
OpenChemistry/avogadrolibs,cjh1/mongochemweb-avogadrolibs,cjh1/mongochemweb-avogadrolibs,ghutchis/avogadrolibs,cjh1/mongochemweb-avogadrolibs,OpenChemistry/avogadrolibs,OpenChemistry/avogadrolibs,OpenChemistry/avogadrolibs,wadejong/avogadrolibs,ghutchis/avogadrolibs,wadejong/avogadrolibs,wadejong/avogadrolibs,qust113/m...
a6cdef764509c20d7b17f5bab2db0bf1f1f90f2d
md5.h
md5.h
/* File: connection.h * * Description: See "md.h" * * Comments: See "notice.txt" for copyright and license information. * */ #ifndef __MD5_H__ #define __MD5_H__ #include "psqlodbc.h" #include <stdlib.h> #include <string.h> #ifdef WIN32 #define MD5_ODBC #define FRONTEND #endif #define MD5_PASSWD_LEN 35 /*...
/* File: connection.h * * Description: See "md.h" * * Comments: See "notice.txt" for copyright and license information. * */ #ifndef __MD5_H__ #define __MD5_H__ #include "psqlodbc.h" #include <stdlib.h> #include <string.h> #ifdef WIN32 #define MD5_ODBC #define FRONTEND #endif #define MD5_PASSWD_LEN 35 /*...
Add configure result checks on odbc, per Peter E.
Add configure result checks on odbc, per Peter E.
C
lgpl-2.1
gavioto/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,Distrotech/psqlodbc,Distrotech/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,gavioto/psqlodbc,Distrotech/psqlodbc,gavioto/psqlodbc
a3de6e9ab8fbd4c9462880dc5c138488b322efd0
test/FrontendC/2003-08-21-WideString.c
test/FrontendC/2003-08-21-WideString.c
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null // XFAIL: * // See PR2452 struct { int *name; } syms = { L"NUL" };
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null #include <wchar.h> struct { wchar_t *name; } syms = { L"NUL" };
Fix a warning, closing PR2452
Fix a warning, closing PR2452 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@52529 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chub...
3dbd3e6015ae8e703633e1a362d05561dbde2566
NSTimeZone+Offset.h
NSTimeZone+Offset.h
// // NSTimeZone+Offset.h // CocoaGit // // Created by Geoffrey Garside on 28/07/2008. // Copyright 2008 ManicPanda.com. All rights reserved. // #import <Cocoa/Cocoa.h> @interface NSTimeZone (Offset) + (id)timeZoneWithStringOffset:(NSString*)offset; - (NSString*)offsetString; @end
// // NSTimeZone+Offset.h // CocoaGit // // Created by Geoffrey Garside on 28/07/2008. // Copyright 2008 ManicPanda.com. All rights reserved. // #import <Foundation/NSTimeZone.h> @interface NSTimeZone (Offset) + (id)timeZoneWithStringOffset:(NSString*)offset; - (NSString*)offsetString; @end
Change NSTimeZone category to only import NSTimeZone parent class instead of Cocoa
Change NSTimeZone category to only import NSTimeZone parent class instead of Cocoa
C
mit
schacon/cocoagit,schacon/cocoagit,geoffgarside/cocoagit,geoffgarside/cocoagit
33e7f990e453efe202dde60ce3a2cb8609266a39
src/parse/scanner.h
src/parse/scanner.h
#ifndef SCANNER_H_ #define SCANNER_H_ // I want to remove this dependecy, equivalent to yy.tab.h ? #include "parse/GENERATED/parser.hxx" #undef yyFlexLexer // ugly hack, because <FlexLexer> is wonky #include <FlexLexer.h> #include <iostream> // Tell flex how to define lexing fn #undef YY_DECL #define YY_DECL ...
#ifndef SCANNER_H_ #define SCANNER_H_ // I want to remove this dependecy, equivalent to yy.tab.h ? #include "parse/GENERATED/parser.hxx" #undef yyFlexLexer // ugly hack, because <FlexLexer> is wonky #include <FlexLexer.h> #include <iostream> // Tell flex how to define lexing fn #undef YY_DECL #define YY_DECL ...
Prepare for new lex interface
Prepare for new lex interface
C
mit
laokaplow/tlc
d2a07eee4c8fcc05e495a7a42295af294834c1b6
ext/libxml/ruby_xml_node.h
ext/libxml/ruby_xml_node.h
/* $Id$ */ /* Please see the LICENSE file for copyright and distribution information */ #ifndef __RUBY_XML_NODE__ #define __RUBY_XML_NODE__ extern VALUE cXMLNode; extern VALUE eXMLNodeSetNamespace; extern VALUE eXMLNodeFailedModify; extern VALUE eXMLNodeUnknownType; VALUE ruby_xml_node2_wrap(VALUE class, xmlNodePtr...
/* $Id$ */ /* Please see the LICENSE file for copyright and distribution information */ #ifndef __RUBY_XML_NODE__ #define __RUBY_XML_NODE__ extern VALUE cXMLNode; extern VALUE eXMLNodeSetNamespace; extern VALUE eXMLNodeFailedModify; extern VALUE eXMLNodeUnknownType; VALUE ruby_xml_node2_wrap(VALUE class, xmlNodePtr...
Clean out needless declarations in the node.h header file.
Clean out needless declarations in the node.h header file.
C
mit
increments/libxml-ruby,xml4r/libxml-ruby,sferik/libxml-ruby,sferik/libxml-ruby,xml4r/libxml-ruby,sferik/libxml-ruby,increments/libxml-ruby,sferik/libxml-ruby,sferik/libxml-ruby,sferik/libxml-ruby,increments/libxml-ruby,xml4r/libxml-ruby
f461284a46bf073de958c65df190adaa331d80d3
testmud/mud/include/game/paths.h
testmud/mud/include/game/paths.h
#include <config.h> #define LIB_BULK (USR_DIR + "/Game/lib/bulk") #define LIB_TIME (USR_DIR + "/Game/lib/time") #define GAME_LIB_OBJECT (USR_DIR + "/Game/lib/object") #define BULKD (USR_DIR + "/Game/sys/bulkd") #define SNOOPD (USR_DIR + "/Game/sys/snoopd") #define TIMED (USR_DIR + "/Game/sys/timed") #define ...
#include <config.h> #define LIB_ACTION (USR_DIR + "/Game/lib/action") #define LIB_BULK (USR_DIR + "/Game/lib/bulk") #define GAME_LIB_OBJECT (USR_DIR + "/Game/lib/object") #define BULKD (USR_DIR + "/Game/sys/bulkd") #define SNOOPD (USR_DIR + "/Game/sys/snoopd") #define TIMED (USR_DIR + "/Game/sys/timed") #def...
Remove unwritten time library, add action library
Remove unwritten time library, add action library
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
c7601bf508d348ccf30666254f762c8ee793c943
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 73 #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 74 #endif
Update Skia milestone to 74
Update Skia milestone to 74 Bug: skia: Change-Id: Ief231cc48fd8a40bc10f21445884d599b27db799 Reviewed-on: https://skia-review.googlesource.com/c/186701 Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Aut...
C
bsd-3-clause
google/skia,google/skia,google/skia,google/skia,rubenvb/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,rubenvb/skia,H...
f48347635a849159f8733fcce1ee630d1cc34493
folly/detail/Singleton.h
folly/detail/Singleton.h
/* * Copyright 2018-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2018-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Remove unnecessary verbosity in DefaultMake
Remove unnecessary verbosity in DefaultMake Summary: [Folly] Remove unnecessary verbosity in `DefaultMake`. The shorter version does just as well. Reviewed By: andriigrynenko Differential Revision: D13254005 fbshipit-source-id: 6520b813685a4621d8679b7feda24a1a0b75cfd5
C
apache-2.0
facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly
46aaff03bcb8e5dd55a70eab7fb3aa50ef49b07a
src/wren_debug.h
src/wren_debug.h
// // wren_debug.h // wren // // Created by Bob Nystrom on 11/29/13. // Copyright (c) 2013 Bob Nystrom. All rights reserved. // #ifndef wren_wren_debug_h #define wren_wren_debug_h #include "wren_value.h" #include "wren_vm.h" void wrenDebugPrintStackTrace(WrenVM* vm, ObjFiber* fiber); int wrenDebugPrintInstructio...
#ifndef wren_debug_h #define wren_debug_h #include "wren_value.h" #include "wren_vm.h" void wrenDebugPrintStackTrace(WrenVM* vm, ObjFiber* fiber); int wrenDebugPrintInstruction(WrenVM* vm, ObjFn* fn, int i); void wrenDebugPrintCode(WrenVM* vm, ObjFn* fn); void wrenDebugPrintStack(ObjFiber* fiber); #endif
Clean up debug header preamble.
Clean up debug header preamble.
C
mit
Nelarius/wren,Nelarius/wren,Nave-Neel/wren,munificent/wren,Nave-Neel/wren,Rohansi/wren,foresterre/wren,Nelarius/wren,Nelarius/wren,munificent/wren,munificent/wren,minirop/wren,minirop/wren,munificent/wren,bigdimboom/wren,bigdimboom/wren,Nave-Neel/wren,bigdimboom/wren,Nave-Neel/wren,Rohansi/wren,minirop/wren,foresterre/...
621ef4c87b34fe0e6f1f945192820f0f2e655205
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.53f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.54f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
Increment version number to 1.54
Increment version number to 1.54
C
apache-2.0
google/UIforETW,google/UIforETW,google/UIforETW,google/UIforETW
0f3574df54fe9dc4e4d0a88a111f7787073af076
Pod/Classes/DZVideoPlayerViewControllerConfiguration.h
Pod/Classes/DZVideoPlayerViewControllerConfiguration.h
// // DZVideoPlayerViewControllerConfiguration.h // Pods // // Created by Denis Zamataev on 15/07/15. // // #import <Foundation/Foundation.h> @interface DZVideoPlayerViewControllerConfiguration : NSObject @property (assign, nonatomic) BOOL isBackgroundPlaybackEnabled; // defaults to NO @property (strong, nonatomi...
// // DZVideoPlayerViewControllerConfiguration.h // Pods // // Created by Denis Zamataev on 15/07/15. // // #import <Foundation/Foundation.h> @interface DZVideoPlayerViewControllerConfiguration : NSObject @property (assign, nonatomic) BOOL isBackgroundPlaybackEnabled; // defaults to YES @property (strong, nonatom...
Fix wrong comment in configuration
Fix wrong comment in configuration
C
mit
MessuKilkain/DZVideoPlayerViewController,MessuKilkain/DZVideoPlayerViewController,MessuKilkain/DZVideoPlayerViewController
32007a555cc2d10207e65a163f6ab809534d47e4
compiler/cpp/src/parse/t_enum.h
compiler/cpp/src/parse/t_enum.h
// Copyright (c) 2006- Facebook // Distributed under the Thrift Software License // // See accompanying file LICENSE or visit the Thrift site at: // http://developers.facebook.com/thrift/ #ifndef T_ENUM_H #define T_ENUM_H #include "t_enum_value.h" #include <vector> /** * An enumerated type. A list of constant objec...
// Copyright (c) 2006- Facebook // Distributed under the Thrift Software License // // See accompanying file LICENSE or visit the Thrift site at: // http://developers.facebook.com/thrift/ #ifndef T_ENUM_H #define T_ENUM_H #include "t_enum_value.h" #include <vector> /** * An enumerated type. A list of constant objec...
Fix set_name compiler method signature
Fix set_name compiler method signature Reviewed By: kholst Other Notes: Follow up from 78130 git-svn-id: 8d8e29b1fb681c884914062b88f3633e3a187774@665434 13f79535-47bb-0310-9956-ffa450edef68
C
apache-2.0
JoeEnnever/thrift,authbox-lib/thrift,ijuma/thrift,collinmsn/thrift,authbox-lib/thrift,creker/thrift,3013216027/thrift,afds/thrift,alfredtofu/thrift,Jimdo/thrift,msonnabaum/thrift,theopolis/thrift,i/thrift,flandr/thrift,selaselah/thrift,Jimdo/thrift,prathik/thrift,bufferoverflow/thrift,tanmaykm/thrift,fernandobt8/thrift...
fadc5f679f9aae27b623c95f91208b2f139e089e
tests/embedded/main.c
tests/embedded/main.c
/* * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1 * Copyright © 2009 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <hwloc.h> #include <stdio.h> int main(int argc, char *argv[]) { mytest_hwloc_topology_t topology; unsigned depth; hwloc_cpuset_t cpu_s...
/* * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1 * Copyright © 2009 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <hwloc.h> #include <stdio.h> int main(int argc, char *argv[]) { mytest_hwloc_topology_t topology; unsigned depth; hwloc_cpuset_t cpu_s...
Add some more print statements to this test, ju...
Add some more print statements to this test, ju... Add some more print statements to this test, just to help differentiate the output when debugging is enabled This commit was SVN r1752.
C
bsd-3-clause
ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc
a13c9cb6fcb83f58c111ec35cfe629e74cff13c3
main.c
main.c
#include <stdlib.h> #include <stdio.h> #include <time.h> #include "julina.h" int main(int argc, char **argv) { srand(time(NULL)); double aa[] = {2, 0, 1, -2, 3, 4, -5, 5, 6}; Matrix *a = new_matrix(aa, 3, 3); Matrix *ain = inverse(a); double bb[] = {1, -1, -2...
#include <stdlib.h> #include <stdio.h> #include <time.h> #include "julina.h" #define VARIABLE_START 'A' #define VARIABLE_COUNT 26 static Matrix *variables[VARIABLE_COUNT]; Matrix *get_variable(int c) { if (c < 0 || c >= VARIABLE_COUNT) { return NULL; } return variables[c - VARIABLE_START]; } // R...
Add variables and reading from string.
Add variables and reading from string.
C
mit
jlubi333/Julina
27caed992cd71fa50dcb6576b31f8a25b4611bee
src/include/uapi/libct-errors.h
src/include/uapi/libct-errors.h
#ifndef __LIBCT_ERRORS_H__ #define __LIBCT_ERRORS_H__ /* * This file contains errors, that can be returned from various * library calls */ /* Generic */ #define LCTERR_BADCTSTATE -2 /* Bad container state */ #define LCTERR_BADFSTYPE -3 /* Bad FS type */ #define LCTERR_BADNETTYPE -4 /* Bad Net type */ #define LCTERR...
#ifndef __LIBCT_ERRORS_H__ #define __LIBCT_ERRORS_H__ /* * This file contains errors, that can be returned from various * library calls */ /* * -1 is "reserved" for generic "something went wrong" result * since this value can be (well, is) widely explicitly used * all over the code. */ /* Generic */ #define LC...
Add comment about "reserved" -1 value
err: Add comment about "reserved" -1 value Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
C
apache-2.0
LK4D4/libct,avagin/libct,xemul/libct,cyrillos/xemul-libct,xemul/libct,cyrillos/xemul-libct,LK4D4/libct,hallyn/libct,cyrillos/xemul-libct,xemul/libct,xemul/libct,cyrillos/xemul-libct,hallyn/libct,avagin/libct,avagin/libct,hallyn/libct,LK4D4/libct