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, long double y) { return equivalent(x + y, __addtf3(x, y)); } #define TEST(x, y) do { \ _Static_assert(__builtin_constant_p((long double)(x) + (long double)(y)), "This test requires compile-time constants"); \ assert(run(x, y)); \ } while (0)
#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, NAN))); assert(isnan(__addtf3(NAN, INFINITY))); assert(isnan(__addtf3(NAN, 0x1.23456789abcdefp+3L))); assert(isnan(__addtf3(INFINITY, -INFINITY))); assert(run(INFINITY, INFINITY)); assert(run(INFINITY, -0x1.23456789abcdefp+3849L)); }
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( enum attr_expect_t expected, const char *expected_str, const char *value) { switch (expected) { case EXPECT_TRUE: cl_assert(GIT_ATTR_TRUE(value)); break; case EXPECT_FALSE: cl_assert(GIT_ATTR_FALSE(value)); break; case EXPECT_UNDEFINED: cl_assert(GIT_ATTR_UNSPECIFIED(value)); break; case EXPECT_STRING: cl_assert_strequal(expected_str, value); break; } } #endif
#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( enum attr_expect_t expected, const char *expected_str, const char *value) { switch (expected) { case EXPECT_TRUE: cl_assert(GIT_ATTR_TRUE(value)); break; case EXPECT_FALSE: cl_assert(GIT_ATTR_FALSE(value)); break; case EXPECT_UNDEFINED: cl_assert(GIT_ATTR_UNSPECIFIED(value)); break; case EXPECT_STRING: cl_assert_strequal(expected_str, value); break; } } #endif
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,JIghtuse/libgit2,nacho/libgit2,amyvmiwei/libgit2,falqas/libgit2,rcorre/libgit2,kenprice/libgit2,MrHacky/libgit2,zodiac/libgit2.js,mingyaaaa/libgit2,JIghtuse/libgit2,jflesch/libgit2-mariadb,KTXSoftware/libgit2,linquize/libgit2,nacho/libgit2,maxiaoqian/libgit2,linquize/libgit2,Snazz2001/libgit2,sim0629/libgit2,Corillian/libgit2,dleehr/libgit2,chiayolin/libgit2,since2014/libgit2,Corillian/libgit2,swisspol/DEMO-libgit2,MrHacky/libgit2,ardumont/libgit2,chiayolin/libgit2,spraints/libgit2,swisspol/DEMO-libgit2,JIghtuse/libgit2,iankronquist/libgit2,amyvmiwei/libgit2,jeffhostetler/public_libgit2,yosefhackmon/libgit2,saurabhsuniljain/libgit2,Snazz2001/libgit2,saurabhsuniljain/libgit2,spraints/libgit2,mingyaaaa/libgit2,claudelee/libgit2,linquize/libgit2,ardumont/libgit2,saurabhsuniljain/libgit2,dleehr/libgit2,mcanthony/libgit2,mhp/libgit2,zodiac/libgit2.js,nokiddin/libgit2,spraints/libgit2,Aorjoa/libgit2_maked_lib,leoyanggit/libgit2,whoisj/libgit2,t0xicCode/libgit2,Aorjoa/libgit2_maked_lib,yosefhackmon/libgit2,Tousiph/Demo1,Corillian/libgit2,MrHacky/libgit2,oaastest/libgit2,stewid/libgit2,nokiddin/libgit2,kissthink/libgit2,t0xicCode/libgit2,saurabhsuniljain/libgit2,whoisj/libgit2,JIghtuse/libgit2,zodiac/libgit2.js,stewid/libgit2,kissthink/libgit2,kenprice/libgit2,falqas/libgit2,dleehr/libgit2,leoyanggit/libgit2,leoyanggit/libgit2,linquize/libgit2,linquize/libgit2,dleehr/libgit2,mhp/libgit2,rcorre/libgit2,jeffhostetler/public_libgit2,whoisj/libgit2,JIghtuse/libgit2,since2014/libgit2,amyvmiwei/libgit2,stewid/libgit2,jflesch/libgit2-mariadb,sygool/libgit2,Tousiph/Demo1,ardumont/libgit2,KTXSoftware/libgit2,maxiaoqian/libgit2,sim0629/libgit2,claudelee/libgit2,jflesch/libgit2-mariadb,JIghtuse/libgit2,claudelee/libgit2,t0xicCode/libgit2,yosefhackmon/libgit2,yongthecoder/libgit2,stewid/libgit2,nacho/libgit2,falqas/libgit2,ardumont/libgit2,MrHacky/libgit2,KTXSoftware/libgit2,kissthink/libgit2,mcanthony/libgit2,raybrad/libit2,jamieleecool/ptest,iankronquist/libgit2,Corillian/libgit2,yosefhackmon/libgit2,iankronquist/libgit2,sygool/libgit2,jflesch/libgit2-mariadb,mhp/libgit2,nokiddin/libgit2,dleehr/libgit2,chiayolin/libgit2,jamieleecool/ptest,magnus98/TEST,raybrad/libit2,since2014/libgit2,mrksrm/Mingijura,Snazz2001/libgit2,jamieleecool/ptest,claudelee/libgit2,dleehr/libgit2,magnus98/TEST,iankronquist/libgit2,joshtriplett/libgit2,Snazz2001/libgit2,skabel/manguse,since2014/libgit2,claudelee/libgit2,skabel/manguse,oaastest/libgit2,jeffhostetler/public_libgit2,joshtriplett/libgit2,falqas/libgit2,jamieleecool/ptest,Aorjoa/libgit2_maked_lib,yosefhackmon/libgit2,swisspol/DEMO-libgit2,raybrad/libit2,kenprice/libgit2,sygool/libgit2,Tousiph/Demo1,sim0629/libgit2,raybrad/libit2,kissthink/libgit2,stewid/libgit2,Aorjoa/libgit2_maked_lib,saurabhsuniljain/libgit2,skabel/manguse,zodiac/libgit2.js,amyvmiwei/libgit2,joshtriplett/libgit2,nacho/libgit2,yongthecoder/libgit2,mingyaaaa/libgit2,Aorjoa/libgit2_maked_lib,nokiddin/libgit2,oaastest/libgit2,nokiddin/libgit2,magnus98/TEST,yosefhackmon/libgit2,yongthecoder/libgit2,ardumont/libgit2,Tousiph/Demo1,whoisj/libgit2,kissthink/libgit2,mhp/libgit2,jflesch/libgit2-mariadb,mingyaaaa/libgit2,yongthecoder/libgit2,mcanthony/libgit2,kenprice/libgit2,zodiac/libgit2.js,falqas/libgit2,spraints/libgit2,mcanthony/libgit2,whoisj/libgit2,since2014/libgit2,sim0629/libgit2,kissthink/libgit2,KTXSoftware/libgit2,maxiaoqian/libgit2,iankronquist/libgit2,sim0629/libgit2,evhan/libgit2,oaastest/libgit2,iankronquist/libgit2,t0xicCode/libgit2,skabel/manguse,leoyanggit/libgit2,swisspol/DEMO-libgit2,joshtriplett/libgit2,sim0629/libgit2,chiayolin/libgit2,skabel/manguse,whoisj/libgit2,spraints/libgit2,spraints/libgit2,mingyaaaa/libgit2,mingyaaaa/libgit2,since2014/libgit2,joshtriplett/libgit2,rcorre/libgit2,mcanthony/libgit2,mrksrm/Mingijura,jflesch/libgit2-mariadb,oaastest/libgit2,skabel/manguse,leoyanggit/libgit2,claudelee/libgit2,KTXSoftware/libgit2,Tousiph/Demo1,mhp/libgit2,jeffhostetler/public_libgit2,rcorre/libgit2,sygool/libgit2,ardumont/libgit2,evhan/libgit2,mrksrm/Mingijura,Snazz2001/libgit2,chiayolin/libgit2,mrksrm/Mingijura,rcorre/libgit2,Corillian/libgit2,falqas/libgit2,maxiaoqian/libgit2,chiayolin/libgit2,sygool/libgit2,amyvmiwei/libgit2,yongthecoder/libgit2,KTXSoftware/libgit2,mhp/libgit2,kenprice/libgit2,rcorre/libgit2,linquize/libgit2,yongthecoder/libgit2,raybrad/libit2,magnus98/TEST,leoyanggit/libgit2,nokiddin/libgit2,MrHacky/libgit2,swisspol/DEMO-libgit2,jeffhostetler/public_libgit2,evhan/libgit2,t0xicCode/libgit2,magnus98/TEST,jeffhostetler/public_libgit2,MrHacky/libgit2,mcanthony/libgit2
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, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #define REPTYR_VERSION "0.4" int attach_child(pid_t pid, const char *pty, int force_stdio); #define __printf __attribute__((format(printf, 1, 2))) void __printf die(const char *msg, ...); void __printf debug(const char *msg, ...); void __printf error(const char *msg, ...);
/* * 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, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #define REPTYR_VERSION "0.4dev" int attach_child(pid_t pid, const char *pty, int force_stdio); #define __printf __attribute__((format(printf, 1, 2))) void __printf die(const char *msg, ...); void __printf debug(const char *msg, ...); void __printf error(const char *msg, ...);
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)initWithPatient:(MRSPatient *)patient; @property (nonatomic, strong) MRSPatient *patient; @end
// // 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, strong) MRSPatient *patient; - (instancetype)initWithPatient:(MRSPatient *)patient; @end
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. // //===----------------------------------------------------------------------===// #ifndef LLDB_lldb_python_h_ #define LLDB_lldb_python_h_ // Python.h needs to be included before any system headers in order to avoid redefinition of macros #ifdef LLDB_DISABLE_PYTHON // Python is disabled in this build #else #include <Python/Python.h> #endif // LLDB_DISABLE_PYTHON #endif // 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. // //===----------------------------------------------------------------------===// #ifndef LLDB_lldb_python_h_ #define LLDB_lldb_python_h_ // Python.h needs to be included before any system headers in order to avoid redefinition of macros #ifdef LLDB_DISABLE_PYTHON // Python is disabled in this build #else #ifdef __FreeBSD__ #include <Python.h> #else #include <Python/Python.h> #endif #endif // LLDB_DISABLE_PYTHON #endif // LLDB_lldb_python_h_
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 * * @return None * */ #include <math.h> void p_itof(int *a, float *c, int n, int p, p_team_t team) { int i; for(i = 0; i < n; i++) { *(c + i) = (float)(*(a + i)); } }
#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 * * @return None * */ #include <math.h> void p_itof(int *a, float *c, int n, int p, p_team_t team) { for(int i = 0; i < n; i++) { *(c + i) = (float)(*(a + i)); } }
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 <bd28f8d49b61b0565f68fcded57d716070757017@email.com>
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/pal,Adamszk/pal3,debug-de-su-ka/pal,olajep/pal,parallella/pal,eliteraspberries/pal,eliteraspberries/pal,debug-de-su-ka/pal,parallella/pal,aolofsson/pal,aolofsson/pal,8l/pal,mateunho/pal,RafaelRMA/pal,mateunho/pal,Adamszk/pal3,olajep/pal,eliteraspberries/pal
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, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef PYTHONINLUA_H #define PYTHONINLUA_H #define POBJECT "POBJECT" int py_convert(lua_State *L, PyObject *o, int withnone); typedef struct { PyObject *o; int asindx; } py_object; void stackDump(lua_State *L); void tableDump(lua_State *L, int t); py_object *check_py_object(lua_State *L, int ud); LUA_API int luaopen_python(lua_State *L); #endif
/* 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, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef PYTHONINLUA_H #define PYTHONINLUA_H #define POBJECT "PyObject" int py_convert(lua_State *L, PyObject *o, int withnone); typedef struct { PyObject *o; int asindx; } py_object; void stackDump(lua_State *L); void tableDump(lua_State *L, int t); py_object *check_py_object(lua_State *L, int ud); LUA_API int luaopen_python(lua_State *L); #endif
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/AliPhysics,amatyja/AliPhysics,mkrzewic/AliPhysics,ALICEHLT/AliPhysics,amatyja/AliPhysics,lfeldkam/AliPhysics,adriansev/AliPhysics,ppribeli/AliPhysics,pbatzing/AliPhysics,rihanphys/AliPhysics,SHornung1/AliPhysics,jmargutt/AliPhysics,pbuehler/AliPhysics,pbuehler/AliPhysics,dstocco/AliPhysics,akubera/AliPhysics,preghenella/AliPhysics,fcolamar/AliPhysics,AMechler/AliPhysics,akubera/AliPhysics,pbuehler/AliPhysics,nschmidtALICE/AliPhysics,mbjadhav/AliPhysics,carstooon/AliPhysics,hcab14/AliPhysics,mbjadhav/AliPhysics,AudreyFrancisco/AliPhysics,akubera/AliPhysics,kreisl/AliPhysics,kreisl/AliPhysics,sebaleh/AliPhysics,rihanphys/AliPhysics,hzanoli/AliPhysics,dstocco/AliPhysics,lfeldkam/AliPhysics,lfeldkam/AliPhysics,btrzecia/AliPhysics,rbailhac/AliPhysics,aaniin/AliPhysics,lfeldkam/AliPhysics,rderradi/AliPhysics,lcunquei/AliPhysics,dmuhlhei/AliPhysics,pchrista/AliPhysics,lfeldkam/AliPhysics,rihanphys/AliPhysics,alisw/AliPhysics,nschmidtALICE/AliPhysics,amatyja/AliPhysics,nschmidtALICE/AliPhysics,aaniin/AliPhysics,amaringarcia/AliPhysics,mpuccio/AliPhysics,preghenella/AliPhysics,pbuehler/AliPhysics,jgronefe/AliPhysics,pchrista/AliPhysics,amatyja/AliPhysics,hcab14/AliPhysics,rihanphys/AliPhysics,mpuccio/AliPhysics,hcab14/AliPhysics,sebaleh/AliPhysics,fcolamar/AliPhysics,AudreyFrancisco/AliPhysics,preghenella/AliPhysics,mazimm/AliPhysics,adriansev/AliPhysics,aaniin/AliPhysics,mkrzewic/AliPhysics,jgronefe/AliPhysics,btrzecia/AliPhysics,jgronefe/AliPhysics,fbellini/AliPhysics,ALICEHLT/AliPhysics,fbellini/AliPhysics,rbailhac/AliPhysics,fbellini/AliPhysics,AMechler/AliPhysics,ALICEHLT/AliPhysics,dlodato/AliPhysics,jmargutt/AliPhysics,AMechler/AliPhysics,carstooon/AliPhysics,dmuhlhei/AliPhysics,amaringarcia/AliPhysics,mkrzewic/AliPhysics,mvala/AliPhysics,mpuccio/AliPhysics,yowatana/AliPhysics,rihanphys/AliPhysics,SHornung1/AliPhysics,lfeldkam/AliPhysics,mkrzewic/AliPhysics,sebaleh/AliPhysics,lfeldkam/AliPhysics,rbailhac/AliPhysics,mazimm/AliPhysics,AMechler/AliPhysics,dmuhlhei/AliPhysics,pbatzing/AliPhysics,mvala/AliPhysics,SHornung1/AliPhysics,sebaleh/AliPhysics,mpuccio/AliPhysics,amaringarcia/AliPhysics,pbuehler/AliPhysics,mkrzewic/AliPhysics,ppribeli/AliPhysics,aaniin/AliPhysics,adriansev/AliPhysics,yowatana/AliPhysics,victor-gonzalez/AliPhysics,sebaleh/AliPhysics,pchrista/AliPhysics,hcab14/AliPhysics,rihanphys/AliPhysics,victor-gonzalez/AliPhysics,lcunquei/AliPhysics,alisw/AliPhysics,yowatana/AliPhysics,jgronefe/AliPhysics,btrzecia/AliPhysics,ppribeli/AliPhysics,ALICEHLT/AliPhysics,fcolamar/AliPhysics,SHornung1/AliPhysics,dstocco/AliPhysics,pchrista/AliPhysics,dmuhlhei/AliPhysics,mkrzewic/AliPhysics,carstooon/AliPhysics,jmargutt/AliPhysics,fbellini/AliPhysics,sebaleh/AliPhysics,ppribeli/AliPhysics,mbjadhav/AliPhysics,pbatzing/AliPhysics,SHornung1/AliPhysics,mazimm/AliPhysics,amatyja/AliPhysics,adriansev/AliPhysics,preghenella/AliPhysics,alisw/AliPhysics,aaniin/AliPhysics,aaniin/AliPhysics,dmuhlhei/AliPhysics,kreisl/AliPhysics,btrzecia/AliPhysics,alisw/AliPhysics,jgronefe/AliPhysics,pbatzing/AliPhysics,hcab14/AliPhysics,hzanoli/AliPhysics,hzanoli/AliPhysics,victor-gonzalez/AliPhysics,mpuccio/AliPhysics,dlodato/AliPhysics,fbellini/AliPhysics,SHornung1/AliPhysics,rbailhac/AliPhysics,mazimm/AliPhysics,sebaleh/AliPhysics,ppribeli/AliPhysics,mvala/AliPhysics,mvala/AliPhysics,mazimm/AliPhysics,adriansev/AliPhysics,hzanoli/AliPhysics,mvala/AliPhysics,ALICEHLT/AliPhysics,fcolamar/AliPhysics,amatyja/AliPhysics,dmuhlhei/AliPhysics,jgronefe/AliPhysics,mvala/AliPhysics,jmargutt/AliPhysics,carstooon/AliPhysics,dlodato/AliPhysics,alisw/AliPhysics,amatyja/AliPhysics,AMechler/AliPhysics,lcunquei/AliPhysics,preghenella/AliPhysics,mpuccio/AliPhysics,hzanoli/AliPhysics,AudreyFrancisco/AliPhysics,SHornung1/AliPhysics,rderradi/AliPhysics,btrzecia/AliPhysics,amaringarcia/AliPhysics,pbatzing/AliPhysics,adriansev/AliPhysics,AudreyFrancisco/AliPhysics,nschmidtALICE/AliPhysics,rderradi/AliPhysics,amaringarcia/AliPhysics,pbatzing/AliPhysics,aaniin/AliPhysics,yowatana/AliPhysics,ppribeli/AliPhysics,hzanoli/AliPhysics,alisw/AliPhysics,AudreyFrancisco/AliPhysics,akubera/AliPhysics,lcunquei/AliPhysics,yowatana/AliPhysics,jmargutt/AliPhysics,AMechler/AliPhysics,victor-gonzalez/AliPhysics,AudreyFrancisco/AliPhysics,mbjadhav/AliPhysics,amaringarcia/AliPhysics,mbjadhav/AliPhysics,kreisl/AliPhysics,akubera/AliPhysics,rderradi/AliPhysics,dlodato/AliPhysics,fcolamar/AliPhysics,lcunquei/AliPhysics,dstocco/AliPhysics,jmargutt/AliPhysics,victor-gonzalez/AliPhysics,dlodato/AliPhysics,dlodato/AliPhysics,yowatana/AliPhysics,pbuehler/AliPhysics,dlodato/AliPhysics,yowatana/AliPhysics,jmargutt/AliPhysics,ppribeli/AliPhysics,victor-gonzalez/AliPhysics,mvala/AliPhysics,jgronefe/AliPhysics,nschmidtALICE/AliPhysics,hcab14/AliPhysics,rbailhac/AliPhysics,carstooon/AliPhysics,kreisl/AliPhysics,dstocco/AliPhysics,fbellini/AliPhysics,AudreyFrancisco/AliPhysics,rihanphys/AliPhysics,preghenella/AliPhysics,alisw/AliPhysics,pbatzing/AliPhysics,mpuccio/AliPhysics,mazimm/AliPhysics,hzanoli/AliPhysics,akubera/AliPhysics,rderradi/AliPhysics,lcunquei/AliPhysics,ALICEHLT/AliPhysics,AMechler/AliPhysics,amaringarcia/AliPhysics,carstooon/AliPhysics,rderradi/AliPhysics,mbjadhav/AliPhysics,pchrista/AliPhysics,adriansev/AliPhysics,ALICEHLT/AliPhysics,rbailhac/AliPhysics,nschmidtALICE/AliPhysics,akubera/AliPhysics,pchrista/AliPhysics,rbailhac/AliPhysics,dstocco/AliPhysics,pchrista/AliPhysics,btrzecia/AliPhysics,victor-gonzalez/AliPhysics,hcab14/AliPhysics,dstocco/AliPhysics
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': x++; case 'd': x--; case 'o': case 'c': printf("%d\n", x); case 's': case 'k': x = x*x; default: printf("\n"); } input(); /* Loop */ }
#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 == -1) x = 0; /* Operators */ switch(in){ case 'i': case 'x': x++; case 'd': x--; case 'o': case 'c': printf("%d\n", x); case 's': case 'k': x = x*x; default: printf("\n"); } }
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> * Copyright (C) 2000 Hewlett-Packard Co * Copyright (C) 2000 David Mosberger-Tang <davidm@hpl.hp.com> */ #include <linux/sched.h> #include <linux/irq.h> static unsigned int lsapic_noop_startup (unsigned int irq) { return 0; } static void lsapic_noop (unsigned int irq) { /* nothing to do... */ } static int lsapic_retrigger(unsigned int irq) { ia64_resend_irq(irq); return 1; } struct irq_chip irq_type_ia64_lsapic = { .name = "LSAPIC", .startup = lsapic_noop_startup, .shutdown = lsapic_noop, .enable = lsapic_noop, .disable = lsapic_noop, .ack = lsapic_noop, .retrigger = lsapic_retrigger, };
/* * 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> * Copyright (C) 2000 Hewlett-Packard Co * Copyright (C) 2000 David Mosberger-Tang <davidm@hpl.hp.com> */ #include <linux/sched.h> #include <linux/irq.h> static unsigned int lsapic_noop_startup (struct irq_data *data) { return 0; } static void lsapic_noop (struct irq_data *data) { /* nothing to do... */ } static int lsapic_retrigger(struct irq_data *data) { ia64_resend_irq(data->irq); return 1; } struct irq_chip irq_type_ia64_lsapic = { .name = "LSAPIC", .irq_startup = lsapic_noop_startup, .irq_shutdown = lsapic_noop, .irq_enable = lsapic_noop, .irq_disable = lsapic_noop, .irq_ack = lsapic_noop, .irq_retrigger = lsapic_retrigger, };
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_kernel_samsung_kanas,KristFoundation/Programs
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) { } Event * dup() const override { return new PurchaseEvent(*this); } void dispatch(EventHandler & element) override; bool isBroadcast() const override { return true; } Type getType() { return type; } bool isNew() { return newPurchase; } int getProductId() { return productId; } private: Type type; bool newPurchase; int productId; }; #endif
#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(_productId) { } Event * dup() const override { return new PurchaseEvent(*this); } void dispatch(EventHandler & element) override; bool isBroadcast() const override { return true; } Type getType() { return type; } bool isNew() { return newPurchase; } std::string getProductId() { return productId; } private: Type type; bool newPurchase; std::string productId; }; #endif
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 ; } comments for single-line asm __asm {} __asm int 4 return 10; } void t7() { __asm { push ebx mov ebx, 0x07 pop ebx } } void t8() { __asm nop __asm nop __asm nop } void t9() { __asm nop __asm nop ; __asm nop } int t_fail() { // expected-note {{to match this}} __asm __asm { // expected-error 3 {{expected}} expected-note {{to match this}}
// 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! }{ } __asm {} } int t6() { __asm int 3 ; } comments for single-line asm __asm {} __asm int 4 return 10; } void t7() { __asm { push ebx mov ebx, 0x07 pop ebx } } void t8() { __asm nop __asm nop __asm nop } void t9() { __asm nop __asm nop ; __asm nop } int t_fail() { // expected-note {{to match this}} __asm __asm { // expected-error 3 {{expected}} expected-note {{to match this}}
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-clang,apple/swift-clang,llvm-mirror/clang
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. */ typedef void * physical_ptr; /** 64-bit generic big endian type. */ typedef uint64_t be64; /** 32-bit generic big endian type. */ typedef uint32_t be32; /** 64-bit generic little endian type. */ typedef uint64_t le64; /** 32-bit generic little endian type. */ typedef uint32_t le32; #endif
// 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 pointer type. */ typedef void * physical_ptr; /** 64-bit generic big endian type. */ typedef uint64_t be64; /** 32-bit generic big endian type. */ typedef uint32_t be32; /** 64-bit generic little endian type. */ typedef uint64_t le64; /** 32-bit generic little endian type. */ typedef uint32_t le32; #endif
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 TYPE RESERVED\n"); for(int i = 0; i < *bios_memmap_entries_ptr; i++) { BmmapEntry * entry = &(*bios_memmap_ptr)[i]; vty_printf("%08x %08x %08x %08x %08x %08x\n", entry->base_addr_low, entry->base_addr_high, entry->length_low, entry->length_high, entry->type, entry->reserved); } }
#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 TYPE RESERVED\n"); for(int i = 0; i < *bios_memmap_entries_ptr; i++) { BmmapEntry * entry = &(*bios_memmap_ptr)[i]; vty_printf("%08x:%08x %08x:%08x %08x %08x\n", entry->base_addr_high, entry->base_addr_low, entry->length_high, entry->length_low, entry->type, entry->reserved); } }
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/renderer_host/render_view_host_observer.h" class GURL; struct DesktopNotificationHostMsg_Show_Params; // Per-tab Desktop notification handler. Handles desktop notification IPCs // coming in from the renderer. class DesktopNotificationHandler : public RenderViewHostObserver { public: explicit DesktopNotificationHandler(RenderViewHost* render_view_host); virtual ~DesktopNotificationHandler(); private: // RenderViewHostObserver implementation. virtual bool OnMessageReceived(const IPC::Message& message); // IPC handlers. void OnShow(const DesktopNotificationHostMsg_Show_Params& params); void OnCancel(int notification_id); void OnRequestPermission(const GURL& origin, int callback_id); private: DISALLOW_COPY_AND_ASSIGN(DesktopNotificationHandler); }; #endif // 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/renderer_host/render_view_host_observer.h" class GURL; struct DesktopNotificationHostMsg_Show_Params; // Per-tab Desktop notification handler. Handles desktop notification IPCs // coming in from the renderer. class DesktopNotificationHandler : public RenderViewHostObserver { public: explicit DesktopNotificationHandler(RenderViewHost* render_view_host); virtual ~DesktopNotificationHandler(); private: // RenderViewHostObserver implementation. bool OnMessageReceived(const IPC::Message& message); // IPC handlers. void OnShow(const DesktopNotificationHostMsg_Show_Params& params); void OnCancel(int notification_id); void OnRequestPermission(const GURL& origin, int callback_id); private: DISALLOW_COPY_AND_ASSIGN(DesktopNotificationHandler); }; #endif // CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_
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/chromium.src,Just-D/chromium-1,anirudhSK/chromium,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,hujiajie/pa-chromium,robclark/chromium,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,ltilve/chromium,ondra-novak/chromium.src,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,robclark/chromium,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,rogerwang/chromium,ltilve/chromium,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,ChromiumWebApps/chromium,dushu1203/chromium.src,Fireblend/chromium-crosswalk,rogerwang/chromium,ondra-novak/chromium.src,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,keishi/chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,ChromiumWebApps/chromium,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,keishi/chromium,Fireblend/chromium-crosswalk,markYoungH/chromium.src,mogoweb/chromium-crosswalk,keishi/chromium,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,Chilledheart/chromium,zcbenz/cefode-chromium,Jonekee/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,ondra-novak/chromium.src,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,jaruba/chromium.src,M4sse/chromium.src,ltilve/chromium,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,nacl-webkit/chrome_deps,jaruba/chromium.src,patrickm/chromium.src,ltilve/chromium,M4sse/chromium.src,axinging/chromium-crosswalk,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,keishi/chromium,M4sse/chromium.src,keishi/chromium,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,rogerwang/chromium,dednal/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,jaruba/chromium.src,robclark/chromium,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,M4sse/chromium.src,dednal/chromium.src,rogerwang/chromium,ChromiumWebApps/chromium,littlstar/chromium.src,robclark/chromium,dushu1203/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,axinging/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,dednal/chromium.src,robclark/chromium,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,keishi/chromium,zcbenz/cefode-chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,krieger-od/nwjs_chromium.src,robclark/chromium,chuan9/chromium-crosswalk,markYoungH/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,robclark/chromium,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,littlstar/chromium.src,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,keishi/chromium,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,littlstar/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,rogerwang/chromium,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,ltilve/chromium,zcbenz/cefode-chromium,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,nacl-webkit/chrome_deps,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,robclark/chromium,zcbenz/cefode-chromium,ltilve/chromium,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,robclark/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,dednal/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,rogerwang/chromium,dushu1203/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,ltilve/chromium,mogoweb/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,axinging/chromium-crosswalk,axinging/chromium-crosswalk,zcbenz/cefode-chromium,Jonekee/chromium.src,dednal/chromium.src,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,hujiajie/pa-chromium,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,Fireblend/chromium-crosswalk,keishi/chromium,rogerwang/chromium,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,patrickm/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ltilve/chromium,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,dushu1203/chromium.src,hujiajie/pa-chromium,timopulkkinen/BubbleFish,M4sse/chromium.src,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,keishi/chromium,bright-sparks/chromium-spacewalk,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,krieger-od/nwjs_chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,keishi/chromium,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,dushu1203/chromium.src,M4sse/chromium.src,ltilve/chromium,ondra-novak/chromium.src,patrickm/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,dednal/chromium.src,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,Jonekee/chromium.src,ChromiumWebApps/chromium,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,keishi/chromium,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,M4sse/chromium.src,markYoungH/chromium.src
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> { public: ReflectionCoefficient(const InputParameters & parameters); virtual void initialize() override; virtual void execute() override; virtual PostprocessorValue getValue() override; virtual void threadJoin(const UserObject & y) override; protected: virtual Real computeReflection(); const VariableValue & _u; unsigned int _qp; private: const VariableValue & _coupled_imag; Real _theta; Real _length; Real _k; Real _coeff; Real _reflection_coefficient; }; #endif // REFLECTIONCOEFFICIENT_H
#pragma once #include "SidePostprocessor.h" #include "MooseVariableInterface.h" class ReflectionCoefficient; template <> InputParameters validParams<ReflectionCoefficient>(); class ReflectionCoefficient : public SidePostprocessor, public MooseVariableInterface<Real> { public: ReflectionCoefficient(const InputParameters & parameters); virtual void initialize() override; virtual void execute() override; virtual PostprocessorValue getValue() override; virtual void threadJoin(const UserObject & y) override; protected: virtual Real computeReflection(); const VariableValue & _u; unsigned int _qp; private: const VariableValue & _coupled_imag; Real _theta; Real _length; Real _k; Real _coeff; Real _reflection_coefficient; };
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,idaholab/moose,lindsayad/moose,laagesen/moose,dschwen/moose,idaholab/moose,milljm/moose,idaholab/moose,harterj/moose,laagesen/moose,lindsayad/moose,idaholab/moose,sapitts/moose,lindsayad/moose,sapitts/moose,dschwen/moose,idaholab/moose,andrsd/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.h" #include "allobjects.h" HMODULE PyWin_DLLhModule = NULL; BOOL WINAPI DllMain (HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: PyWin_DLLhModule = hInst; initall(); break; case DLL_PROCESS_DETACH: break; } return TRUE; }
/* 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" HMODULE PyWin_DLLhModule = NULL; BOOL WINAPI DllMain (HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: PyWin_DLLhModule = hInst; //initall(); break; case DLL_PROCESS_DETACH: break; } return TRUE; }
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; x <= TOWER2; x++) { if ((x != n1) && (x != n2)) { na = x; break; } } hanoi(a - 1, n1, na); // recursion printf("%d %d %d\n", a, n1, n2); hanoi(a - 1, na, n2); // recursion } } int main() { int n; scanf("%d", &n); hanoi(n, TOWER1, TOWER2); }
/* * 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; x <= TOWER2; x++) { if ((x != n1) && (x != n2)) { na = x; break; } } hanoi(a - 1, n1, na); // recursion printf("%d %d %d\n", a, n1, n2); hanoi(a - 1, na, n2); // recursion } } int main() { int n; scanf("%d", &n); hanoi(n, TOWER1, TOWER2); }
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(); private: static bool IsExiting(); static void GameLoop(); enum GameState { Uninitialized, ShowingSplash, Paused, ShowingMenu, Playing, Exiting }; // Represents the various states the game can be in. An enum is a user-defined type consisting of a set of named constants called enumerators. static GameState _gameState; static sf::RenderWindow _mainWindow; };
#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 void start(); private: static bool is_exiting(); static void game_loop(); enum game_state { Uninitialized, ShowingSplash, Paused, ShowingMenu, Playing, Exiting }; // Represents the various states the game can be in. An enum is a user-defined type consisting of a set of named constants called enumerators. static game_state s_game_state; static sf::RenderWindow s_main_window; }; #endif
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 ~Elastic(); protected: /// Compute the stress (sigma += deltaSigma) virtual void computeStress(); }; #endif
#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 ~Elastic(); protected: /// Compute the stress (sigma += deltaSigma) virtual void computeStress(); }; #endif
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,stimpsonsg/moose,harterj/moose,sapitts/moose,waxmanr/moose,tonkmr/moose,jiangwen84/moose,roystgnr/moose,laagesen/moose,harterj/moose,idaholab/moose,katyhuff/moose,stimpsonsg/moose,yipenggao/moose,liuwenf/moose,jasondhales/moose,shanestafford/moose,lindsayad/moose,wgapl/moose,waxmanr/moose,idaholab/moose,tonkmr/moose,zzyfisherman/moose,sapitts/moose,shanestafford/moose,lindsayad/moose,jinmm1992/moose,SudiptaBiswas/moose,markr622/moose,permcody/moose,zzyfisherman/moose,lindsayad/moose,liuwenf/moose,adamLange/moose,apc-llc/moose,dschwen/moose,bwspenc/moose,friedmud/moose,joshua-cogliati-inl/moose,SudiptaBiswas/moose,andrsd/moose,harterj/moose,joshua-cogliati-inl/moose,joshua-cogliati-inl/moose,cpritam/moose,friedmud/moose,jbair34/moose,backmari/moose,markr622/moose,jiangwen84/moose,raghavaggarwal/moose,milljm/moose,YaqiWang/moose,sapitts/moose,nuclear-wizard/moose,danielru/moose,YaqiWang/moose,Chuban/moose,roystgnr/moose,backmari/moose,friedmud/moose,WilkAndy/moose,jessecarterMOOSE/moose,raghavaggarwal/moose,nuclear-wizard/moose,kasra83/moose,nuclear-wizard/moose,harterj/moose,jessecarterMOOSE/moose,roystgnr/moose,laagesen/moose,nuclear-wizard/moose,milljm/moose,WilkAndy/moose,jhbradley/moose,mellis13/moose,permcody/moose,tonkmr/moose,dschwen/moose,milljm/moose,cpritam/moose,liuwenf/moose,laagesen/moose,andrsd/moose,roystgnr/moose,WilkAndy/moose,liuwenf/moose,danielru/moose,shanestafford/moose,apc-llc/moose,cpritam/moose,laagesen/moose,bwspenc/moose,adamLange/moose,xy515258/moose,friedmud/moose,danielru/moose,mellis13/moose,mellis13/moose,zzyfisherman/moose,dschwen/moose,capitalaslash/moose,jiangwen84/moose,WilkAndy/moose,jbair34/moose,andrsd/moose,markr622/moose,jiangwen84/moose,yipenggao/moose,markr622/moose,yipenggao/moose,cpritam/moose,apc-llc/moose,giopastor/moose,jasondhales/moose,WilkAndy/moose,katyhuff/moose,idaholab/moose,capitalaslash/moose,waxmanr/moose,wgapl/moose,roystgnr/moose,laagesen/moose,Chuban/moose,stimpsonsg/moose,kasra83/moose,bwspenc/moose,backmari/moose,idaholab/moose,Chuban/moose,roystgnr/moose,katyhuff/moose,jinmm1992/moose,liuwenf/moose,raghavaggarwal/moose,YaqiWang/moose,idaholab/moose,shanestafford/moose,lindsayad/moose,lindsayad/moose,joshua-cogliati-inl/moose,sapitts/moose,danielru/moose,kasra83/moose,adamLange/moose,dschwen/moose,permcody/moose,jessecarterMOOSE/moose,SudiptaBiswas/moose,xy515258/moose,capitalaslash/moose,roystgnr/moose,sapitts/moose,backmari/moose,SudiptaBiswas/moose,liuwenf/moose,zzyfisherman/moose,jhbradley/moose,zzyfisherman/moose,milljm/moose,WilkAndy/moose,yipenggao/moose,capitalaslash/moose,tonkmr/moose,SudiptaBiswas/moose,milljm/moose,dschwen/moose,kasra83/moose,cpritam/moose,shanestafford/moose,katyhuff/moose,andrsd/moose,bwspenc/moose,stimpsonsg/moose,waxmanr/moose,jinmm1992/moose,giopastor/moose,jasondhales/moose,harterj/moose,permcody/moose,jbair34/moose,tonkmr/moose,wgapl/moose,jinmm1992/moose,tonkmr/moose,jbair34/moose,jessecarterMOOSE/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 alloc Alloc; extern void die(const char *fmt, ...); extern void dbg(const char *fmt, ...); extern void newitem(struct items *items, char *item); extern void *xmalloc(size_t size); extern void *xcalloc(size_t nmemb, size_t size); extern char *xstrdup(const char *s); extern void *xrealloc(void *buff, register size_t size); extern Alloc *alloc(size_t size, size_t nmemb); extern void dealloc(Alloc *allocp); extern void *new(Alloc *allocp); extern void delete(Alloc *allocp, void *p); extern int casecmp(const char *s1, const char *s2); extern int lpack(unsigned char *dst, char *fmt, ...); extern int lunpack(unsigned char *src, char *fmt, ...);
#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 struct items { char **s; unsigned n; }; typedef struct alloc Alloc; extern void die(const char *fmt, ...); extern void dbg(const char *fmt, ...); extern void newitem(struct items *items, char *item); extern void *xmalloc(size_t size); extern void *xcalloc(size_t nmemb, size_t size); extern char *xstrdup(const char *s); extern void *xrealloc(void *buff, register size_t size); extern Alloc *alloc(size_t size, size_t nmemb); extern void dealloc(Alloc *allocp); extern void *new(Alloc *allocp); extern void delete(Alloc *allocp, void *p); extern int casecmp(const char *s1, const char *s2); extern int lpack(unsigned char *dst, char *fmt, ...); extern int lunpack(unsigned char *src, char *fmt, ...);
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 greatest, but don't build the CLI test runner code. */ GREATEST_INIT(); RUN_TEST(standalone_pass); /* Print report, but do not exit. */ printf("\nStandard report, as printed by greatest:\n"); GREATEST_PRINT_REPORT(); struct greatest_report_t report; greatest_get_report(&report); printf("\nCustom report:\n"); printf("pass %u, fail %u, skip %u, assertions %u\n", report.passed, report.failed, report.skipped, report.assertions); if (report.failed > 0) { return 1; } return 0; }
#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; (void)argv; /* Initialize greatest, but don't build the CLI test runner code. */ GREATEST_INIT(); RUN_TEST(standalone_pass); /* Print report, but do not exit. */ printf("\nStandard report, as printed by greatest:\n"); GREATEST_PRINT_REPORT(); greatest_get_report(&report); printf("\nCustom report:\n"); printf("pass %u, fail %u, skip %u, assertions %u\n", report.passed, report.failed, report.skipped, report.assertions); if (report.failed > 0) { return 1; } return 0; }
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(value); } static inline u32 be32_to_cpu(be32 value) { return ntohl(value); } #endif
#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); } static inline u16 le16_to_cpu(le16 value) { return le16toh(value); } static inline u32 le32_to_cpu(le32 value) { return le32toh(value); } static inline u64 le64_to_cpu(le64 value) { return le64toh(value); } /* * Big Endian */ static inline be16 cpu_to_be16(u16 value) { return htobe16(value); } static inline be32 cpu_to_be32(u32 value) { return htobe32(value); } static inline be64 cpu_to_be64(u64 value) { return htobe64(value); } static inline u16 be16_to_cpu(be16 value) { return be16toh(value); } static inline u32 be32_to_cpu(be32 value) { return be32toh(value); } static inline u64 be64_to_cpu(be64 value) { return be64toh(value); } #endif
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/libtrading,Bitcoinsulting/libtrading,svdev/libtrading,NunoEdgarGub1/libtrading,svdev/libtrading,penberg/libtrading,jvirtanen/libtrading,fengzhyuan/libtrading
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 evaluated the line as a function and * hands of the result for printing * * param pointer to LacoState */ void laco_handle_line(struct LacoState* laco); /** * Kills the loop with exiting message if specified * * param pointer to LacoState * param exit with status * param error message */ void laco_kill(struct LacoState* laco, int status, const char* message); /** * When there is a value on the lua stack, it will print out depending on * the type it is * * param pointer to lua_State * * return LUA_ERRSYNTAX if the value has some error */ int laco_print_type(struct lua_State* L); /** * Prints out and pops off errors pushed into the lua stack * * param pointer to lua_State * param incoming lua stack status */ void laco_report_error(struct lua_State* L, int status); int laco_is_match(const char** matches, const char* test_string); #endif /* LACO_UTIL_H */
#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 as a function and * hands of the result for printing * * param pointer to LacoState */ void laco_handle_line(struct LacoState* laco); /** * Kills the loop with exiting message if specified * * param pointer to LacoState * param exit with status * param error message */ void laco_kill(struct LacoState* laco, int status, const char* message); /** * When there is a value on the lua stack, it will print out depending on * the type it is * * param pointer to lua_State * * return LUA_ERRSYNTAX if the value has some error */ int laco_print_type(struct LacoState* laco); /** * Prints out and pops off errors pushed into the lua stack * * param pointer to lua_State * param incoming lua stack status */ void laco_report_error(struct LacoState* laco, int status); int laco_is_match(const char** matches, const char* test_string); #endif /* LACO_UTIL_H */
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 writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /*! *\brief Process group placeholder. * * Does nothing except sitting around until killed. Spawned as extra process in * our process groups so that we can control on our own when the process group * ID is reclaimed to the kernel, namely by killing the entire process group. * This prevents a race condition of our process group getting reclaimed before * we try to kill possibly remaining processes in it, after which we would * possibly kill something else. * * Must be a separate executable so F_CLOEXEC applies as intended. */ #include <unistd.h> int main() { for (;;) { pause(); } return 0; }
/* 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 writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /*! *\brief Process group placeholder. * * Does nothing except sitting around until killed. Spawned as extra process in * our process groups so that we can control on our own when the process group * ID is reclaimed to the kernel, namely by killing the entire process group. * This prevents a race condition of our process group getting reclaimed before * we try to kill possibly remaining processes in it, after which we would * possibly kill something else. * * Must be a separate executable so F_CLOEXEC applies as intended. */ #include <stdlib.h> #include <unistd.h> int main() { for (;;) { pause(); } // Cannot get here. abort(); }
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 ARMDebuggerEnter(struct ARMDebugger*); #endif
#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 ARMDebuggerRun(struct ARMDebugger*); void ARMDebuggerEnter(struct ARMDebugger*); #endif
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,AdmiralCurtiss/mgba,sergiobenrocha2/mgba,sergiobenrocha2/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,Anty-Lemon/mgba,iracigt/mgba,cassos/mgba,askotx/mgba,cassos/mgba,iracigt/mgba,AdmiralCurtiss/mgba,askotx/mgba,bentley/mgba,zerofalcon/mgba,Anty-Lemon/mgba,bentley/mgba,mgba-emu/mgba,mgba-emu/mgba,zerofalcon/mgba,iracigt/mgba,MerryMage/mgba,MerryMage/mgba,MerryMage/mgba,matthewbauer/mgba,zerofalcon/mgba,iracigt/mgba,Anty-Lemon/mgba,sergiobenrocha2/mgba,jeremyherbert/mgba,Anty-Lemon/mgba,Touched/mgba,Iniquitatis/mgba,AdmiralCurtiss/mgba,Iniquitatis/mgba,libretro/mgba,jeremyherbert/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[0], "payload") == 0) { bus = Main.I2C.Payload; } else { TerminalPuts("Unknown bus\n"); } const uint8_t device = (uint8_t)atoi(argv[1]); const uint8_t* data = (uint8_t*)argv[2]; const size_t dataLength = strlen(argv[2]); uint8_t output[20] = {0}; size_t outputLength = dataLength; const I2CResult result = bus->WriteRead(bus, device, data, dataLength, output, outputLength); if (result == I2CResultOK) { TerminalPuts((char*)output); } else { TerminalPrintf("Error %d\n", result); } }
#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* bus; if (strcmp(argv[0], "system") == 0) { bus = Main.I2C.System; } else if (strcmp(argv[0], "payload") == 0) { bus = Main.I2C.Payload; } else { TerminalPuts("Unknown bus\n"); } const uint8_t device = (uint8_t)atoi(argv[1]); const uint8_t* data = (uint8_t*)argv[2]; const size_t dataLength = strlen(argv[2]); uint8_t output[20] = {0}; size_t outputLength = dataLength; const I2CResult result = bus->WriteRead(bus, device, data, dataLength, output, outputLength); if (result == I2CResultOK) { TerminalPuts((char*)output); } else { TerminalPrintf("Error %d\n", result); } }
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)( NSError * error ); @interface GGReadabilityParser : NSObject { float loadProgress; @private GGReadabilityParserErrorHandler errorHandler; GGReadabilityParserCompletionHandler completionHandler; GGReadabilityParserOptions options; NSURL * URL; NSURL * baseURL; long long dataLength; NSMutableData * responseData; NSURLConnection * URLConnection; NSURLResponse * URLResponse; } @property ( nonatomic, assign ) float loadProgress; - (id)initWithOptions:(GGReadabilityParserOptions)parserOptions; - (id)initWithURL:(NSURL *)aURL options:(GGReadabilityParserOptions)parserOptions completionHandler:(GGReadabilityParserCompletionHandler)cHandler errorHandler:(GGReadabilityParserErrorHandler)eHandler; - (void)cancel; - (void)render; - (void)renderWithString:(NSString *)string; - (HTMLElement *)processXMLDocument:(HTMLDocument *)XML baseURL:(NSURL *)theBaseURL error:(NSError **)error; @end
/* 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)( NSError * error ); @interface GGReadabilityParser : NSObject { float loadProgress; @private GGReadabilityParserErrorHandler errorHandler; GGReadabilityParserCompletionHandler completionHandler; GGReadabilityParserOptions options; NSURL * URL; NSURL * baseURL; long long dataLength; NSMutableData * responseData; NSURLConnection * URLConnection; NSURLResponse * URLResponse; } @property ( nonatomic, assign ) float loadProgress; - (id)initWithOptions:(GGReadabilityParserOptions)parserOptions; - (id)initWithURL:(NSURL *)aURL options:(GGReadabilityParserOptions)parserOptions completionHandler:(GGReadabilityParserCompletionHandler)cHandler errorHandler:(GGReadabilityParserErrorHandler)eHandler; - (void)cancel; - (void)render; - (void)renderWithString:(NSString *)string; - (HTMLElement *)processXMLDocument:(HTMLDocument *)XML baseURL:(NSURL *)theBaseURL error:(NSError **)error; @end
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_TEST_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; virtual ~GameState() {}; }; #endif //SFML_TEST_GAME_STATE_H
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 { std::condition_variable cv_; std::mutex lock_; std::queue<T> q_; public: void push(T && t) { std::unique_lock l(lock_); q_.push(std::move(t)); cv_.notify_one(); } std::optional<T> get() { std::unique_lock l(lock_); if(q_.empty()) { return std::nullopt; } T t = std::move(q_.front()); q_.pop(); return t; } T get_blocking() { std::unique_lock l(lock_); while(q_.empty()) { cv_.wait(l); } T t = std::move(q_.front()); q_.pop(); return std::move(t); } };
// 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 { std::condition_variable cv_; std::mutex lock_; std::queue<T> q_; std::atomic_uint64_t input_count{0}, output_count{0}; public: void push(T && t) { std::unique_lock l(lock_); q_.push(std::move(t)); input_count++; cv_.notify_one(); } std::optional<T> get() { if(input_count == output_count) { return std::nullopt; } { std::unique_lock l(lock_); if(q_.empty()) { return std::nullopt; } output_count++; T t = std::move(q_.front()); q_.pop(); return t; } } T get_blocking() { std::unique_lock l(lock_); while(q_.empty()) { cv_.wait(l); } output_count++; T t = std::move(q_.front()); q_.pop(); return std::move(t); } };
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) \ || (GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION < 1) #define gdk_drag_context_get_actions(context) (context)->actions #define gdk_drag_context_get_suggested_action(context) (context)->suggested_action #define gdk_drag_context_get_selected_action(context) (context)->action #endif #if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION == 1 #define gdk_drag_context_get_selected_action(context) gdk_drag_context_get_action(context) #endif #endif /* __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) \ || (GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION < 1) #define gdk_drag_context_get_actions(context) (context)->actions #define gdk_drag_context_get_suggested_action(context) (context)->suggested_action #define gdk_drag_context_get_selected_action(context) (context)->action #endif #if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION == 1 #define gdk_drag_context_get_selected_action(context) gdk_drag_context_get_action(context) #endif #if GTK_CHECK_VERSION (2,90,5) /* Recreate GdkRegion until we drop GTK2 compatibility. */ #define GdkRegion cairo_region_t #define gdk_region_destroy(region) \ (cairo_region_destroy (region)) #define gdk_region_point_in(region, x, y) \ (cairo_region_contains_point ((region), (x), (y))) #define gdk_region_rectangle(rectangle) \ (((rectangle)->width <= 0 || (rectangle->height <= 0)) ? \ cairo_region_create () : cairo_region_create_rectangle (rectangle)) #endif #endif /* __GTK_COMPAT_H__ */
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/evolution-data-server,gcampax/evolution-data-server,matzipan/evolution-data-server,Distrotech/evolution-data-server,gcampax/evolution-data-server,gcampax/evolution-data-server,matzipan/evolution-data-server,Distrotech/evolution-data-server
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(&clock)) { abort(); } res = wclock_get_res(&clock); printf("%.17g\n", res); assert(res > 0); assert(res < 2e-3); /* presumably the clock has at least ms precision! */ t1 = wclock_get(&clock); printf("%.17g\n", t1); sleep(1); t2 = wclock_get(&clock); printf("%.17g\n", t2); printf("%.17g\n", t2 - t1); assert(fabs(t2 - t1 - 1.) < 1e-1); return 0; }
#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(&clock)) { abort(); } res = wclock_get_res(&clock); printf("%.17g\n", res); assert(res > 0); assert(res < 2e-3); /* presumably the clock has at least ms precision! */ t1 = wclock_get(&clock); printf("%.17g\n", t1); sleep(1); t2 = wclock_get(&clock); printf("%.17g\n", t2); printf("%.17g\n", t2 - t1); assert(t2 - t1 >= 0.9 && t2 - t1 < 1.4); return 0; }
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_uint64(cbor_item_t* item, uint64_t num); void assert_decoder_result(size_t, enum cbor_decoder_status, struct cbor_decoder_result); // TODO: Docs void assert_decoder_result_nedata(size_t, struct cbor_decoder_result); /** * Check that the streaming decoder will returns a correct CBOR_DECODER_NEDATA * result for all inputs from data[0..1] through data[0..(expected-1)]. */ void assert_minimum_input_size(size_t expected, cbor_data data); #endif
#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_uint64(cbor_item_t* item, uint64_t num); /** Assert that result `status` and `read` are equal. */ void assert_decoder_result(size_t read, enum cbor_decoder_status status, struct cbor_decoder_result result); /** * Assert that the result is set to CBOR_DECODER_NEDATA with the given * `cbor_decoder_result.required` value. */ void assert_decoder_result_nedata(size_t required, struct cbor_decoder_result result); /** * Check that the streaming decoder returns a correct CBOR_DECODER_NEDATA * result for all inputs from data[0..1] through data[0..(expected-1)]. */ void assert_minimum_input_size(size_t expected, cbor_data data); #endif
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 cond; int max_active_threads; int active_threads; useconds_t timeout; list_t threads; list_t waiting_gold_threads; list_t waiting_black_threads; } bzz_t; #include "buzz.h" void* get_thread(int, bzz_t); int full_active_threads(bzz_t); int is_black(bzz_thread_t*); int is_gold(bzz_thread_t*); int is_old(bzz_thread_t*, bzz_t); void add_to_waiting_threads(bzz_thread_t*, bzz_t); void wait(bzz_t); double time_with_usec(); unsigned int num_black_waiting(bzz_t); unsigned int num_gold_waiting(bzz_t); unsigned int num_old_gold_waiting(bzz_t); void add_active(bzz_thread_t*, bzz_t); #endif
#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; int max_active_threads; int active_threads; useconds_t timeout; list_t threads; list_t waiting_gold_threads; list_t waiting_black_threads; } bzz_t; #include "buzz.h" void* get_thread(int, bzz_t); int full_active_threads(bzz_t); int is_black(bzz_thread_t*); int is_gold(bzz_thread_t*); int is_old(bzz_thread_t*, bzz_t); void add_to_waiting_threads(bzz_thread_t*, bzz_t); void wait(bzz_t); double time_with_usec(); unsigned int num_black_waiting(bzz_t); unsigned int num_gold_waiting(bzz_t); unsigned int num_old_gold_waiting(bzz_t); void add_active(bzz_thread_t*, bzz_t); #endif
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 law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef NINJA_UTIL_H_ #define NINJA_UTIL_H_ #pragma once #include <string> // Dump a backtrace to stderr. // |skip_frames| is how many frames to skip; // DumpBacktrace implicitly skips itself already. void DumpBacktrace(int skip_frames); // Log a fatal message, dump a backtrace, and exit. void Fatal(const char* msg, ...); // Canonicalize a path like "foo/../bar.h" into just "bar.h". bool CanonicalizePath(std::string* path, std::string* err); #endif // NINJA_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 law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef NINJA_UTIL_H_ #define NINJA_UTIL_H_ #pragma once #include <string> // Log a fatal message, dump a backtrace, and exit. void Fatal(const char* msg, ...); // Canonicalize a path like "foo/../bar.h" into just "bar.h". bool CanonicalizePath(std::string* path, std::string* err); #endif // NINJA_UTIL_H_
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,dorgonman/ninja,sxlin/dist_ninja,ukai/ninja,pathscale/ninja,LuaDist/ninja,mgaunard/ninja,lizh06/ninja,curinir/ninja,juntalis/ninja,chenyukang/ninja,jimon/ninja,maximuska/ninja,nornagon/ninja,tfarina/ninja,iwadon/ninja,mathstuf/ninja,pcc/ninja,dpwright/ninja,mdempsky/ninja,ilor/ninja,mutac/ninja,ndsol/subninja,purcell/ninja,chenyukang/ninja,martine/ninja,jsternberg/ninja,okuoku/ninja,justinsb/ninja,tfarina/ninja,ikarienator/ninja,SByer/ninja,automeka/ninja,PetrWolf/ninja,PetrWolf/ninja-main,jendrikillner/ninja,Maratyszcza/ninja-pypi,glensc/ninja,nocnokneo/ninja,martine/ninja,ilor/ninja,bmeurer/ninja,tychoish/ninja,mohamed/ninja,Qix-/ninja,nafest/ninja,kissthink/ninja,jhanssen/ninja,automeka/ninja,maruel/ninja,autopulated/ninja,nocnokneo/ninja,maruel/ninja,TheOneRing/ninja,ehird/ninja,fifoforlifo/ninja,nornagon/ninja,bmeurer/ninja,Maratyszcza/ninja-pypi,iwadon/ninja,vvvrrooomm/ninja,lizh06/ninja,kimgr/ninja,atetubou/ninja,sxlin/dist_ninja,dorgonman/ninja,ikarienator/ninja,mgaunard/ninja,pck/ninja,rnk/ninja,jsternberg/ninja,ikarienator/ninja,sgraham/ninja,pck/ninja,vvvrrooomm/ninja,curinir/ninja,ThiagoGarciaAlves/ninja,bradking/ninja,ehird/ninja,rnk/ninja,metti/ninja,maruel/ninja,PetrWolf/ninja-main,TheOneRing/ninja,jendrikillner/ninja,mydongistiny/ninja,tfarina/ninja,AoD314/ninja,mdempsky/ninja,rnk/ninja,okuoku/ninja,ndsol/subninja,kissthink/ninja,PetrWolf/ninja,ThiagoGarciaAlves/ninja,metti/ninja,barak/ninja,ninja-build/ninja,ctiller/ninja,dpwright/ninja,drbo/ninja,syntheticpp/ninja,iwadon/ninja,atetubou/ninja,nico/ninja,bradking/ninja,nornagon/ninja,autopulated/ninja,fifoforlifo/ninja,kissthink/ninja,mohamed/ninja,nickhutchinson/ninja,kissthink/ninja,kimgr/ninja,pcc/ninja,drbo/ninja,okuoku/ninja,ThiagoGarciaAlves/ninja,SByer/ninja,nickhutchinson/ninja,autopulated/ninja,ctiller/ninja,PetrWolf/ninja,ikarienator/ninja,juntalis/ninja,colincross/ninja,chenyukang/ninja,martine/ninja,nafest/ninja,mutac/ninja,vvvrrooomm/ninja,PetrWolf/ninja-main,hnney/ninja,tfarina/ninja,ukai/ninja,sgraham/ninja,martine/ninja,nicolasdespres/ninja,ctiller/ninja,ignatenkobrain/ninja,mydongistiny/ninja,autopulated/ninja,ehird/ninja,dpwright/ninja,rnk/ninja,okuoku/ninja,dorgonman/ninja,Maratyszcza/ninja-pypi,LuaDist/ninja,PetrWolf/ninja-main,rjogrady/ninja,Ju2ender/ninja,yannicklm/ninja,TheOneRing/ninja,tychoish/ninja,ilor/ninja,bmeurer/ninja,ilor/ninja,AoD314/ninja,cipriancraciun/ninja,Qix-/ninja,mohamed/ninja,jimon/ninja,PetrWolf/ninja,nico/ninja,mathstuf/ninja,ndsol/subninja,juntalis/ninja,automeka/ninja,mohamed/ninja,nafest/ninja,yannicklm/ninja,ninja-build/ninja,mydongistiny/ninja,nafest/ninja,mgaunard/ninja,syntheticpp/ninja,glensc/ninja,sorbits/ninja,dendy/ninja,Maratyszcza/ninja-pypi,purcell/ninja,pathscale/ninja,Qix-/ninja,drbo/ninja,ThiagoGarciaAlves/ninja,atetubou/ninja,moroten/ninja,jhanssen/ninja,pathscale/ninja,curinir/ninja,iwadon/ninja,synaptek/ninja,fifoforlifo/ninja,nornagon/ninja,ignatenkobrain/ninja,syntheticpp/ninja,juntalis/ninja,colincross/ninja,mutac/ninja,hnney/ninja,justinsb/ninja,lizh06/ninja,syntheticpp/ninja,LuaDist/ninja,cipriancraciun/ninja,ninja-build/ninja,synaptek/ninja,vvvrrooomm/ninja,bradking/ninja,mdempsky/ninja,Ju2ender/ninja,mgaunard/ninja,atetubou/ninja,glensc/ninja,nicolasdespres/ninja,nicolasdespres/ninja,glensc/ninja,chenyukang/ninja,guiquanz/ninja,ignatenkobrain/ninja,colincross/ninja,SByer/ninja,jsternberg/ninja,mathstuf/ninja,dpwright/ninja,ctiller/ninja,nico/ninja,pcc/ninja,guiquanz/ninja,maximuska/ninja,maruel/ninja,sorbits/ninja,ignatenkobrain/ninja,jendrikillner/ninja,kimgr/ninja,pathscale/ninja,synaptek/ninja,tychoish/ninja,mathstuf/ninja,dendy/ninja,Qix-/ninja,guiquanz/ninja,jhanssen/ninja,Ju2ender/ninja,fuchsia-mirror/third_party-ninja,ukai/ninja,pck/ninja,curinir/ninja,dorgonman/ninja,SByer/ninja,mdempsky/ninja,drbo/ninja,rjogrady/ninja,nicolasdespres/ninja,hnney/ninja,sxlin/dist_ninja,yannicklm/ninja,ehird/ninja,liukd/ninja,ndsol/subninja,cipriancraciun/ninja,jendrikillner/ninja,LuaDist/ninja,sxlin/dist_ninja,fuchsia-mirror/third_party-ninja,sorbits/ninja,bmeurer/ninja,AoD314/ninja,colincross/ninja,jhanssen/ninja,fifoforlifo/ninja,jsternberg/ninja,metti/ninja,barak/ninja,liukd/ninja,fuchsia-mirror/third_party-ninja,barak/ninja,mydongistiny/ninja,nocnokneo/ninja,sxlin/dist_ninja,liukd/ninja,sxlin/dist_ninja,mutac/ninja,guiquanz/ninja,AoD314/ninja,moroten/ninja,moroten/ninja,nico/ninja,pck/ninja,maximuska/ninja,sxlin/dist_ninja,pcc/ninja,lizh06/ninja,fuchsia-mirror/third_party-ninja,kimgr/ninja,justinsb/ninja,bradking/ninja,moroten/ninja,ukai/ninja,cipriancraciun/ninja,barak/ninja,purcell/ninja,nickhutchinson/ninja,automeka/ninja,dabrahams/ninja,sgraham/ninja,TheOneRing/ninja,rjogrady/ninja,nickhutchinson/ninja
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 "UIImageView+CreateImageView.h" #import "UIScreen+Size.h" #import "UIStoryboard+GetInstance.h" #import "UITextField+Color.h" #import "UIView+Capture.h" #import "UIView+Rounding.h"
// // 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" #import "UICollectionView+Register.h" #import "UIColor+CreateColor.h" #import "UIImage+CreateImage.h" #import "UIImage+ImageProcessing.h" #import "UIImageView+CreateImageView.h" #import "UIScreen+Size.h" #import "UIStoryboard+GetInstance.h" #import "UITableView+Register.h" #import "UITextField+Color.h" #import "UIView+Capture.h" #import "UIView+Rounding.h" #import "UIViewController+Present.h"
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_DMALLOC #include <dmalloc.h> #endif #include <string.h> const char * inet_ntop(int af, const void *s, char *dst, int x) { switch (af) { case AF_INET: mastrncpy(dst, inet_ntoa(*(const struct in_addr *)s), x); return dst; break; default: errno = EINVAL; return 0; break; } } #endif
/** * \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(int af, const void *s, char *dst, int x) { switch (af) { case AF_INET: strncpy(dst, inet_ntoa(*(const struct in_addr *)s), x); if (x) dst[x-1] = '\0'; return dst; break; default: errno = EINVAL; return 0; break; } } #endif
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_VERSION_CODE >= 197633 //Corresponds to Root v3-04-01 typedef enum { kSemiElectronic, kDiElectron, kSemiMuonic, kDiMuon, kBJpsiDiMuon, kBJpsiDiElectron, kBPsiPrimeDiMuon, kBPsiPrimeDiElectron, kPiToMu, kKaToMu, kNoDecay, kHadronicD, kOmega, kPhiKK, kAll, kNoDecayHeavy, kHardMuons, kBJpsi, kWToMuon,kWToCharm, kWToCharmToMuon } Decay_t; #endif #endif //ALI_DECAYER__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_VERSION_CODE >= 197633 //Corresponds to Root v3-04-01 typedef enum { kSemiElectronic, kDiElectron, kSemiMuonic, kDiMuon, kBJpsiDiMuon, kBJpsiDiElectron, kBPsiPrimeDiMuon, kBPsiPrimeDiElectron, kPiToMu, kKaToMu, kNoDecay, kHadronicD, kOmega, kPhiKK, kAll, kNoDecayHeavy, kHardMuons, kBJpsi, kWToMuon,kWToCharm, kWToCharmToMuon, kNewTest } Decay_t; #endif #endif //ALI_DECAYER__H
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,shahor02/AliRoot,miranov25/AliRoot,shahor02/AliRoot,shahor02/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,coppedis/AliRoot,shahor02/AliRoot,ecalvovi/AliRoot,alisw/AliRoot,ALICEHLT/AliRoot,alisw/AliRoot,jgrosseo/AliRoot,alisw/AliRoot,shahor02/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,mkrzewic/AliRoot,mkrzewic/AliRoot,ALICEHLT/AliRoot,coppedis/AliRoot,miranov25/AliRoot,alisw/AliRoot,ALICEHLT/AliRoot,mkrzewic/AliRoot,shahor02/AliRoot,ecalvovi/AliRoot,mkrzewic/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,shahor02/AliRoot,alisw/AliRoot,miranov25/AliRoot,ALICEHLT/AliRoot,jgrosseo/AliRoot,ecalvovi/AliRoot,sebaleh/AliRoot,miranov25/AliRoot,miranov25/AliRoot,miranov25/AliRoot,ecalvovi/AliRoot,ALICEHLT/AliRoot,ecalvovi/AliRoot,miranov25/AliRoot
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 configuration as set via oprofilefs. */ struct op_counter_config { unsigned long enabled; unsigned long event; unsigned long count; /* Dummies because I am too lazy to hack the userspace tools. */ unsigned long kernel; unsigned long user; unsigned long exl; unsigned long unit_mask; }; /* Per-architecture configury and hooks. */ struct op_mips_model { void (*reg_setup) (struct op_counter_config *); void (*cpu_setup) (void * dummy); int (*init)(void); void (*exit)(void); void (*cpu_start)(void *args); void (*cpu_stop)(void *args); char *cpu_type; unsigned char num_counters; }; #endif
/** * @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 oprofilefs. */ struct op_counter_config { unsigned long enabled; unsigned long event; unsigned long count; /* Dummies because I am too lazy to hack the userspace tools. */ unsigned long kernel; unsigned long user; unsigned long exl; unsigned long unit_mask; }; /* Per-architecture configury and hooks. */ struct op_mips_model { void (*reg_setup) (struct op_counter_config *); void (*cpu_setup) (void * dummy); int (*init)(void); void (*exit)(void); void (*cpu_start)(void *args); void (*cpu_stop)(void *args); char *cpu_type; unsigned char num_counters; }; #endif
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_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
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: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@317716 91177308-0d34-0410-b5e6-96231b3b80d8
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/clang,apple/swift-clang,llvm-mirror/clang
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] = 5; pbar->b = 0; printf("Pointer is %lx\n", (unsigned long)pbar->b); *(pbar->b) = 0; //ERROR(1): Null SUCCESS; }
#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 __INDEX arr[8] __INDEX; } * s1; struct s_with_non_array { int a,b,c,d,e,f,g,h; } * s2; #endif 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; pbar->b = 0; gfoo.a[7] = 5; printf("Pointer is %lx\n", (unsigned long)pbar->b); *(pbar->b) = 0; //ERROR(1): Null s1 = s2; if (HAS_KIND(s1, WILD_KIND)) E(2); // ERROR(2):Error #if ERROR == 3 s1 = s2; // ERROR(3): compared with a non-array #endif SUCCESS; }
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 congruent so they would end up being WILD. However, if one of them is INDEX, the other should be as well. So we remember whenever an array is compared against another array and we make sure that they have the same flags. However: union { char a[4] __INDEX; int b; } Should fail. So we remember whenever an array is compared with a non-array. Later, if any such array ends up being INDEX we die with an error in the solver.
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 congruent so they would end up being WILD. However, if one of them is INDEX, the other should be as well. So we remember whenever an array is compared against another array and we make sure that they have the same flags. However: union { char a[4] __INDEX; int b; } Should fail. So we remember whenever an array is compared with a non-array. Later, if any such array ends up being INDEX we die with an error in the solver. This commit also beefs up the test-bad/index1 testcase.
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 = false; uint32_t time = 0; static bool IsSupported() { return false; } Renderer(Polar *engine) : System(engine) {} virtual void MakePipeline(const boost::container::vector<std::string> &) = 0; virtual void SetClearColor(const Point4 &) = 0; virtual Decimal GetUniformDecimal(const std::string &, const Decimal = 0) = 0; virtual Point3 GetUniformPoint3(const std::string &, const Point3 = Point3(0)) = 0; virtual void SetUniform(const std::string &, glm::uint32) = 0; virtual void SetUniform(const std::string &, Decimal) = 0; virtual void SetUniform(const std::string &, Point3) = 0; };
#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 = false; uint32_t time = 0; static bool IsSupported() { return false; } Renderer(Polar *engine) : System(engine) {} inline uint16_t GetWidth() { return width; } inline uint16_t GetHeight() { return height; } virtual void MakePipeline(const boost::container::vector<std::string> &) = 0; virtual void SetClearColor(const Point4 &) = 0; virtual Decimal GetUniformDecimal(const std::string &, const Decimal = 0) = 0; virtual Point3 GetUniformPoint3(const std::string &, const Point3 = Point3(0)) = 0; virtual void SetUniform(const std::string &, glm::uint32) = 0; virtual void SetUniform(const std::string &, Decimal) = 0; virtual void SetUniform(const std::string &, Point3) = 0; };
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/CONTRIBUTORS.txt for the list of Swift project authors // // ----------------------------------------------------------------------------- // From swift's include/swift/Runtime/Debug.h file. struct RuntimeErrorDetails { uintptr_t version; const char *errorType; const char *currentStackDescription; uintptr_t framesToSkip; void *memoryAddress; struct Thread { const char *description; uint64_t threadID; uintptr_t numFrames; void **frames; }; uintptr_t numExtraThreads; Thread *threads; struct FixIt { const char *filename; uintptr_t startLine; uintptr_t startColumn; uintptr_t endLine; uintptr_t endColumn; const char *replacementText; }; struct Note { const char *description; uintptr_t numFixIts; FixIt *fixIts; }; uintptr_t numFixIts; FixIt *fixIts; uintptr_t numNotes; Note *notes; }; enum: uintptr_t { RuntimeErrorFlagNone = 0, RuntimeErrorFlagFatal = 1 << 0 }; extern "C" void _swift_runtime_on_report(uintptr_t flags, const char *message, RuntimeErrorDetails *details);
// 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/CONTRIBUTORS.txt for the list of Swift project authors // // ----------------------------------------------------------------------------- #include <stdint.h> // From swift's include/swift/Runtime/Debug.h file. struct RuntimeErrorDetails { uintptr_t version; const char *errorType; const char *currentStackDescription; uintptr_t framesToSkip; void *memoryAddress; struct Thread { const char *description; uint64_t threadID; uintptr_t numFrames; void **frames; }; uintptr_t numExtraThreads; Thread *threads; struct FixIt { const char *filename; uintptr_t startLine; uintptr_t startColumn; uintptr_t endLine; uintptr_t endColumn; const char *replacementText; }; struct Note { const char *description; uintptr_t numFixIts; FixIt *fixIts; }; uintptr_t numFixIts; FixIt *fixIts; uintptr_t numNotes; Note *notes; }; enum: uintptr_t { RuntimeErrorFlagNone = 0, RuntimeErrorFlagFatal = 1 << 0 }; extern "C" void _swift_runtime_on_report(uintptr_t flags, const char *message, RuntimeErrorDetails *details);
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_49B1_8905_16E7CE12D207 #define INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207 // Internal Includes #include <osvr/Util/SharedPtr.h> // Library/third-party includes // - none // Standard includes // - none namespace osvr { namespace server { class Server; /// @brief How one should hold a Server. typedef shared_ptr<Server> ServerPtr; } // namespace server } // namespace osvr #endif // INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207
/** @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_49B1_8905_16E7CE12D207 #define INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207 // Internal Includes #include <osvr/Util/SharedPtr.h> // Library/third-party includes // - none // Standard includes // - none namespace osvr { namespace server { class Server; /// @brief How one should hold a Server. typedef shared_ptr<Server> ServerPtr; /// @brief How one might observe a Server without owning it. typedef weak_ptr<Server> ServerWeakPtr; } // namespace server } // namespace osvr #endif // INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207
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/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,feilen/OSVR-Core,Armada651/OSVR-Core,d235j/OSVR-Core,godbyk/OSVR-Core,leemichaelRazer/OSVR-Core,leemichaelRazer/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core
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; @property CGFloat width; @property CGFloat centerX; @property CGFloat centerY; @end
// 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 centerY; @end
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/alloc.h" #include <stddef.h> #include <windows.h> // Allocates a block of (R/W/X) memory. void *cen64_alloc(struct cen64_mem *m, size_t size, bool exec) { int access = exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE; if ((m->ptr = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, access)) == NULL) return NULL; m->size = size; return m->ptr; } // Releases resources acquired by cen64_alloc_init. void cen64_alloc_cleanup(void) { } // Initializes CEN64's low-level allocator. int cen64_alloc_init(void) { return 0; } // Releases resources acquired by cen64_alloc. void cen64_free(struct cen64_mem *m) { VirtualFree(m->ptr, m->size, MEM_RELEASE); }
// // 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/alloc.h" #include <stddef.h> #include <windows.h> // Allocates a block of (R/W/X) memory. void *cen64_alloc(struct cen64_mem *m, size_t size, bool exec) { int access = exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE; if ((m->ptr = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, access)) == NULL) return NULL; m->size = size; return m->ptr; } // Releases resources acquired by cen64_alloc_init. void cen64_alloc_cleanup(void) { } // Initializes CEN64's low-level allocator. int cen64_alloc_init(void) { return 0; } // Releases resources acquired by cen64_alloc. void cen64_free(struct cen64_mem *m) { VirtualFree(m->ptr, 0, MEM_RELEASE); }
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"); const unsigned int BotVersionNum = 2800;
#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> #include <utility> #include <vector> const std::string BotVersion ("3.0.0-devel"); const unsigned int BotVersionNum = 2800;
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 { using pPlayer = std::unique_ptr<Player>; public: Game () : _deck(), _dealer(_deck), _players() {} // Not allowed to copy or assign game Game(Game const &) = delete ; void operator=(Game const&) = delete; void AddDecks(); void PlayRound(); void GetStartCards(); void PlayCards(); void Evaluate(); void PutCardsBack(); void RemoveBrokePlayers(); void PrintNumPlayers () const; virtual void SetWagers() = 0; virtual bool PlayAnotherRound () const = 0; protected: virtual ~Game(){}; // Not allowed to polymorphic delete derivatives Deck _deck; Dealer _dealer; // Players are pointers to avoid issues with card pointers std::vector<pPlayer> _players; }; #endif /* 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 { using pPlayer = std::unique_ptr<Player>; public: Game () : _deck(), _dealer(_deck), _players() {} // Not allowed to copy or assign game Game(Game const &) = delete ; void operator=(Game const&) = delete; void AddDecks(); void PlayRound(); virtual bool PlayAnotherRound () const = 0; void PrintNumPlayers () const; protected: virtual ~Game(){}; // Not allowed to polymorphic delete derivatives virtual void SetWagers() = 0; Deck _deck; Dealer _dealer; // Players are pointers to avoid issues with card pointers std::vector<pPlayer> _players; private: void GetStartCards(); void PlayCards(); void Evaluate(); void PutCardsBack(); void RemoveBrokePlayers(); }; #endif /* GAME_H_ */
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 of the text size to lower a strike through line below the baseline. #define kStdStrikeThru_Offset (-SK_Scalar1 * 6 / 21) // Fraction of the text size to lower a underline below the baseline. #define kStdUnderline_Offset (SK_Scalar1 / 9) // Fraction of the text size to use for a strike through or under-line. #define kStdUnderline_Thickness (SK_Scalar1 / 18) // The fraction of text size to embolden fake bold text scales with text size. // At 9 points or below, the stroke width is increased by text size / 24. // At 36 points and above, it is increased by text size / 32. In between, // it is interpolated between those values. static const SkScalar kStdFakeBoldInterpKeys[] = { SK_Scalar1*9, SK_Scalar1*36, }; static const SkScalar kStdFakeBoldInterpValues[] = { SK_Scalar1/24, SK_Scalar1/32, }; static_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeBoldInterpValues), "mismatched_array_size"); static const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKeys); #endif //SkTextFormatParams_DEFINES
/* * 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 fraction of text size to embolden fake bold text scales with text size. // At 9 points or below, the stroke width is increased by text size / 24. // At 36 points and above, it is increased by text size / 32. In between, // it is interpolated between those values. static const SkScalar kStdFakeBoldInterpKeys[] = { SK_Scalar1*9, SK_Scalar1*36, }; static const SkScalar kStdFakeBoldInterpValues[] = { SK_Scalar1/24, SK_Scalar1/32, }; static_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeBoldInterpValues), "mismatched_array_size"); static const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKeys); #endif //SkTextFormatParams_DEFINES
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: I8bc7dbe03e82a5d244438aaaeaf024d8c95280d8 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/477160 Commit-Queue: Ben Wagner <53965154ffeecc4a10886eab9259e95965f2979a@google.com> Commit-Queue: Herb Derby <9e12a3d2bbf73546e47cc9958f6ba8f3215b7eaf@google.com> Auto-Submit: Ben Wagner <53965154ffeecc4a10886eab9259e95965f2979a@google.com> Reviewed-by: Herb Derby <9e12a3d2bbf73546e47cc9958f6ba8f3215b7eaf@google.com>
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,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia
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. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TPgSQLRow #define ROOT_TPgSQLRow #ifndef ROOT_TSQLRow #include "TSQLRow.h" #endif #if !defined(__CINT__) #include <sqlite3.h> #else struct sqlite3_stmt; #endif class TSQLiteRow : public TSQLRow { private: sqlite3_stmt *fResult; // current result set Bool_t IsValid(Int_t field); public: TSQLiteRow(void *result, ULong_t rowHandle); ~TSQLiteRow(); void Close(Option_t *opt=""); ULong_t GetFieldLength(Int_t field); const char *GetField(Int_t field); ClassDef(TSQLiteRow,0) // One row of SQLite query result }; #endif
// @(#)root/sqlite: // Author: o.freyermuth <o.f@cern.ch>, 01/06/2013 /************************************************************************* * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TSQLiteRow #define ROOT_TSQLiteRow #ifndef ROOT_TSQLRow #include "TSQLRow.h" #endif #if !defined(__CINT__) #include <sqlite3.h> #else struct sqlite3_stmt; #endif class TSQLiteRow : public TSQLRow { private: sqlite3_stmt *fResult; // current result set Bool_t IsValid(Int_t field); public: TSQLiteRow(void *result, ULong_t rowHandle); ~TSQLiteRow(); void Close(Option_t *opt=""); ULong_t GetFieldLength(Int_t field); const char *GetField(Int_t field); ClassDef(TSQLiteRow,0) // One row of SQLite query result }; #endif
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,esakellari/root,omazapa/root,esakellari/my_root_for_test,0x0all/ROOT,sirinath/root,esakellari/my_root_for_test,bbockelm/root,Duraznos/root,georgtroska/root,thomaskeck/root,vukasinmilosevic/root,dfunke/root,esakellari/my_root_for_test,smarinac/root,krafczyk/root,mkret2/root,zzxuanyuan/root,simonpf/root,root-mirror/root,sawenzel/root,abhinavmoudgil95/root,gbitzes/root,omazapa/root,abhinavmoudgil95/root,Duraznos/root,nilqed/root,buuck/root,sbinet/cxx-root,mattkretz/root,jrtomps/root,gbitzes/root,bbockelm/root,beniz/root,root-mirror/root,vukasinmilosevic/root,zzxuanyuan/root-compressor-dummy,CristinaCristescu/root,gbitzes/root,krafczyk/root,Y--/root,agarciamontoro/root,krafczyk/root,Y--/root,lgiommi/root,omazapa/root,mkret2/root,mattkretz/root,BerserkerTroll/root,gbitzes/root,zzxuanyuan/root,sbinet/cxx-root,0x0all/ROOT,satyarth934/root,zzxuanyuan/root,abhinavmoudgil95/root,esakellari/root,Duraznos/root,abhinavmoudgil95/root,root-mirror/root,omazapa/root,gbitzes/root,agarciamontoro/root,gganis/root,bbockelm/root,evgeny-boger/root,karies/root,mattkretz/root,simonpf/root,BerserkerTroll/root,perovic/root,buuck/root,root-mirror/root,gganis/root,abhinavmoudgil95/root,zzxuanyuan/root-compressor-dummy,perovic/root,omazapa/root-old,smarinac/root,omazapa/root-old,jrtomps/root,nilqed/root,mhuwiler/rootauto,sbinet/cxx-root,pspe/root,evgeny-boger/root,olifre/root,nilqed/root,CristinaCristescu/root,mhuwiler/rootauto,omazapa/root,karies/root,CristinaCristescu/root,abhinavmoudgil95/root,sawenzel/root,krafczyk/root,lgiommi/root,arch1tect0r/root,gganis/root,jrtomps/root,smarinac/root,esakellari/my_root_for_test,evgeny-boger/root,pspe/root,smarinac/root,mhuwiler/rootauto,omazapa/root-old,georgtroska/root,beniz/root,mkret2/root,evgeny-boger/root,olifre/root,nilqed/root,CristinaCristescu/root,gbitzes/root,0x0all/ROOT,zzxuanyuan/root-compressor-dummy,esakellari/root,mhuwiler/rootauto,Duraznos/root,zzxuanyuan/root-compressor-dummy,gganis/root,abhinavmoudgil95/root,olifre/root,thomaskeck/root,CristinaCristescu/root,pspe/root,krafczyk/root,jrtomps/root,georgtroska/root,mattkretz/root,simonpf/root,pspe/root,arch1tect0r/root,veprbl/root,lgiommi/root,davidlt/root,mkret2/root,beniz/root,georgtroska/root,mattkretz/root,zzxuanyuan/root,simonpf/root,sbinet/cxx-root,perovic/root,pspe/root,perovic/root,sirinath/root,arch1tect0r/root,evgeny-boger/root,jrtomps/root,simonpf/root,vukasinmilosevic/root,davidlt/root,georgtroska/root,BerserkerTroll/root,zzxuanyuan/root-compressor-dummy,beniz/root,smarinac/root,veprbl/root,BerserkerTroll/root,davidlt/root,georgtroska/root,zzxuanyuan/root,omazapa/root,sawenzel/root,arch1tect0r/root,perovic/root,davidlt/root,georgtroska/root,lgiommi/root,olifre/root,abhinavmoudgil95/root,simonpf/root,olifre/root,krafczyk/root,pspe/root,agarciamontoro/root,veprbl/root,karies/root,satyarth934/root,omazapa/root,Y--/root,omazapa/root-old,lgiommi/root,lgiommi/root,pspe/root,veprbl/root,davidlt/root,pspe/root,Duraznos/root,satyarth934/root,vukasinmilosevic/root,simonpf/root,nilqed/root,dfunke/root,bbockelm/root,gbitzes/root,agarciamontoro/root,mattkretz/root,Y--/root,buuck/root,zzxuanyuan/root,jrtomps/root,karies/root,root-mirror/root,olifre/root,satyarth934/root,root-mirror/root,Y--/root,esakellari/my_root_for_test,jrtomps/root,evgeny-boger/root,perovic/root,jrtomps/root,georgtroska/root,BerserkerTroll/root,esakellari/my_root_for_test,mattkretz/root,buuck/root,esakellari/root,beniz/root,vukasinmilosevic/root,dfunke/root,karies/root,mkret2/root,veprbl/root,agarciamontoro/root,vukasinmilosevic/root,0x0all/ROOT,gganis/root,zzxuanyuan/root-compressor-dummy,sirinath/root,zzxuanyuan/root,sbinet/cxx-root,georgtroska/root,0x0all/ROOT,satyarth934/root,sirinath/root,karies/root,mkret2/root,davidlt/root,mhuwiler/rootauto,olifre/root,karies/root,karies/root,agarciamontoro/root,thomaskeck/root,zzxuanyuan/root,arch1tect0r/root,Y--/root,zzxuanyuan/root,lgiommi/root,veprbl/root,gbitzes/root,karies/root,CristinaCristescu/root,dfunke/root,karies/root,root-mirror/root,smarinac/root,agarciamontoro/root,sirinath/root,Duraznos/root,sawenzel/root,gganis/root,CristinaCristescu/root,pspe/root,karies/root,perovic/root,evgeny-boger/root,sirinath/root,lgiommi/root,agarciamontoro/root,dfunke/root,dfunke/root,mattkretz/root,omazapa/root-old,buuck/root,krafczyk/root,buuck/root,jrtomps/root,BerserkerTroll/root,esakellari/my_root_for_test,esakellari/my_root_for_test,gganis/root,pspe/root,omazapa/root,krafczyk/root,esakellari/my_root_for_test,sawenzel/root,root-mirror/root,mattkretz/root,agarciamontoro/root,sbinet/cxx-root,satyarth934/root,sirinath/root,thomaskeck/root,sirinath/root,0x0all/ROOT,smarinac/root,veprbl/root,simonpf/root,sbinet/cxx-root,BerserkerTroll/root,esakellari/root,arch1tect0r/root,veprbl/root,satyarth934/root,beniz/root,BerserkerTroll/root,thomaskeck/root,root-mirror/root,satyarth934/root,mhuwiler/rootauto,gganis/root,beniz/root,sbinet/cxx-root,beniz/root,Y--/root,satyarth934/root,esakellari/root,davidlt/root,dfunke/root,sawenzel/root,bbockelm/root,sawenzel/root,smarinac/root,mkret2/root,mattkretz/root,esakellari/root,BerserkerTroll/root,mhuwiler/rootauto,omazapa/root-old,arch1tect0r/root,nilqed/root,gganis/root,mkret2/root,omazapa/root,vukasinmilosevic/root,olifre/root,CristinaCristescu/root,olifre/root,0x0all/ROOT,thomaskeck/root,nilqed/root,agarciamontoro/root,0x0all/ROOT,veprbl/root,davidlt/root,root-mirror/root,buuck/root,gbitzes/root,perovic/root,abhinavmoudgil95/root,lgiommi/root,Duraznos/root,Y--/root,root-mirror/root,omazapa/root-old,pspe/root,nilqed/root,mhuwiler/rootauto,abhinavmoudgil95/root,mhuwiler/rootauto,esakellari/root,thomaskeck/root,perovic/root,dfunke/root,buuck/root,mhuwiler/rootauto,zzxuanyuan/root,lgiommi/root,bbockelm/root,nilqed/root,omazapa/root,lgiommi/root,mkret2/root,mkret2/root,evgeny-boger/root,jrtomps/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,sbinet/cxx-root,veprbl/root,mkret2/root,simonpf/root,krafczyk/root,Duraznos/root,sirinath/root,Y--/root,beniz/root,zzxuanyuan/root-compressor-dummy,satyarth934/root,agarciamontoro/root,beniz/root,zzxuanyuan/root,bbockelm/root,perovic/root,omazapa/root-old,Y--/root,smarinac/root,arch1tect0r/root,CristinaCristescu/root,vukasinmilosevic/root,abhinavmoudgil95/root,davidlt/root,evgeny-boger/root,sawenzel/root,bbockelm/root,krafczyk/root,vukasinmilosevic/root,davidlt/root,arch1tect0r/root,thomaskeck/root,thomaskeck/root,simonpf/root,0x0all/ROOT,krafczyk/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,veprbl/root,omazapa/root,gganis/root,olifre/root,smarinac/root,sbinet/cxx-root,BerserkerTroll/root,georgtroska/root,esakellari/root,CristinaCristescu/root,dfunke/root,mhuwiler/rootauto,jrtomps/root,perovic/root,beniz/root,esakellari/root,buuck/root,sawenzel/root,Duraznos/root,vukasinmilosevic/root,CristinaCristescu/root,esakellari/root,sirinath/root,buuck/root,esakellari/my_root_for_test,bbockelm/root,buuck/root,Duraznos/root,gganis/root,bbockelm/root,olifre/root,thomaskeck/root,georgtroska/root,sawenzel/root,Duraznos/root,bbockelm/root,dfunke/root,nilqed/root,sirinath/root,nilqed/root,satyarth934/root,mattkretz/root
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: warning: cannot compress debug sections (zlib not installed)
// 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: warning: cannot compress debug sections (zlib not installed)
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-clang,llvm-mirror/clang,apple/swift-clang
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 limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #import <Foundation/Foundation.h> #import <UIKit/UIDevice.h> #import "RCTBridgeModule.h" #import "RCTLog.h" @interface ReactLocalization : NSObject<RCTBridgeModule> @end
// // 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 limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #import <Foundation/Foundation.h> #import <UIKit/UIDevice.h> #if __has_include("RCTBridgeModule.h") #import "RCTBridgeModule.h" #import "RCTLog.h" #else #import <React/RCTBridgeModule.h> #import <React/RCTLog.h> #endif @interface ReactLocalization : NSObject<RCTBridgeModule> @end
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[1]); unsigned int i, j; // Output in Netscape cookies.txt format for (i = 0; i < bc->num_pages; i++) { for (j = 0; j < bc->pages[i]->number_of_cookies; j++) { // domain, flag, path, secure, expiration, name, value printf("%s\t%s\t%s\t%s\t%.f\t%s\t%s\n", bc->pages[i]->cookies[j]->domain, bc->pages[i]->cookies[j]->domain[0] == '.' ? "TRUE" : "FALSE", bc->pages[i]->cookies[j]->path, binarycookies_is_secure(bc->pages[i]->cookies[j]) ? "TRUE" : "FALSE", bc->pages[i]->cookies[j]->expiration_date, bc->pages[i]->cookies[j]->name, bc->pages[i]->cookies[j]->value); } } binarycookies_free(bc); return 0; }
#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[1]); unsigned int i, j; // Output in Netscape cookies.txt format for (i = 0; i < bc->num_pages; i++) { for (j = 0; j < bc->pages[i]->number_of_cookies; j++) { // domain, flag, path, secure, expiration, name, value printf("%s\t%s\t%s\t%s\t%.f\t%s\t%s\n", bc->pages[i]->cookies[j]->domain, binarycookies_domain_access_full(bc->pages[i]->cookies[j]) ? "TRUE" : "FALSE", bc->pages[i]->cookies[j]->path, binarycookies_is_secure(bc->pages[i]->cookies[j]) ? "TRUE" : "FALSE", bc->pages[i]->cookies[j]->expiration_date, bc->pages[i]->cookies[j]->name, bc->pages[i]->cookies[j]->value); } } binarycookies_free(bc); return 0; }
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 back the pointer I returned", ptr) == 0; return x; } DLLEXPORT void * ReturnNullPointer() { return NULL; } DLLEXPORT void * TakeTwoPointersToInt(int *ptr1, int *ptr2) { return NULL; } DLLEXPORT void * TakeCArrayToInt8(int array[]) { return NULL; }
#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 pointer I returned", ptr) == 0; free(ptr); return x; } DLLEXPORT void * ReturnNullPointer() { return NULL; } DLLEXPORT void * TakeTwoPointersToInt(int *ptr1, int *ptr2) { return NULL; } DLLEXPORT void * TakeCArrayToInt8(int array[]) { return NULL; }
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,ungrim97/rakudo,dankogai/rakudo,salortiz/rakudo,zostay/rakudo,sergot/rakudo,usev6/rakudo,sjn/rakudo,MasterDuke17/rakudo,salortiz/rakudo,MasterDuke17/rakudo,ab5tract/rakudo,cognominal/rakudo,LLFourn/rakudo,ab5tract/rakudo,samcv/rakudo,Gnouc/rakudo,jonathanstowe/rakudo,ungrim97/rakudo,awwaiid/rakudo,tbrowder/rakudo,Leont/rakudo,labster/rakudo,rakudo/rakudo,tony-o/rakudo,salortiz/rakudo,softmoth/rakudo,zhuomingliang/rakudo,labster/rakudo,samcv/rakudo,samcv/rakudo,cygx/rakudo,cognominal/rakudo,sjn/rakudo,jonathanstowe/rakudo,labster/rakudo,jonathanstowe/rakudo,Gnouc/rakudo,ugexe/rakudo,skids/rakudo,laben/rakudo,nbrown/rakudo,awwaiid/rakudo,sjn/rakudo,azawawi/rakudo,LLFourn/rakudo,tony-o/rakudo,nunorc/rakudo,laben/rakudo,Gnouc/rakudo,cygx/rakudo,Leont/rakudo,sergot/rakudo,usev6/rakudo,labster/rakudo,ugexe/rakudo,b2gills/rakudo,paultcochrane/rakudo,MasterDuke17/rakudo,jonathanstowe/rakudo,raydiak/rakudo,skids/rakudo,azawawi/rakudo,MasterDuke17/rakudo,nbrown/rakudo,awwaiid/rakudo,tbrowder/rakudo,laben/rakudo,paultcochrane/rakudo,nunorc/rakudo,paultcochrane/rakudo,ab5tract/rakudo,dankogai/rakudo,zhuomingliang/rakudo,jonathanstowe/rakudo,cognominal/rakudo,lucasbuchala/rakudo,paultcochrane/rakudo,MasterDuke17/rakudo,azawawi/rakudo,dankogai/rakudo,labster/rakudo,rakudo/rakudo,tbrowder/rakudo,lucasbuchala/rakudo,dankogai/rakudo,sjn/rakudo,ugexe/rakudo,nbrown/rakudo,usev6/rakudo,usev6/rakudo,rakudo/rakudo,salortiz/rakudo,ugexe/rakudo,sjn/rakudo,cygx/rakudo,LLFourn/rakudo,rakudo/rakudo,Gnouc/rakudo,skids/rakudo,LLFourn/rakudo,cognominal/rakudo,Leont/rakudo,ungrim97/rakudo,tony-o/rakudo,nbrown/rakudo,awwaiid/rakudo,cognominal/rakudo,samcv/rakudo,niner/rakudo,Leont/rakudo,tbrowder/rakudo,tbrowder/rakudo,softmoth/rakudo,sergot/rakudo,softmoth/rakudo,tony-o/rakudo,salortiz/rakudo,nunorc/rakudo,zhuomingliang/rakudo,laben/rakudo,b2gills/rakudo,lucasbuchala/rakudo,ab5tract/rakudo,awwaiid/rakudo,nbrown/rakudo,skids/rakudo,usev6/rakudo,zostay/rakudo,zhuomingliang/rakudo,b2gills/rakudo,MasterDuke17/rakudo,raydiak/rakudo,skids/rakudo,lucasbuchala/rakudo,Gnouc/rakudo,dankogai/rakudo,LLFourn/rakudo,tbrowder/rakudo,labster/rakudo,azawawi/rakudo,raydiak/rakudo,softmoth/rakudo,ugexe/rakudo,ungrim97/rakudo,tony-o/rakudo,zostay/rakudo,azawawi/rakudo,ungrim97/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, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #pragma once #include <libcellml> #include "test_exportdefinitions.h" std::string TEST_EXPORT resourcePath(const std::string &resourceRelativePath = ""); std::string TEST_EXPORT fileContents(const std::string &fileName); void TEST_EXPORT printErrors(const libcellml::Validator &v); void TEST_EXPORT printErrors(const libcellml::Parser &p); void TEST_EXPORT expectEqualErrors(const std::vector<std::string> &errors, const libcellml::Logger &logger); libcellml::ModelPtr TEST_EXPORT createModel(const std::string &name = ""); libcellml::ModelPtr TEST_EXPORT createModelWithComponent(const std::string &name = ""); #define EXPECT_EQ_ERRORS(errors, logger) SCOPED_TRACE("Error occured here");expectEqualErrors(errors, logger)
/* 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, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #pragma once #include <libcellml> #include "test_exportdefinitions.h" std::string TEST_EXPORT resourcePath(const std::string &resourceRelativePath = ""); std::string TEST_EXPORT fileContents(const std::string &fileName); void TEST_EXPORT printErrors(const libcellml::Validator &v); void TEST_EXPORT printErrors(const libcellml::Parser &p); void TEST_EXPORT expectEqualErrors(const std::vector<std::string> &errors, const libcellml::Logger &logger); libcellml::ModelPtr TEST_EXPORT createModel(const std::string &name = ""); libcellml::ModelPtr TEST_EXPORT createModelWithComponent(const std::string &name = ""); #define EXPECT_EQ_ERRORS(errors, logger) SCOPED_TRACE("Error occured here.");expectEqualErrors(errors, logger)
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 hour and minute components * which are then used to work out the number of seconds from GMT. * \param offset The timezone offset as a string such as "+0100" * \return A time zone with the specified offset * \see +timeZoneForSecondsFromGMT: */ + (id)timeZoneWithStringOffset:(NSString*)offset; /*! Returns the receivers offset as an HHMM formatted string. * \return The receivers offset as a string in HHMM format. */ - (NSString*)offsetString; @end
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 received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #ifndef __AUDIO_H__ #define __AUDIO_H__ #include "filterProperties.h" #include "audioSound.h" #include "audioManager.h" #endif /* __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 received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #ifndef __AUDIO_H__ #define __AUDIO_H__ #include "filterProperties.h" #include "audioLoadRequest.h" #include "audioSound.h" #include "audioManager.h" #endif /* __AUDIO_H__ */
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,matthiascy/panda3d,chandler14362/panda3d,mgracer48/panda3d,ee08b397/panda3d,Wilee999/panda3d,matthiascy/panda3d,brakhane/panda3d,hj3938/panda3d,matthiascy/panda3d,chandler14362/panda3d,hj3938/panda3d,chandler14362/panda3d,mgracer48/panda3d,hj3938/panda3d,matthiascy/panda3d,Wilee999/panda3d,grimfang/panda3d,Wilee999/panda3d,mgracer48/panda3d,ee08b397/panda3d,grimfang/panda3d,grimfang/panda3d,chandler14362/panda3d,chandler14362/panda3d,mgracer48/panda3d,Wilee999/panda3d,matthiascy/panda3d,cc272309126/panda3d,hj3938/panda3d,ee08b397/panda3d,chandler14362/panda3d,brakhane/panda3d,cc272309126/panda3d,brakhane/panda3d,tobspr/panda3d,matthiascy/panda3d,tobspr/panda3d,grimfang/panda3d,jjkoletar/panda3d,mgracer48/panda3d,jjkoletar/panda3d,cc272309126/panda3d,jjkoletar/panda3d,tobspr/panda3d,cc272309126/panda3d,cc272309126/panda3d,hj3938/panda3d,hj3938/panda3d,chandler14362/panda3d,brakhane/panda3d,mgracer48/panda3d,grimfang/panda3d,grimfang/panda3d,ee08b397/panda3d,tobspr/panda3d,ee08b397/panda3d,jjkoletar/panda3d,cc272309126/panda3d,tobspr/panda3d,ee08b397/panda3d,grimfang/panda3d,grimfang/panda3d,chandler14362/panda3d,ee08b397/panda3d,jjkoletar/panda3d,tobspr/panda3d,matthiascy/panda3d,Wilee999/panda3d,chandler14362/panda3d,Wilee999/panda3d,cc272309126/panda3d,ee08b397/panda3d,cc272309126/panda3d,Wilee999/panda3d,chandler14362/panda3d,matthiascy/panda3d,grimfang/panda3d,tobspr/panda3d,hj3938/panda3d,mgracer48/panda3d,brakhane/panda3d,cc272309126/panda3d,mgracer48/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 use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. void objc_synchronized(id object, __attribute__((noescape)) void (^closure)());
// 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 use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. @import Foundation; NS_ASSUME_NONNULL_BEGIN void objc_synchronized(id object, __attribute__((noescape)) void (^closure)()); NS_ASSUME_NONNULL_END
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) tmpdir = "/tmp"; tmppath = ustrprintf("%s/%sXXXXXX", tmpdir, prefix); fd = mkstemp(tmppath); if(fd < 0){ free(tmppath); tmppath = NULL; } if(fname) *fname = tmppath; else free(tmppath); return fd; }
#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) tmpdir = "/tmp"; tmppath = ustrprintf("%s/%sXXXXXX", tmpdir, prefix); fd = mkstemp(tmppath); if(fname) *fname = tmppath; else free(tmppath); return fd; }
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> #include <utility/BlynkDateTime.h> class TimeInputParam { public: TimeInputParam(const BlynkParam& param) : mStart (param[0].asLong()) , mStop (param[1].asLong()) { mTZ = param[2].asLong(); } BlynkDateTime& getStart() { return mStart; } BlynkDateTime& getStop() { return mStop; } long getTZ() const { return mTZ; } private: BlynkDateTime mStart; BlynkDateTime mStop; long mTZ; }; #endif
/** * @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> #include <utility/BlynkDateTime.h> class TimeInputParam { public: TimeInputParam(const BlynkParam& param) { if (strlen(param[0].asStr())) { mStart = param[0].asLong(); } if (strlen(param[1].asStr())) { mStop = param[1].asLong(); } mTZ = param[2].asLong(); } BlynkTime& getStart() { return mStart; } BlynkTime& getStop() { return mStop; } long getTZ() const { return mTZ; } private: BlynkTime mStart; BlynkTime mStop; long mTZ; }; #endif
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 (nonatomic) LVTColorLabel colorLabel; @property (readonly, nonatomic, copy) NSString *path; @property (readonly, nonatomic, copy) NSURL *fileURL; @property (readonly, nonatomic) NSDate *dateUpdated; @property (readonly, nonatomic) NSDate *dateDeleted; @property (readonly, nonatomic, copy) NSString *md5; @property (readonly, nonatomic, copy) NSURL *url; @property (readonly, nonatomic, copy) NSURL *shortURL; @property (readonly, nonatomic, copy) NSString *organizationPermalink; @property (readonly, nonatomic, copy) NSArray *folders; @property (readonly, nonatomic, copy) NSArray *files; @end
// // 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 (nonatomic) LVTColorLabel colorLabel; @property (readonly, nonatomic, copy) NSString *path; @property (readonly, nonatomic, copy) NSURL *fileURL; @property (nonatomic) NSDate *dateUpdated; @property (readonly, nonatomic) NSDate *dateDeleted; @property (readonly, nonatomic, copy) NSString *md5; @property (readonly, nonatomic, copy) NSURL *url; @property (readonly, nonatomic, copy) NSURL *shortURL; @property (readonly, nonatomic, copy) NSString *organizationPermalink; @property (readonly, nonatomic, copy) NSArray *folders; @property (readonly, nonatomic, copy) NSArray *files; @end
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 compiles for now. The actual // implementation is work in progress.
// 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. // This just exists to check that the header compiles for now. The actual // implementation is work in progress. OT_WARN_UNUSED_RESULT dif_result_t dif_pinmux_input_select(const dif_pinmux_t *pinmux, dif_pinmux_index_t peripheral_input, dif_pinmux_index_t insel) { if (pinmux == NULL || peripheral_input >= PINMUX_PARAM_N_MIO_PERIPH_IN || insel >= (2 + PINMUX_PARAM_N_MIO_PADS)) { return kDifBadArg; } uint32_t reg_offset = PINMUX_MIO_PERIPH_INSEL_0_REG_OFFSET + (peripheral_input << 2); uint32_t reg_value = bitfield_field32_write(0, PINMUX_MIO_PERIPH_INSEL_0_IN_0_FIELD, insel); mmio_region_write32(pinmux->base_addr, reg_offset, reg_value); return kDifOk; }
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/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm
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, VENCoreErrorCode) { VENCoreErrorCodeNoDefaultCore, VENCoreErrorCodeNoAccessToken }; @interface VENCore : NSObject @property (strong, nonatomic) VENHTTP *httpClient; @property (strong, nonatomic) NSString *accessToken; /** * Sets the shared core object. * @param core The core object to share. */ + (void)setDefaultCore:(VENCore *)core; /** * Returns the shared core object. * @return A VENCore object. */ + (instancetype)defaultCore; /** * Sets the core object's access token. */ - (void)setAccessToken:(NSString *)accessToken; @end
@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> #import <VENCore/NSError+VENCore.h> #import <VENCore/NSString+VENCore.h> #import <VENCore/UIDevice+VENCore.h> extern NSString *const VENErrorDomainCore; typedef NS_ENUM(NSInteger, VENCoreErrorCode) { VENCoreErrorCodeNoDefaultCore, VENCoreErrorCodeNoAccessToken }; @interface VENCore : NSObject @property (strong, nonatomic) VENHTTP *httpClient; @property (strong, nonatomic) NSString *accessToken; /** * Sets the shared core object. * @param core The core object to share. */ + (void)setDefaultCore:(VENCore *)core; /** * Returns the shared core object. * @return A VENCore object. */ + (instancetype)defaultCore; /** * Sets the core object's access token. */ - (void)setAccessToken:(NSString *)accessToken; @end
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 = snprintf(product, MAX, "%d", canidate); int head = 0, tail = int_len - 1; for (;head < tail && product[head] == product[tail]; head++, tail--) ; if (head > tail && canidate > high) high = canidate; } } float stop = timeit(); printf("Answer: %d\n", high); printf("Time: %.8f\n", stop - start); return 0; }
#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 < high) continue; size_t int_len = snprintf(product, MAX, "%d", canidate); int head = 0, tail = int_len - 1; for (;head < tail && product[head] == product[tail]; head++, tail--) ; if (head > tail) high = canidate; } } float stop = timeit(); printf("Answer: %d\n", high); printf("Time: %.8f\n", stop - start); return 0; }
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_WINDOW_FOREGROUND GColorBlack #define COLOR_WINDOW_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorLightGray,GColorWhite) #define COLOR_LAYER_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorBlack,GColorWhite) #define COLOR_LAYER_PROGRESS_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorBlack) #define COLOR_WINDOW_ERROR_BACKGROUND PBL_IF_COLOR_ELSE(GColorCobaltBlue,GColorBlack) #define COLOR_WINDOW_ERROR_FOREGROUND GColorWhite #define COLOR_MENU_NORMAL_BACKGROUND GColorWhite #define COLOR_MENU_NORMAL_FOREGROUND GColorBlack #define COLOR_MENU_HIGHLIGHT_BACKGROUND PBL_IF_COLOR_ELSE(GColorDarkGray,GColorBlack) #define COLOR_MENU_HIGHLIGHT_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorWhite)
/* * 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_WINDOW_FOREGROUND GColorBlack #define COLOR_WINDOW_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorLightGray,GColorWhite) #define COLOR_LAYER_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorBlack,GColorWhite) #define COLOR_LAYER_PROGRESS_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorBlack) #define COLOR_WINDOW_ERROR_BACKGROUND PBL_IF_COLOR_ELSE(GColorCobaltBlue,GColorBlack) #define COLOR_WINDOW_ERROR_FOREGROUND GColorWhite #define COLOR_MENU_NORMAL_BACKGROUND GColorWhite #define COLOR_MENU_NORMAL_FOREGROUND GColorBlack #define COLOR_MENU_HIGHLIGHT_BACKGROUND PBL_IF_COLOR_ELSE(GColorCobaltBlue,GColorBlack) #define COLOR_MENU_HIGHLIGHT_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorWhite)
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" #include "access/nbtree.h" #include "access/rmgr.h" #include "access/spgist.h" #include "access/xact.h" #include "access/xlog_internal.h" #include "catalog/storage_xlog.h" #include "commands/dbcommands.h" #include "commands/sequence.h" #include "commands/tablespace.h" #include "rmgrdesc.h" #include "storage/standby.h" #include "utils/relmapper.h" #define PG_RMGR(symname,name,redo,desc,startup,cleanup,restartpoint) \ { name, desc, }, const RmgrDescData RmgrDescTable[RM_MAX_ID + 1] = { #include "access/rmgrlist.h" };
/* * 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" #include "access/nbtree.h" #include "access/rmgr.h" #include "access/spgist.h" #include "access/xact.h" #include "access/xlog_internal.h" #include "catalog/storage_xlog.h" #include "commands/dbcommands.h" #include "commands/sequence.h" #include "commands/tablespace.h" #include "rmgrdesc.h" #include "storage/standby.h" #include "utils/relmapper.h" #define PG_RMGR(symname,name,redo,desc,startup,cleanup) \ { name, desc, }, const RmgrDescData RmgrDescTable[RM_MAX_ID + 1] = { #include "access/rmgrlist.h" };
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,xinzweb/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,ovr/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,ashwinstar/gpdb,yazun/postgres-xl,zeroae/postgres-xl,xinzweb/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,pavanvd/postgres-xl,lisakowen/gpdb,yazun/postgres-xl,ashwinstar/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,adam8157/gpdb,50wu/gpdb,xinzweb/gpdb,lisakowen/gpdb,lisakowen/gpdb,zeroae/postgres-xl,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,ovr/postgres-xl,50wu/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,jmcatamney/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,ashwinstar/gpdb,xinzweb/gpdb,ashwinstar/gpdb,adam8157/gpdb,adam8157/gpdb,50wu/gpdb,oberstet/postgres-xl,techdragon/Postgres-XL,ovr/postgres-xl,ashwinstar/gpdb,lisakowen/gpdb,50wu/gpdb,oberstet/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,techdragon/Postgres-XL,xinzweb/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,adam8157/gpdb,adam8157/gpdb,xinzweb/gpdb,yazun/postgres-xl,greenplum-db/gpdb,jmcatamney/gpdb,yazun/postgres-xl,50wu/gpdb,zeroae/postgres-xl,50wu/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,lisakowen/gpdb,oberstet/postgres-xl
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) { return crypt(key, 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 * initialization is performed. */ #include <kernel_internal.h> extern FUNC_NORETURN void z_cstart(void); /** * * @brief Prepare to and run C code * * This routine prepares for the execution of and runs C code. * * @return N/A */ void z_arm64_prep_c(void) { z_bss_zero(); z_arm64_interrupt_init(); z_cstart(); CODE_UNREACHABLE; }
/* * 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 * initialization is performed. */ #include <kernel_internal.h> #include <linker/linker-defs.h> extern FUNC_NORETURN void z_cstart(void); static inline void z_arm64_bss_zero(void) { uint64_t *p = (uint64_t *)__bss_start; uint64_t *end = (uint64_t *)__bss_end; while (p < end) { *p++ = 0; } } /** * * @brief Prepare to and run C code * * This routine prepares for the execution of and runs C code. * * @return N/A */ void z_arm64_prep_c(void) { z_arm64_bss_zero(); z_arm64_interrupt_init(); z_cstart(); CODE_UNREACHABLE; }
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 often a nice optimization, this is causing the issue on AArch64 because memset() is being used before the MMU is enabled, and when the MMU is disabled all data accesses will be treated as Device_nGnRnE. This is a problem because quoting from the ARM reference manual: "If the memory region being zeroed is any type of Device memory, then DC ZVA generates an Alignment fault which is prioritized in the same way as other alignment faults that are determined by the memory type". newlibc tries to be a bit smart about this reading the DCZID_EL0 register before deciding whether using 'DC ZVA' or not. While this is a good idea for code running in EL0, currently the Zephyr kernel is running in EL1. This means that the value of the DCZID_EL0 register is actually retrieved from the HCR_EL2.TDZ bit, that is always 0 because EL2 is not currently supported / enabled. So the 'DC ZVA' instruction is unconditionally used in the newlibc memset() implementation. The "standard" solution for this case is usually to use a different memset routine to be specifically used for two cases: (1) against IO memory or (2) against normal memory but with MMU disabled (which means all memory is considered device memory for data accesses). To fix this issue in Zephyr we avoid calling memset() when clearing the bss, and instead we use a simple loop to zero the memory region. Signed-off-by: Carlo Caione <ca4506c8c654a4ccf75802e86b5d162c1e96f065@baylibre.com>
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,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr
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 &vector) { dbg << "[" << vector.x() << "|" << vector.y() << "|" << vector.z() << "]"; return dbg.maybeSpace(); } QDebug operator<<(QDebug dbg, const Eigen::Matrix4f &vector) { const Eigen::IOFormat cleanFormat(4, 0, ", ", "\n", "[", "]"); std::stringstream stream; stream << vector.format(cleanFormat); dbg << stream.str().c_str(); return dbg.maybeSpace(); } #endif // 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 &vector) { dbg << "[" << vector.x() << "|" << vector.y() << "|" << vector.z() << "]"; return dbg.maybeSpace(); } QDebug operator<<(QDebug dbg, const Eigen::Vector4f &vector) { dbg << "[" << vector.x() << "|" << vector.y() << "|" << vector.z() << "|" << vector.w() << "]"; return dbg.maybeSpace(); } QDebug operator<<(QDebug dbg, const Eigen::Matrix4f &vector) { const Eigen::IOFormat cleanFormat(4, 0, ", ", "\n", "[", "]"); std::stringstream stream; stream << vector.format(cleanFormat); dbg << stream.str().c_str(); return dbg.maybeSpace(); } #endif // SRC_EIGEN_QDEBUG_H_
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/bsd-license.php */ #ifndef _LIBP_MACROS_H_ #define _LIBP_MACROS_H_ #include <stddef.h> /* offsetof */ /* restore pointer to the structure by a pointer to its field */ #define structof(p,t,f) ((t*)(- offsetof(t,f) + (void*)(p))) #endif
/* * 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/bsd-license.php */ #ifndef _LIBP_MACROS_H_ #define _LIBP_MACROS_H_ #include <stddef.h> /* offsetof */ #include <stdint.h> /* intptr_t */ /* restore pointer to the structure by a pointer to its field */ #define structof(p,t,f) ((t*)(- offsetof(t,f) + (intptr_t)(p))) #endif
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 /* !PyMPI_CONFIG_MPICH2_H */
#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.0 */ #endif /* MS_WINDOWS */ #ifndef ROMIO_VERSION #include "mpich2io.h" #endif /* !ROMIO_VERSION */ #endif /* !PyMPI_CONFIG_MPICH2_H */
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 = '%', tok_plus = '+', tok_minus = '-', tok_xor = '^', tok_or = '|', tok_and = '&', tok_orsc = -1, tok_andsc = -2, tok_shiftl = -3, tok_shiftr = -4, /* unary - TODO */ tok_not = '!', tok_bnot = '~', /* comparison */ tok_eq = -5, tok_ne = -6, tok_le = -7, tok_lt = '<', tok_ge = -8, tok_gt = '>', /* ternary */ tok_question = '?', tok_colon = ':', #define MIN_OP -8 } tok_cur; void tok_next(void); void tok_begin(char *); const char *tok_last(void); #endif
#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 = '%', tok_plus = '+', tok_minus = '-', tok_xor = '^', tok_or = '|', tok_and = '&', tok_orsc = -3, tok_andsc = -4, tok_shiftl = -5, tok_shiftr = -6, /* unary - TODO */ tok_not = '!', tok_bnot = '~', /* comparison */ tok_eq = -7, tok_ne = -8, tok_le = -9, tok_lt = '<', tok_ge = -10, tok_gt = '>', /* ternary */ tok_question = '?', tok_colon = ':', #define MIN_OP -10 } tok_cur; void tok_next(void); void tok_begin(char *); const char *tok_last(void); #endif
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. // //===----------------------------------------------------------------------===// // // This functionality is implemented by the lib/CWriter library. This library // is used to print C language files to an iostream. // //===----------------------------------------------------------------------===// #ifndef LLVM_ASSEMBLY_CWRITER_H #define LLVM_ASSEMBLY_CWRITER_H #include <iosfwd> namespace llvm { class Pass; Pass *createWriteToCPass(std::ostream &o); } // End llvm namespace #endif
//===-- 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. // //===----------------------------------------------------------------------===// // // This functionality is implemented by the lib/CWriter library. This library // is used to print C language files to an iostream. // //===----------------------------------------------------------------------===// #ifndef LLVM_ASSEMBLY_CWRITER_H #define LLVM_ASSEMBLY_CWRITER_H #include <iosfwd> namespace llvm { class PassManager; void AddPassesToWriteC(PassManager &PM, std::ostream &o); } // End llvm namespace #endif
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,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap
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_PROPERTY_APPLY, GNOME_PROPERTY_SETUP } GnomePropertyRequest; GnomePropertyConfigurator *gnome_property_configurator_new (void); void gnome_property_configurator_destroy (GnomePropertyConfigurator *); void gnome_property_configurator_register (GnomePropertyConfigurator *, int (*callback)(GnomePropertyRequest)); void gnome_property_configurator_setup (GnomePropertyConfigurator *); gint gnome_property_configurator_request (GnomePropertyConfigurator *, GnomePropertyRequest); void gnome_property_configurator_request_foreach (GnomePropertyConfigurator *th, GnomePropertyRequest r); END_GNOME_DECLS #endif
#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, GNOME_PROPERTY_WRITE, GNOME_PROPERTY_APPLY, GNOME_PROPERTY_SETUP } GnomePropertyRequest; GnomePropertyConfigurator *gnome_property_configurator_new (void); void gnome_property_configurator_destroy (GnomePropertyConfigurator *); void gnome_property_configurator_register (GnomePropertyConfigurator *, int (*callback)(GnomePropertyRequest)); void gnome_property_configurator_setup (GnomePropertyConfigurator *); gint gnome_property_configurator_request (GnomePropertyConfigurator *, GnomePropertyRequest); void gnome_property_configurator_request_foreach (GnomePropertyConfigurator *th, GnomePropertyRequest r); END_GNOME_DECLS #endif
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]; strcat(buffer, StringValuePtr(v)); strcat(buffer, "_"); } buffer[strlen(buffer) - 1] = 0; return rb_str_new2(buffer); } VALUE sp_underline_concat_proc(VALUE self) { return rb_proc_new(concat_func, Qnil); } #endif void Init_proc_spec() { VALUE cls; cls = rb_define_class("CApiProcSpecs", rb_cObject); #ifdef HAVE_RB_PROC_NEW rb_define_method(cls, "underline_concat_proc", sp_underline_concat_proc, 0); #endif } #ifdef __cplusplus } #endif
#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]; strcat(buffer, StringValuePtr(v)); strcat(buffer, "_"); } buffer[strlen(buffer) - 1] = 0; return rb_str_new2(buffer); } VALUE sp_underline_concat_proc(VALUE self) { return rb_proc_new(concat_func, Qnil); } #endif void Init_proc_spec() { VALUE cls; cls = rb_define_class("CApiProcSpecs", rb_cObject); #ifdef HAVE_RB_PROC_NEW rb_define_method(cls, "underline_concat_proc", sp_underline_concat_proc, 0); #endif } #ifdef __cplusplus } #endif
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. //------------------------------------------------------------------------------------------------------- #pragma once #define CHAKRA_CORE_MAJOR_VERSION 1 #define CHAKRA_CORE_MINOR_VERSION 3 #define CHAKRA_CORE_VERSION_RELEASE 0 #define CHAKRA_CORE_VERSION_PRERELEASE 0 #define CHAKRA_CORE_VERSION_RELEASE_QFE 0 #define CHAKRA_VERSION_RELEASE 0 // NOTE: need to update the GUID in ByteCodeCacheReleaseFileVersion.h as well
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- #pragma once #define CHAKRA_CORE_MAJOR_VERSION 1 #define CHAKRA_CORE_MINOR_VERSION 4 #define CHAKRA_CORE_VERSION_RELEASE 0 #define CHAKRA_CORE_VERSION_PRERELEASE 0 #define CHAKRA_CORE_VERSION_RELEASE_QFE 0 #define CHAKRA_VERSION_RELEASE 0 // NOTE: need to update the GUID in ByteCodeCacheReleaseFileVersion.h as well
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 restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. //----------------------------------------------------------------------------- #ifndef T_GL_H #define T_GL_H #include "GL/glew.h" // Slower but reliably detects extensions #define gglHasExtension(EXTENSION) glewGetExtension("GL_" # EXTENSION) #endif
//----------------------------------------------------------------------------- // 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 restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. //----------------------------------------------------------------------------- #ifndef T_GL_H #define T_GL_H #include "GL/glew.h" #if defined (TORQUE_OS_WIN) // This doesn't work on Mesa drivers. #define gglHasExtension(EXTENSION) GLEW_##EXTENSION #else // Slower but reliably detects extensions on Mesa. #define gglHasExtension(EXTENSION) glewGetExtension("GL_" # EXTENSION) #endif #endif
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/Torque3D,Torque3D-GameEngine/Torque3D,aaravamudan2014/Torque3D,chaigler/Torque3D,Phantom139/Torque3D,Phantom139/Torque3D,rextimmy/Torque3D,lukaspj/Speciality,rextimmy/Torque3D,John3/Torque3D,Phantom139/Torque3D,rextimmy/Torque3D,elfprince13/Torque3D,Bloodknight/Torque3D,Bloodknight/Torque3D,ValtoGameEngines/Torque3D,elfprince13/Torque3D,ValtoGameEngines/Torque3D,GarageGames/Torque3D,Bloodknight/Torque3D,aaravamudan2014/Torque3D,Duion/Torque3D,John3/Torque3D,Torque3D-GameEngine/Torque3D,Torque3D-GameEngine/Torque3D,Torque3D-GameEngine/Torque3D,GarageGames/Torque3D,Will-of-the-Wisp/Torque3D,FITTeamIndecisive/Torque3D,aaravamudan2014/Torque3D,Bloodknight/Torque3D,chaigler/Torque3D,elfprince13/Torque3D,chaigler/Torque3D,JeffProgrammer/Torque3D,lukaspj/Speciality,elfprince13/Torque3D,Phantom139/Torque3D,Will-of-the-Wisp/Torque3D,Azaezel/Torque3D,Phantom139/Torque3D,John3/Torque3D,Torque3D-GameEngine/Torque3D,JeffProgrammer/Torque3D,Phantom139/Torque3D,lukaspj/Speciality,Duion/Torque3D,ValtoGameEngines/Torque3D,elfprince13/Torque3D,ValtoGameEngines/Torque3D,JeffProgrammer/Torque3D,ValtoGameEngines/Torque3D,GarageGames/Torque3D,Azaezel/Torque3D,John3/Torque3D,Azaezel/Torque3D,Torque3D-GameEngine/Torque3D,rextimmy/Torque3D,Will-of-the-Wisp/Torque3D,Torque3D-GameEngine/Torque3D,Phantom139/Torque3D,GarageGames/Torque3D,aaravamudan2014/Torque3D,aaravamudan2014/Torque3D,Azaezel/Torque3D,FITTeamIndecisive/Torque3D,lukaspj/Speciality,FITTeamIndecisive/Torque3D,John3/Torque3D,Will-of-the-Wisp/Torque3D,GarageGames/Torque3D,Bloodknight/Torque3D,JeffProgrammer/Torque3D,Will-of-the-Wisp/Torque3D,JeffProgrammer/Torque3D,FITTeamIndecisive/Torque3D,elfprince13/Torque3D,FITTeamIndecisive/Torque3D,Duion/Torque3D,chaigler/Torque3D,elfprince13/Torque3D,elfprince13/Torque3D,John3/Torque3D,Bloodknight/Torque3D,rextimmy/Torque3D,aaravamudan2014/Torque3D,Azaezel/Torque3D,Phantom139/Torque3D,JeffProgrammer/Torque3D,rextimmy/Torque3D,John3/Torque3D,aaravamudan2014/Torque3D,John3/Torque3D,FITTeamIndecisive/Torque3D,lukaspj/Speciality,rextimmy/Torque3D,Duion/Torque3D,chaigler/Torque3D,Azaezel/Torque3D,Bloodknight/Torque3D,Azaezel/Torque3D,GarageGames/Torque3D,Torque3D-GameEngine/Torque3D,Will-of-the-Wisp/Torque3D,ValtoGameEngines/Torque3D,aaravamudan2014/Torque3D,FITTeamIndecisive/Torque3D,Will-of-the-Wisp/Torque3D,Duion/Torque3D,ValtoGameEngines/Torque3D,ValtoGameEngines/Torque3D,rextimmy/Torque3D,Duion/Torque3D,GarageGames/Torque3D,FITTeamIndecisive/Torque3D,elfprince13/Torque3D,ValtoGameEngines/Torque3D,rextimmy/Torque3D,JeffProgrammer/Torque3D,chaigler/Torque3D,Phantom139/Torque3D,lukaspj/Speciality,Duion/Torque3D,Will-of-the-Wisp/Torque3D,lukaspj/Speciality,ValtoGameEngines/Torque3D,FITTeamIndecisive/Torque3D,Duion/Torque3D,Phantom139/Torque3D,lukaspj/Speciality,Torque3D-GameEngine/Torque3D,Duion/Torque3D,lukaspj/Speciality,FITTeamIndecisive/Torque3D,aaravamudan2014/Torque3D,chaigler/Torque3D,Torque3D-GameEngine/Torque3D,John3/Torque3D,JeffProgrammer/Torque3D,chaigler/Torque3D,elfprince13/Torque3D
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; void clear(); // structure size_t addVertex(); void removeVertex(size_t index); size_t vertexCount() const; void addEdge(size_t a, size_t b); void removeEdge(size_t a, size_t b); void removeEdges(); void removeEdges(size_t index); size_t edgeCount() const; const std::vector<size_t>& neighbors(size_t index) const; size_t degree(size_t index) const; bool containsEdge(size_t a, size_t b) const; private: std::vector<std::vector<size_t> > m_adjacencyList; }; } // end MolCore namespace #endif // MOLCORE_GRAPH_H
#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; bool isEmpty() const; void clear(); // structure size_t addVertex(); void removeVertex(size_t index); size_t vertexCount() const; void addEdge(size_t a, size_t b); void removeEdge(size_t a, size_t b); void removeEdges(); void removeEdges(size_t index); size_t edgeCount() const; const std::vector<size_t>& neighbors(size_t index) const; size_t degree(size_t index) const; bool containsEdge(size_t a, size_t b) const; private: std::vector<std::vector<size_t> > m_adjacencyList; }; } // end MolCore namespace #endif // MOLCORE_GRAPH_H
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/molcore,wadejong/avogadrolibs,ghutchis/avogadrolibs,qust113/molcore,ghutchis/avogadrolibs,cjh1/mongochemweb-avogadrolibs,OpenChemistry/avogadrolibs,ghutchis/avogadrolibs
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 /* From c.h */ #ifndef __BEOS__ #ifndef __cplusplus #ifndef bool typedef char bool; #endif #ifndef true #define true ((bool) 1) #endif #ifndef false #define false ((bool) 0) #endif #endif /* not C++ */ #endif /* __BEOS__ */ /* #if SIZEOF_UINT8 == 0 Can't get this from configure */ typedef unsigned char uint8; /* == 8 bits */ typedef unsigned short uint16; /* == 16 bits */ typedef unsigned int uint32; /* == 32 bits */ /* #endif */ extern bool EncryptMD5(const char *passwd, const char *salt, size_t salt_len, char *buf); #endif
/* 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 /* From c.h */ #ifndef __BEOS__ #ifndef __cplusplus #ifndef bool typedef char bool; #endif #ifndef true #define true ((bool) 1) #endif #ifndef false #define false ((bool) 0) #endif #endif /* not C++ */ #endif /* __BEOS__ */ /* Also defined in include/c.h */ #if SIZEOF_UINT8 == 0 typedef unsigned char uint8; /* == 8 bits */ typedef unsigned short uint16; /* == 16 bits */ typedef unsigned int uint32; /* == 32 bits */ #endif /* SIZEOF_UINT8 == 0 */ extern bool EncryptMD5(const char *passwd, const char *salt, size_t salt_len, char *buf); #endif
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,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm
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 \ int GENERATED::Scanner::lex(GENERATED::Parser::semantic_type *yylval, \ GENERATED::Parser::location_type *yylloc) namespace GENERATED { class Scanner : public yyFlexLexer { public: explicit Scanner(std::istream *in = nullptr, std::ostream *out = nullptr); int lex(GENERATED::Parser::semantic_type *yylval, GENERATED::Parser::location_type *yylloc); }; } #endif // include-guard
#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 \ int GENERATED::Scanner::lex(GENERATED::Parser::semantic_type *yylval, \ GENERATED::Parser::location_type *yylloc) // #define YY_DECL GENERATED::Parser::symbol_type GENERATED::Scanner::lex() namespace GENERATED { class Scanner : public yyFlexLexer { public: explicit Scanner(std::istream *in = nullptr, std::ostream *out = nullptr); int lex(GENERATED::Parser::semantic_type *yylval, GENERATED::Parser::location_type *yylloc); // Parser::symbol_type lex(); }; } #endif // include-guard
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 xnode); void ruby_xml_node_free(xmlNodePtr xnode); void ruby_xml_node_mark_common(xmlNodePtr xnode); void ruby_init_xml_node(void); VALUE check_string_or_symbol(VALUE val); VALUE ruby_xml_node_child_set(VALUE self, VALUE obj); VALUE ruby_xml_node_name_get(VALUE self); VALUE ruby_xml_node_property_get(VALUE self, VALUE key); VALUE ruby_xml_node_property_set(VALUE self, VALUE key, VALUE val); #endif
/* $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 xnode); VALUE check_string_or_symbol(VALUE val); #endif
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 GAME_INITD (USR_DIR + "/Game/initd") #define GAME_HELPD (USR_DIR + "/Game/sys/helpd") #define GAME_DRIVER (USR_DIR + "/Game/sys/driver") #define GAME_ROOT (USR_DIR + "/Game/sys/root") #define GAME_SUBD (USR_DIR + "/Game/sys/subd") #define GAME_TESTD (USR_DIR + "/Game/sys/testd")
#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") #define GAME_INITD (USR_DIR + "/Game/initd") #define GAME_HELPD (USR_DIR + "/Game/sys/helpd") #define GAME_DRIVER (USR_DIR + "/Game/sys/driver") #define GAME_ROOT (USR_DIR + "/Game/sys/root") #define GAME_SUBD (USR_DIR + "/Game/sys/subd") #define GAME_TESTD (USR_DIR + "/Game/sys/testd")
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> Auto-Submit: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
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,HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,rubenvb/skia,google/skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,rubenvb/skia,google/skia
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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <type_traits> #include <folly/Traits.h> namespace folly { namespace detail { struct DefaultTag {}; template <typename T> struct DefaultMake { struct Heap { std::unique_ptr<T> ptr{std::make_unique<T>()}; /* implicit */ operator T&() { return *ptr; } }; using is_returnable = StrictDisjunction< bool_constant<__cplusplus >= 201703ULL>, std::is_copy_constructible<T>, std::is_move_constructible<T>>; using type = std::conditional_t<is_returnable::value, T, Heap>; T make(std::true_type) const { return T(); } Heap make(std::false_type) const { return Heap(); } type operator()() const { return make(is_returnable{}); } }; template <typename...> struct TypeTuple {}; } // namespace detail } // namespace folly
/* * 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <type_traits> #include <folly/Traits.h> namespace folly { namespace detail { struct DefaultTag {}; template <typename T> struct DefaultMake { struct Heap { std::unique_ptr<T> ptr{std::make_unique<T>()}; /* implicit */ operator T&() { return *ptr; } }; using is_returnable = StrictDisjunction< bool_constant<__cplusplus >= 201703ULL>, std::is_copy_constructible<T>, std::is_move_constructible<T>>; using type = std::conditional_t<is_returnable::value, T, Heap>; type operator()() const { return type(); } }; template <typename...> struct TypeTuple {}; } // namespace detail } // namespace folly
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 wrenDebugPrintInstruction(WrenVM* vm, ObjFn* fn, int i); void wrenDebugPrintCode(WrenVM* vm, ObjFn* fn); void wrenDebugPrintStack(ObjFiber* fiber); #endif
#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/wren,foresterre/wren,foresterre/wren,minirop/wren,Rohansi/wren,munificent/wren,bigdimboom/wren,foresterre/wren,minirop/wren,munificent/wren,Nelarius/wren,Rohansi/wren
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 // increment that won't trigger the new-version checks, handy for minor // releases that I don't want to bother users about. //#define VERSION_SUFFIX 'b'
#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 // increment that won't trigger the new-version checks, handy for minor // releases that I don't want to bother users about. //#define VERSION_SUFFIX 'b'
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, nonatomic) NSMutableArray *viewsToHideOnIdle; // has topToolbarView and bottomToolbarView by default @property (assign, nonatomic) NSTimeInterval delayBeforeHidingViewsOnIdle; // defaults to 3 seconds @property (assign, nonatomic) BOOL isShowFullscreenExpandAndShrinkButtonsEnabled; // defaults to YES @property (assign, nonatomic) BOOL isHideControlsOnIdleEnabled; // defaults to YES @end
// // 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, nonatomic) NSMutableArray *viewsToHideOnIdle; // has topToolbarView and bottomToolbarView by default @property (assign, nonatomic) NSTimeInterval delayBeforeHidingViewsOnIdle; // defaults to 3 seconds @property (assign, nonatomic) BOOL isShowFullscreenExpandAndShrinkButtonsEnabled; // defaults to YES @property (assign, nonatomic) BOOL isHideControlsOnIdleEnabled; // defaults to YES @end
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 objects with a name for the type. * * @author Mark Slee <mcslee@facebook.com> */ class t_enum : public t_type { public: t_enum(t_program* program) : t_type(program) {} void set_name(std::string name) { name_ = name; } void append(t_enum_value* constant) { constants_.push_back(constant); } const std::vector<t_enum_value*>& get_constants() { return constants_; } bool is_enum() const { return true; } virtual std::string get_fingerprint_material() const { return "enum"; } private: std::vector<t_enum_value*> constants_; }; #endif
// 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 objects with a name for the type. * * @author Mark Slee <mcslee@facebook.com> */ class t_enum : public t_type { public: t_enum(t_program* program) : t_type(program) {} void set_name(const std::string& name) { name_ = name; } void append(t_enum_value* constant) { constants_.push_back(constant); } const std::vector<t_enum_value*>& get_constants() { return constants_; } bool is_enum() const { return true; } virtual std::string get_fingerprint_material() const { return "enum"; } private: std::vector<t_enum_value*> constants_; }; #endif
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,wfxiang08/thrift,huahang/thrift,ykwd/thrift,chenbaihu/thrift,Jens-G/thrift,tanmaykm/thrift,SirWellington/thrift,lion117/lib-thrift,ijuma/thrift,zzmp/thrift,zhaorui1/thrift,pinterest/thrift,spicavigo/thrift,siemens/thrift,mway08/thrift,windofthesky/thrift,windofthesky/thrift,jeking3/thrift,strava/thrift,bmiklautz/thrift,zzmp/thrift,vashstorm/thrift,siemens/thrift,springheeledjak/thrift,bufferoverflow/thrift,jeking3/thrift,springheeledjak/thrift,bforbis/thrift,dongjiaqiang/thrift,NOMORECOFFEE/thrift,terminalcloud/thrift,msonnabaum/thrift,SuperAwesomeLTD/thrift,nsuke/thrift,dtmuller/thrift,evanweible-wf/thrift,creker/thrift,gadLinux/thrift,markerickson-wf/thrift,afds/thrift,gadLinux/thrift,yongju-hong/thrift,dcelasun/thrift,RobberPhex/thrift,creker/thrift,jeking3/thrift,dongjiaqiang/thrift,rewardStyle/apache.thrift,adamvduke/thrift-adamd,crisish/thrift,edvakf/thrift,bitfinder/thrift,Fitbit/thrift,ochinchina/thrift,afds/thrift,guodongxiaren/thrift,authbox-lib/thrift,msonnabaum/thrift,jackscott/thrift,ahnqirage/thrift,windofthesky/thrift,theopolis/thrift,i/thrift,wfxiang08/thrift,EasonYi/thrift,markerickson-wf/thrift,Fitbit/thrift,gadLinux/thrift,Sean-Der/thrift,reTXT/thrift,BluechipSystems/thrift,zhaorui1/thrift,Pertino/thrift,jeking3/thrift,terminalcloud/thrift,bufferoverflow/thrift,timse/thrift,vashstorm/thrift,koofr/thrift,msonnabaum/thrift,prathik/thrift,Jens-G/thrift,dcelasun/thrift,ijuma/thrift,BluechipSystems/thrift,flandr/thrift,hcorg/thrift,strava/thrift,flamholz/thrift,ykwd/thrift,eonezhang/thrift,yongju-hong/thrift,zhaorui1/thrift,roshan/thrift,bufferoverflow/thrift,akshaydeo/thrift,bgould/thrift,bgould/thrift,rewardStyle/apache.thrift,3013216027/thrift,bforbis/thrift,SirWellington/thrift,msonnabaum/thrift,roshan/thrift,mindcandy/thrift,reTXT/thrift,koofr/thrift,bholbrook73/thrift,prashantv/thrift,jfarrell/thrift,jeking3/thrift,windofthesky/thrift,dcelasun/thrift,bgould/thrift,rewardStyle/apache.thrift,jackscott/thrift,jeking3/thrift,jfarrell/thrift,bmiklautz/thrift,x1957/thrift,chenbaihu/thrift,rmhartog/thrift,prashantv/thrift,EasonYi/thrift,Jimdo/thrift,upfluence/thrift,NOMORECOFFEE/thrift,pinterest/thrift,timse/thrift,fernandobt8/thrift,guodongxiaren/thrift,flamholz/thrift,rewardStyle/apache.thrift,ahnqirage/thrift,collinmsn/thrift,roshan/thrift,lion117/lib-thrift,dwnld/thrift,akshaydeo/thrift,wfxiang08/thrift,weweadsl/thrift,weweadsl/thrift,chenbaihu/thrift,SuperAwesomeLTD/thrift,jfarrell/thrift,RobberPhex/thrift,authbox-lib/thrift,i/thrift,reTXT/thrift,crisish/thrift,NOMORECOFFEE/thrift,mindcandy/thrift,tanmaykm/thrift,chentao/thrift,vashstorm/thrift,gadLinux/thrift,Fitbit/thrift,RobberPhex/thrift,jfarrell/thrift,chentao/thrift,chentao/thrift,mway08/thrift,theopolis/thrift,terminalcloud/thrift,prathik/thrift,bmiklautz/thrift,3013216027/thrift,chenbaihu/thrift,bgould/thrift,markerickson-wf/thrift,bgould/thrift,strava/thrift,apache/thrift,jpgneves/thrift,EasonYi/thrift,ykwd/thrift,nsuke/thrift,lion117/lib-thrift,wfxiang08/thrift,apache/thrift,BluechipSystems/thrift,prashantv/thrift,Jens-G/thrift,crisish/thrift,dsturnbull/thrift,msonnabaum/thrift,Fitbit/thrift,evanweible-wf/thrift,zzmp/thrift,elloray/thrift,afds/thrift,timse/thrift,hcorg/thrift,springheeledjak/thrift,RobberPhex/thrift,koofr/thrift,haruwo/thrift-with-java-annotation-support,pinterest/thrift,JoeEnnever/thrift,tanmaykm/thrift,strava/thrift,Pertino/thrift,elloray/thrift,bforbis/thrift,springheeledjak/thrift,fernandobt8/thrift,dwnld/thrift,flandr/thrift,i/thrift,tanmaykm/thrift,adamvduke/thrift-adamd,ahnqirage/thrift,bitemyapp/thrift,tylertreat/thrift,gadLinux/thrift,RobberPhex/thrift,bmiklautz/thrift,bufferoverflow/thrift,Pertino/thrift,siemens/thrift,nsuke/thrift,project-zerus/thrift,bitfinder/thrift,cjmay/thrift,dtmuller/thrift,jeking3/thrift,siemens/thrift,zhaorui1/thrift,Jens-G/thrift,Sean-Der/thrift,SentientTechnologies/thrift,wfxiang08/thrift,dwnld/thrift,pinterest/thrift,jackscott/thrift,Fitbit/thrift,elloray/thrift,vashstorm/thrift,creker/thrift,pinterest/thrift,Jens-G/thrift,apache/thrift,mway08/thrift,koofr/thrift,apache/thrift,theopolis/thrift,bitfinder/thrift,theopolis/thrift,BluechipSystems/thrift,roshan/thrift,project-zerus/thrift,x1957/thrift,msonnabaum/thrift,jfarrell/thrift,springheeledjak/thrift,NOMORECOFFEE/thrift,windofthesky/thrift,tylertreat/thrift,nsuke/thrift,terminalcloud/thrift,haruwo/thrift-with-java-annotation-support,Jens-G/thrift,NOMORECOFFEE/thrift,bforbis/thrift,jpgneves/thrift,wingedkiwi/thrift,Jens-G/thrift,msonnabaum/thrift,markerickson-wf/thrift,joshuabezaleel/thrift,zzmp/thrift,timse/thrift,lion117/lib-thrift,roshan/thrift,terminalcloud/thrift,hcorg/thrift,theopolis/thrift,jackscott/thrift,hcorg/thrift,dtmuller/thrift,jpgneves/thrift,tylertreat/thrift,guodongxiaren/thrift,rewardStyle/apache.thrift,3013216027/thrift,alfredtofu/thrift,pinterest/thrift,SuperAwesomeLTD/thrift,BluechipSystems/thrift,jeking3/thrift,Fitbit/thrift,x1957/thrift,chenbaihu/thrift,vashstorm/thrift,jpgneves/thrift,ykwd/thrift,windofthesky/thrift,lion117/lib-thrift,ochinchina/thrift,ijuma/thrift,theopolis/thrift,SentientTechnologies/thrift,theopolis/thrift,evanweible-wf/thrift,3013216027/thrift,hcorg/thrift,afds/thrift,bitemyapp/thrift,steven-sheffey-tungsten/thrift,nsuke/thrift,gadLinux/thrift,bforbis/thrift,collinmsn/thrift,huahang/thrift,cjmay/thrift,bholbrook73/thrift,akshaydeo/thrift,Sean-Der/thrift,yongju-hong/thrift,project-zerus/thrift,ahnqirage/thrift,collinmsn/thrift,prathik/thrift,flandr/thrift,jackscott/thrift,flandr/thrift,NOMORECOFFEE/thrift,flandr/thrift,hcorg/thrift,rmhartog/thrift,dtmuller/thrift,mindcandy/thrift,dwnld/thrift,ijuma/thrift,JoeEnnever/thrift,eamosov/thrift,dtmuller/thrift,dtmuller/thrift,terminalcloud/thrift,joshuabezaleel/thrift,Sean-Der/thrift,ykwd/thrift,Fitbit/thrift,bitemyapp/thrift,jfarrell/thrift,markerickson-wf/thrift,bgould/thrift,tylertreat/thrift,chentao/thrift,bmiklautz/thrift,apache/thrift,SentientTechnologies/thrift,upfluence/thrift,dcelasun/thrift,selaselah/thrift,rmhartog/thrift,ochinchina/thrift,Pertino/thrift,jpgneves/thrift,timse/thrift,3013216027/thrift,SuperAwesomeLTD/thrift,Sean-Der/thrift,SuperAwesomeLTD/thrift,NOMORECOFFEE/thrift,crisish/thrift,dsturnbull/thrift,jfarrell/thrift,windofthesky/thrift,SentientTechnologies/thrift,dsturnbull/thrift,collinmsn/thrift,yongju-hong/thrift,RobberPhex/thrift,bgould/thrift,zzmp/thrift,jfarrell/thrift,wfxiang08/thrift,windofthesky/thrift,SentientTechnologies/thrift,haruwo/thrift-with-java-annotation-support,Pertino/thrift,ahnqirage/thrift,SirWellington/thrift,akshaydeo/thrift,SirWellington/thrift,bitemyapp/thrift,ahnqirage/thrift,upfluence/thrift,guodongxiaren/thrift,SuperAwesomeLTD/thrift,wfxiang08/thrift,gadLinux/thrift,siemens/thrift,pinterest/thrift,eamosov/thrift,dcelasun/thrift,afds/thrift,collinmsn/thrift,guodongxiaren/thrift,afds/thrift,selaselah/thrift,EasonYi/thrift,authbox-lib/thrift,jpgneves/thrift,yongju-hong/thrift,elloray/thrift,SentientTechnologies/thrift,eonezhang/thrift,project-zerus/thrift,chentao/thrift,weweadsl/thrift,lion117/lib-thrift,rewardStyle/apache.thrift,yongju-hong/thrift,spicavigo/thrift,Pertino/thrift,akshaydeo/thrift,bitemyapp/thrift,dongjiaqiang/thrift,lion117/lib-thrift,bitfinder/thrift,bholbrook73/thrift,guodongxiaren/thrift,strava/thrift,pinterest/thrift,roshan/thrift,gadLinux/thrift,evanweible-wf/thrift,mway08/thrift,bufferoverflow/thrift,apache/thrift,crisish/thrift,cjmay/thrift,ykwd/thrift,NOMORECOFFEE/thrift,project-zerus/thrift,bitemyapp/thrift,joshuabezaleel/thrift,joshuabezaleel/thrift,afds/thrift,mindcandy/thrift,bitfinder/thrift,dsturnbull/thrift,jpgneves/thrift,jfarrell/thrift,jackscott/thrift,spicavigo/thrift,SuperAwesomeLTD/thrift,dcelasun/thrift,evanweible-wf/thrift,msonnabaum/thrift,dtmuller/thrift,wingedkiwi/thrift,3013216027/thrift,roshan/thrift,project-zerus/thrift,spicavigo/thrift,creker/thrift,bufferoverflow/thrift,NOMORECOFFEE/thrift,weweadsl/thrift,BluechipSystems/thrift,weweadsl/thrift,terminalcloud/thrift,strava/thrift,bitfinder/thrift,yongju-hong/thrift,pinterest/thrift,wingedkiwi/thrift,i/thrift,upfluence/thrift,JoeEnnever/thrift,Sean-Der/thrift,bforbis/thrift,bgould/thrift,dcelasun/thrift,upfluence/thrift,ochinchina/thrift,elloray/thrift,steven-sheffey-tungsten/thrift,huahang/thrift,bmiklautz/thrift,jpgneves/thrift,vashstorm/thrift,joshuabezaleel/thrift,Sean-Der/thrift,jeking3/thrift,authbox-lib/thrift,bitfinder/thrift,haruwo/thrift-with-java-annotation-support,3013216027/thrift,tanmaykm/thrift,elloray/thrift,jeking3/thrift,haruwo/thrift-with-java-annotation-support,project-zerus/thrift,SentientTechnologies/thrift,haruwo/thrift-with-java-annotation-support,mway08/thrift,roshan/thrift,reTXT/thrift,ijuma/thrift,prathik/thrift,markerickson-wf/thrift,gadLinux/thrift,dsturnbull/thrift,apache/thrift,project-zerus/thrift,cjmay/thrift,Jens-G/thrift,windofthesky/thrift,hcorg/thrift,creker/thrift,timse/thrift,fernandobt8/thrift,prashantv/thrift,terminalcloud/thrift,creker/thrift,ahnqirage/thrift,guodongxiaren/thrift,Jens-G/thrift,nsuke/thrift,Jimdo/thrift,joshuabezaleel/thrift,Sean-Der/thrift,jackscott/thrift,alfredtofu/thrift,reTXT/thrift,dwnld/thrift,wingedkiwi/thrift,roshan/thrift,akshaydeo/thrift,jfarrell/thrift,Jens-G/thrift,eamosov/thrift,yongju-hong/thrift,huahang/thrift,SirWellington/thrift,haruwo/thrift-with-java-annotation-support,bmiklautz/thrift,3013216027/thrift,crisish/thrift,evanweible-wf/thrift,dtmuller/thrift,steven-sheffey-tungsten/thrift,authbox-lib/thrift,markerickson-wf/thrift,jfarrell/thrift,collinmsn/thrift,eamosov/thrift,guodongxiaren/thrift,hcorg/thrift,rmhartog/thrift,jackscott/thrift,zhaorui1/thrift,Jimdo/thrift,vashstorm/thrift,bforbis/thrift,nsuke/thrift,creker/thrift,adamvduke/thrift-adamd,JoeEnnever/thrift,hcorg/thrift,collinmsn/thrift,3013216027/thrift,flandr/thrift,strava/thrift,prathik/thrift,NOMORECOFFEE/thrift,cjmay/thrift,flamholz/thrift,selaselah/thrift,roshan/thrift,gadLinux/thrift,strava/thrift,JoeEnnever/thrift,markerickson-wf/thrift,Jimdo/thrift,flandr/thrift,dcelasun/thrift,edvakf/thrift,hcorg/thrift,bmiklautz/thrift,SuperAwesomeLTD/thrift,ijuma/thrift,huahang/thrift,bforbis/thrift,zhaorui1/thrift,creker/thrift,jpgneves/thrift,evanweible-wf/thrift,steven-sheffey-tungsten/thrift,flamholz/thrift,SuperAwesomeLTD/thrift,koofr/thrift,SirWellington/thrift,SirWellington/thrift,wfxiang08/thrift,roshan/thrift,dsturnbull/thrift,Pertino/thrift,bmiklautz/thrift,siemens/thrift,flandr/thrift,markerickson-wf/thrift,x1957/thrift,Sean-Der/thrift,fernandobt8/thrift,dwnld/thrift,haruwo/thrift-with-java-annotation-support,steven-sheffey-tungsten/thrift,crisish/thrift,timse/thrift,gadLinux/thrift,weweadsl/thrift,creker/thrift,SuperAwesomeLTD/thrift,windofthesky/thrift,adamvduke/thrift-adamd,pinterest/thrift,bholbrook73/thrift,ykwd/thrift,rewardStyle/apache.thrift,tylertreat/thrift,dongjiaqiang/thrift,JoeEnnever/thrift,bmiklautz/thrift,gadLinux/thrift,JoeEnnever/thrift,JoeEnnever/thrift,wingedkiwi/thrift,zhaorui1/thrift,strava/thrift,guodongxiaren/thrift,strava/thrift,RobberPhex/thrift,ahnqirage/thrift,fernandobt8/thrift,mway08/thrift,upfluence/thrift,dsturnbull/thrift,wfxiang08/thrift,Pertino/thrift,rmhartog/thrift,rewardStyle/apache.thrift,eamosov/thrift,steven-sheffey-tungsten/thrift,afds/thrift,tanmaykm/thrift,weweadsl/thrift,nsuke/thrift,SuperAwesomeLTD/thrift,msonnabaum/thrift,weweadsl/thrift,steven-sheffey-tungsten/thrift,ykwd/thrift,selaselah/thrift,rmhartog/thrift,dcelasun/thrift,upfluence/thrift,ochinchina/thrift,apache/thrift,prathik/thrift,Jimdo/thrift,Jimdo/thrift,koofr/thrift,x1957/thrift,steven-sheffey-tungsten/thrift,3013216027/thrift,joshuabezaleel/thrift,guodongxiaren/thrift,hcorg/thrift,evanweible-wf/thrift,apache/thrift,rmhartog/thrift,bforbis/thrift,reTXT/thrift,prathik/thrift,crisish/thrift,ykwd/thrift,bholbrook73/thrift,SentientTechnologies/thrift,akshaydeo/thrift,BluechipSystems/thrift,spicavigo/thrift,dwnld/thrift,eamosov/thrift,alfredtofu/thrift,eonezhang/thrift,flandr/thrift,edvakf/thrift,ochinchina/thrift,koofr/thrift,chentao/thrift,ahnqirage/thrift,ykwd/thrift,wfxiang08/thrift,RobberPhex/thrift,adamvduke/thrift-adamd,bforbis/thrift,flandr/thrift,elloray/thrift,eamosov/thrift,tanmaykm/thrift,nsuke/thrift,ahnqirage/thrift,flamholz/thrift,RobberPhex/thrift,authbox-lib/thrift,nsuke/thrift,lion117/lib-thrift,steven-sheffey-tungsten/thrift,selaselah/thrift,tylertreat/thrift,x1957/thrift,bmiklautz/thrift,nsuke/thrift,eamosov/thrift,dongjiaqiang/thrift,timse/thrift,i/thrift,upfluence/thrift,BluechipSystems/thrift,creker/thrift,siemens/thrift,evanweible-wf/thrift,prathik/thrift,koofr/thrift,reTXT/thrift,koofr/thrift,dwnld/thrift,ochinchina/thrift,dcelasun/thrift,tylertreat/thrift,koofr/thrift,siemens/thrift,dtmuller/thrift,jackscott/thrift,fernandobt8/thrift,eamosov/thrift,timse/thrift,yongju-hong/thrift,upfluence/thrift,wingedkiwi/thrift,roshan/thrift,pinterest/thrift,prashantv/thrift,SirWellington/thrift,fernandobt8/thrift,collinmsn/thrift,EasonYi/thrift,dwnld/thrift,BluechipSystems/thrift,gadLinux/thrift,vashstorm/thrift,dongjiaqiang/thrift,SentientTechnologies/thrift,Sean-Der/thrift,bufferoverflow/thrift,siemens/thrift,elloray/thrift,bforbis/thrift,cjmay/thrift,jpgneves/thrift,3013216027/thrift,flandr/thrift,huahang/thrift,afds/thrift,ochinchina/thrift,joshuabezaleel/thrift,tylertreat/thrift,terminalcloud/thrift,Sean-Der/thrift,dongjiaqiang/thrift,vashstorm/thrift,alfredtofu/thrift,zhaorui1/thrift,afds/thrift,JoeEnnever/thrift,jeking3/thrift,creker/thrift,spicavigo/thrift,markerickson-wf/thrift,upfluence/thrift,chenbaihu/thrift,huahang/thrift,msonnabaum/thrift,bufferoverflow/thrift,bitfinder/thrift,BluechipSystems/thrift,Jimdo/thrift,Sean-Der/thrift,bgould/thrift,lion117/lib-thrift,wingedkiwi/thrift,jeking3/thrift,project-zerus/thrift,edvakf/thrift,SuperAwesomeLTD/thrift,bgould/thrift,mway08/thrift,theopolis/thrift,chenbaihu/thrift,huahang/thrift,collinmsn/thrift,akshaydeo/thrift,bufferoverflow/thrift,authbox-lib/thrift,springheeledjak/thrift,hcorg/thrift,edvakf/thrift,crisish/thrift,dongjiaqiang/thrift,mway08/thrift,nsuke/thrift,spicavigo/thrift,prashantv/thrift,cjmay/thrift,chentao/thrift,pinterest/thrift,flamholz/thrift,Fitbit/thrift,alfredtofu/thrift,springheeledjak/thrift,mway08/thrift,Fitbit/thrift,joshuabezaleel/thrift,Jimdo/thrift,msonnabaum/thrift,huahang/thrift,ykwd/thrift,selaselah/thrift,authbox-lib/thrift,crisish/thrift,msonnabaum/thrift,alfredtofu/thrift,mindcandy/thrift,chentao/thrift,selaselah/thrift,zzmp/thrift,haruwo/thrift-with-java-annotation-support,Fitbit/thrift,Sean-Der/thrift,chentao/thrift,Pertino/thrift,x1957/thrift,theopolis/thrift,zhaorui1/thrift,prashantv/thrift,evanweible-wf/thrift,bgould/thrift,mindcandy/thrift,dongjiaqiang/thrift,wingedkiwi/thrift,springheeledjak/thrift,zhaorui1/thrift,siemens/thrift,authbox-lib/thrift,RobberPhex/thrift,jeking3/thrift,EasonYi/thrift,springheeledjak/thrift,dsturnbull/thrift,afds/thrift,alfredtofu/thrift,bforbis/thrift,spicavigo/thrift,ykwd/thrift,Jimdo/thrift,EasonYi/thrift,prathik/thrift,spicavigo/thrift,akshaydeo/thrift,guodongxiaren/thrift,wfxiang08/thrift,elloray/thrift,bholbrook73/thrift,reTXT/thrift,jackscott/thrift,dtmuller/thrift,lion117/lib-thrift,zzmp/thrift,nsuke/thrift,nsuke/thrift,SirWellington/thrift,spicavigo/thrift,RobberPhex/thrift,SentientTechnologies/thrift,jeking3/thrift,Jens-G/thrift,theopolis/thrift,adamvduke/thrift-adamd,mindcandy/thrift,windofthesky/thrift,3013216027/thrift,rewardStyle/apache.thrift,jpgneves/thrift,bholbrook73/thrift,edvakf/thrift,ijuma/thrift,ahnqirage/thrift,eonezhang/thrift,RobberPhex/thrift,eamosov/thrift,steven-sheffey-tungsten/thrift,rmhartog/thrift,cjmay/thrift,prathik/thrift,dongjiaqiang/thrift,strava/thrift,flamholz/thrift,RobberPhex/thrift,ochinchina/thrift,huahang/thrift,yongju-hong/thrift,mway08/thrift,Pertino/thrift,reTXT/thrift,jfarrell/thrift,cjmay/thrift,crisish/thrift,i/thrift,fernandobt8/thrift,ijuma/thrift,tanmaykm/thrift,dcelasun/thrift,Fitbit/thrift,afds/thrift,bholbrook73/thrift,evanweible-wf/thrift,upfluence/thrift,x1957/thrift,tanmaykm/thrift,bitfinder/thrift,reTXT/thrift,tylertreat/thrift,wfxiang08/thrift,chentao/thrift,EasonYi/thrift,bforbis/thrift,edvakf/thrift,wfxiang08/thrift,creker/thrift,flamholz/thrift,fernandobt8/thrift,i/thrift,edvakf/thrift,eonezhang/thrift,siemens/thrift,ijuma/thrift,zzmp/thrift,eonezhang/thrift,eamosov/thrift,edvakf/thrift,rmhartog/thrift,Jens-G/thrift,RobberPhex/thrift,3013216027/thrift,koofr/thrift,dsturnbull/thrift,Fitbit/thrift,dcelasun/thrift,mindcandy/thrift,yongju-hong/thrift,apache/thrift,prashantv/thrift,yongju-hong/thrift,jfarrell/thrift,dwnld/thrift,apache/thrift,gadLinux/thrift,jfarrell/thrift,x1957/thrift,eonezhang/thrift,bitemyapp/thrift,Jens-G/thrift,bholbrook73/thrift,gadLinux/thrift,bmiklautz/thrift,rewardStyle/apache.thrift,wfxiang08/thrift,haruwo/thrift-with-java-annotation-support,flamholz/thrift,SentientTechnologies/thrift,lion117/lib-thrift,SirWellington/thrift,weweadsl/thrift,chenbaihu/thrift,adamvduke/thrift-adamd,afds/thrift,bforbis/thrift,RobberPhex/thrift,Jens-G/thrift,selaselah/thrift,steven-sheffey-tungsten/thrift,bufferoverflow/thrift,haruwo/thrift-with-java-annotation-support,adamvduke/thrift-adamd,ochinchina/thrift,apache/thrift,edvakf/thrift,project-zerus/thrift,project-zerus/thrift,hcorg/thrift,chenbaihu/thrift,guodongxiaren/thrift,theopolis/thrift,strava/thrift,pinterest/thrift,strava/thrift,huahang/thrift,dwnld/thrift,apache/thrift,Jimdo/thrift,springheeledjak/thrift,SentientTechnologies/thrift,zzmp/thrift,evanweible-wf/thrift,cjmay/thrift,vashstorm/thrift,theopolis/thrift,JoeEnnever/thrift,Jens-G/thrift,BluechipSystems/thrift,strava/thrift,gadLinux/thrift,elloray/thrift,ahnqirage/thrift,eonezhang/thrift,mindcandy/thrift,weweadsl/thrift,ijuma/thrift,dongjiaqiang/thrift,siemens/thrift,vashstorm/thrift,roshan/thrift,bgould/thrift,bmiklautz/thrift,haruwo/thrift-with-java-annotation-support,Fitbit/thrift,eamosov/thrift,i/thrift,Pertino/thrift,jackscott/thrift,flamholz/thrift,elloray/thrift,NOMORECOFFEE/thrift,siemens/thrift,BluechipSystems/thrift,chenbaihu/thrift,huahang/thrift,eonezhang/thrift,chenbaihu/thrift,chentao/thrift,eonezhang/thrift,terminalcloud/thrift,alfredtofu/thrift,nsuke/thrift,Fitbit/thrift,siemens/thrift,chenbaihu/thrift,prashantv/thrift,adamvduke/thrift-adamd,Fitbit/thrift,yongju-hong/thrift,rmhartog/thrift,bholbrook73/thrift,ochinchina/thrift,jfarrell/thrift,3013216027/thrift,Jens-G/thrift,tylertreat/thrift,RobberPhex/thrift,i/thrift,mway08/thrift,weweadsl/thrift,zzmp/thrift,tylertreat/thrift,Fitbit/thrift,chentao/thrift,roshan/thrift,adamvduke/thrift-adamd,markerickson-wf/thrift,springheeledjak/thrift,reTXT/thrift,joshuabezaleel/thrift,markerickson-wf/thrift,i/thrift,akshaydeo/thrift,dcelasun/thrift,dwnld/thrift,Jens-G/thrift,cjmay/thrift,dtmuller/thrift,collinmsn/thrift,project-zerus/thrift,tanmaykm/thrift,eamosov/thrift,nsuke/thrift,crisish/thrift,cjmay/thrift,windofthesky/thrift,dtmuller/thrift,eonezhang/thrift,joshuabezaleel/thrift,fernandobt8/thrift,selaselah/thrift,RobberPhex/thrift,terminalcloud/thrift,springheeledjak/thrift,rmhartog/thrift,akshaydeo/thrift,ahnqirage/thrift,apache/thrift,bforbis/thrift,EasonYi/thrift,lion117/lib-thrift,dtmuller/thrift,mindcandy/thrift,alfredtofu/thrift,prashantv/thrift,nsuke/thrift,bforbis/thrift,strava/thrift,mindcandy/thrift,mindcandy/thrift,bufferoverflow/thrift,bitemyapp/thrift,yongju-hong/thrift,bitfinder/thrift,dtmuller/thrift,selaselah/thrift,yongju-hong/thrift,SirWellington/thrift,ijuma/thrift,NOMORECOFFEE/thrift,collinmsn/thrift,eonezhang/thrift,wingedkiwi/thrift,dcelasun/thrift,authbox-lib/thrift,authbox-lib/thrift,ochinchina/thrift,edvakf/thrift,edvakf/thrift,vashstorm/thrift,zzmp/thrift,prathik/thrift,tanmaykm/thrift,EasonYi/thrift,Jimdo/thrift,yongju-hong/thrift,i/thrift,bitfinder/thrift,elloray/thrift,terminalcloud/thrift,zhaorui1/thrift,collinmsn/thrift,prashantv/thrift,jackscott/thrift,ahnqirage/thrift,hcorg/thrift,Pertino/thrift,cjmay/thrift,jeking3/thrift,jackscott/thrift,bufferoverflow/thrift,dsturnbull/thrift,gadLinux/thrift,dcelasun/thrift,rewardStyle/apache.thrift,Sean-Der/thrift,terminalcloud/thrift,msonnabaum/thrift,SirWellington/thrift,Jimdo/thrift,upfluence/thrift,x1957/thrift,reTXT/thrift,jpgneves/thrift,dcelasun/thrift,flamholz/thrift,koofr/thrift,markerickson-wf/thrift,jfarrell/thrift,bgould/thrift,pinterest/thrift,creker/thrift,bitfinder/thrift,eamosov/thrift,weweadsl/thrift,spicavigo/thrift,EasonYi/thrift,apache/thrift,afds/thrift,bitemyapp/thrift,dsturnbull/thrift,adamvduke/thrift-adamd,theopolis/thrift,SentientTechnologies/thrift,yongju-hong/thrift,chentao/thrift,x1957/thrift,eamosov/thrift,bforbis/thrift,jeking3/thrift,mway08/thrift,prashantv/thrift,joshuabezaleel/thrift,x1957/thrift,fernandobt8/thrift,project-zerus/thrift,timse/thrift,bitemyapp/thrift,wfxiang08/thrift,timse/thrift,collinmsn/thrift,EasonYi/thrift,dcelasun/thrift,bholbrook73/thrift,timse/thrift,zhaorui1/thrift,ochinchina/thrift,apache/thrift,reTXT/thrift,dwnld/thrift,wingedkiwi/thrift,BluechipSystems/thrift,dongjiaqiang/thrift,tylertreat/thrift,selaselah/thrift,Jens-G/thrift,strava/thrift,strava/thrift,BluechipSystems/thrift,bmiklautz/thrift,steven-sheffey-tungsten/thrift,reTXT/thrift,apache/thrift,bgould/thrift,eamosov/thrift,SentientTechnologies/thrift,bitemyapp/thrift,cjmay/thrift,chentao/thrift,bufferoverflow/thrift,lion117/lib-thrift,zzmp/thrift,alfredtofu/thrift,bgould/thrift,prathik/thrift,bholbrook73/thrift,JoeEnnever/thrift,wingedkiwi/thrift,bitemyapp/thrift,apache/thrift,alfredtofu/thrift,i/thrift,markerickson-wf/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_set; /* Just call a bunch of functions to see if we can link and run */ cpu_set = mytest_hwloc_cpuset_alloc(); mytest_hwloc_topology_init(&topology); mytest_hwloc_topology_load(topology); depth = mytest_hwloc_topology_get_depth(topology); printf("Max depth: %u\n", depth); mytest_hwloc_topology_destroy(topology); mytest_hwloc_cpuset_free(cpu_set); return 0; }
/* * 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_set; /* Just call a bunch of functions to see if we can link and run */ printf("*** Test 1: cpuset alloc\n"); cpu_set = mytest_hwloc_cpuset_alloc(); printf("*** Test 2: topology init\n"); mytest_hwloc_topology_init(&topology); printf("*** Test 3: topology load\n"); mytest_hwloc_topology_load(topology); printf("*** Test 4: topology get depth\n"); depth = mytest_hwloc_topology_get_depth(topology); printf(" Max depth: %u\n", depth); printf("*** Test 5: topology destroy\n"); mytest_hwloc_topology_destroy(topology); printf("*** Test 6: cpuset free\n"); mytest_hwloc_cpuset_free(cpu_set); return 0; }
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, 2, 4, 5, 6, 0, -3}; Matrix *b = new_matrix(bb, 3, 3); Matrix *bin = inverse(b); print_matrix(a); if (ain == ERR_SINGULAR_MATRIX_INVERSE) { printf("Inverse of singular matrix.\n"); } else { print_matrix(ain); } print_matrix(b); if (bin == ERR_SINGULAR_MATRIX_INVERSE) { printf("Inverse of singular matrix.\n"); } else { print_matrix(bin); } free_matrix(a); free_matrix(ain); free_matrix(b); free_matrix(bin); }
#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]; } // Returns -1 on failure, 0 on success. int set_variable(int c, Matrix *a) { if (c < 0 || c >= VARIABLE_COUNT) { return -1; } variables[c - VARIABLE_START] = a; return 0; } /* * Format: * 3 2 : 1 2 3 4 5 6 * Yields: * [[1 2] * [3 4] * [5 6]] */ Matrix *read_matrix(char *s) { int rows, cols, size; rows = strtol(s, &s, 10); cols = strtol(s, &s, 10); size = rows * cols; double aa[size]; s += 3; // space colon space int i; for (i = 0; i < size; i++) { aa[i] = strtol(s, &s, 10); } return new_matrix(aa, rows, cols); } int main(int argc, char **argv) { srand(time(NULL)); Matrix *a = read_matrix("6 1 : 1 0 0 0 0 1"); print_matrix(a); free_matrix(a); }
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_BADOPTION -5 /* Bad option requested */ /* RPC-specific ones */ #define LCTERR_BADCTRID -42 /* Bad container remote ID given */ #define LCTERR_BADCTRNAME -43 /* Bad name on open */ #define LCTERR_RPCUNKNOWN -44 /* Remote problem , but err is not given */ #define LCTERR_RPCCOMM -45 /* Error communicating via channel */ #endif /* __LIBCT_ERRORS_H__ */
#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 LCTERR_BADCTSTATE -2 /* Bad container state */ #define LCTERR_BADFSTYPE -3 /* Bad FS type */ #define LCTERR_BADNETTYPE -4 /* Bad Net type */ #define LCTERR_BADOPTION -5 /* Bad option requested */ /* RPC-specific ones */ #define LCTERR_BADCTRID -42 /* Bad container remote ID given */ #define LCTERR_BADCTRNAME -43 /* Bad name on open */ #define LCTERR_RPCUNKNOWN -44 /* Remote problem , but err is not given */ #define LCTERR_RPCCOMM -45 /* Error communicating via channel */ #endif /* __LIBCT_ERRORS_H__ */
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