commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
a1ec514adc224359043f267df88bf3dc07acb6b3
lcm-lua/init.c
lcm-lua/init.c
#ifdef __cplusplus extern "C" { #endif #include "lua.h" #ifdef __cplusplus } #endif #include "lualcm_lcm.h" #include "lualcm_hash.h" #include "lualcm_pack.h" int luaopen_lcm_lcm(lua_State* L) { ll_lcm_makemetatable(L); ll_lcm_register_new(L); return 1; } int luaopen_lcm__hash(lua_State* L) { ll_hash_makemet...
#ifdef __cplusplus extern "C" { #endif #include "lua.h" #ifdef __cplusplus } #endif #include "lualcm_lcm.h" #include "lualcm_hash.h" #include "lualcm_pack.h" int luaopen_lcm_lcm(lua_State* L) { ll_lcm_makemetatable(L); ll_lcm_register_new(L); return 1; } int luaopen_lcm__hash(lua_State* L) { ll_hash_makemet...
Fix export decoration of Lua module
Fix export decoration of Lua module Add missing export decoration for Lua module entry point. This fixes the Lua module that stopped working when ELF hidden visibility was enabled. (I'm not sure about Windows, as I don't have Lua on Windows, but I suspect it never worked on Windows.)
C
lgpl-2.1
lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,lcm-proj/lcm,adeschamps/lcm,lcm-proj/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,bluesquall/lcm,bluesq...
a34e8ff7a88128234c647074f588ea87435a9fd9
PhotoWheel/SendEmailController.h
PhotoWheel/SendEmailController.h
// // SendEmailController.h // PhotoWheel // // Created by Kirby Turner on 12/11/12. // Copyright (c) 2012 White Peak Software Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <MessageUI/MessageUI.h> #import <MessageUI/MFMailComposeViewController.h> @protocol SendEmailControllerDelegate; ...
// // SendEmailController.h // PhotoWheel // // Created by Kirby Turner on 12/11/12. // Copyright (c) 2012 White Peak Software Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <MessageUI/MessageUI.h> #import <MessageUI/MFMailComposeViewController.h> @protocol SendEmailControllerDelegate; ...
Change from strong to weak.
Change from strong to weak.
C
mit
kirbyt/PhotoWheel,kirbyt/PhotoWheel
48690020234cdbfc29eeff7c466540cdb81ac4ea
SRC/GEP/TestData.h
SRC/GEP/TestData.h
#ifndef TESTDATA_H #define TESTDATA_H //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include "Node.h" #include <vector> namespace GEP { //////////////////////////////////////////////////////////// /// \brief TestData is data to tes...
#ifndef TESTDATA_H #define TESTDATA_H //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include "Node.h" #include <vector> namespace GEP { //////////////////////////////////////////////////////////// /// \brief TestData is data to tes...
Correct bug : result is float, not integer
Correct bug : result is float, not integer
C
mit
Orwel/GeneExpressionProgramming,Orwel/GeneExpressionProgramming
a0fa23aab206f03d9f11a2d03b34bc76eeb8f162
UefiCpuPkg/Include/CpuHotPlugData.h
UefiCpuPkg/Include/CpuHotPlugData.h
/** @file Definition for a structure sharing information for CPU hot plug. Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The...
Add CPU Hot Plug Data include file
UefiCpuPkg: Add CPU Hot Plug Data include file Add CpuHotPlugData.h that defines a data structure that is shared between modules and is required for to support hot plug CPUs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff....
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
dfda6fe8550bbdbf1176c76cdbc943cc5a6dec86
cc1/tests/test027.c
cc1/tests/test027.c
/* name: TEST027 description: Test of cpp stringizer output: F2 G3 F2 main { \ A5 P p A5 "68656C6C6F20697320626574746572207468616E20627965 'P :P r A5 @K gK } */ #define x(y) #y int main(void) { char *p; p = x(hello) " is better than bye"; return *p; }
Add basic test for macro argument stringizer
Add basic test for macro argument stringizer
C
mit
k0gaMSX/kcc,8l/scc,k0gaMSX/scc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,k0gaMSX/kcc,8l/scc
772e45ac76879b551a219c3d13c72cb2fcdd030a
Pod/Classes/Clappr.h
Pod/Classes/Clappr.h
#ifndef Pods_Clappr_h #define Pods_Clappr_h #import <Foundation/Foundation.h> #import <Clappr/Player.h> #import <Clappr/CLPBaseObject.h> #import <Clappr/CLPUIObject.h> #import <Clappr/CLPContainer.h> #import <Clappr/CLPPlayback.h> #import <Clappr/CLPMediaControl.h> #import <Clappr/CLPCore.h> #import <Clappr/CLPPlayer...
#ifndef Pods_Clappr_h #define Pods_Clappr_h // System #import <Foundation/Foundation.h> //TODO To be excluded #import <Clappr/Player.h> // Core #import <Clappr/CLPBaseObject.h> #import <Clappr/CLPUIObject.h> #import <Clappr/CLPContainer.h> #import <Clappr/CLPPlayback.h> #import <Clappr/CLPMediaControl.h> #import <Cl...
Add Loader and AVFoundation playback to clappr base header.
Add Loader and AVFoundation playback to clappr base header.
C
bsd-3-clause
barbosa/clappr-ios,barbosa/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,clappr/clappr-ios
08dc34df72898761e2da9c3ccdf6a7592eb8c7bf
src/exercise210.c
src/exercise210.c
/* * A solution to Exercise 2-3 in The C Programming Language (Second Edition). * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <stdin...
/* * A solution to Exercise 2-10 in The C Programming Language (Second Edition). * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <stdi...
Purge tabs and fix a comment.
Purge tabs and fix a comment.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
62e18306de090b7bd20f6aa561be1f47406a2414
qrenderdoc/Code/RenderManager.h
qrenderdoc/Code/RenderManager.h
#ifndef RENDERMANAGER_H #define RENDERMANAGER_H #include <QMutex> #include <QQueue> #include <QString> #include <QThread> #include <QWaitCondition> #include <functional> #include "renderdoc_replay.h" struct IReplayRenderer; class LambdaThread; class RenderManager { public: typedef std::function<void(IReplayRendere...
#ifndef RENDERMANAGER_H #define RENDERMANAGER_H #include <QMutex> #include <QQueue> #include <QString> #include <QThread> #include <QWaitCondition> #include <functional> #include "renderdoc_replay.h" struct IReplayRenderer; class LambdaThread; // simple helper for the common case of 'we just need to run this on the ...
Add a helper macro for simple async render thread invokes
Add a helper macro for simple async render thread invokes
C
mit
victor-moya/renderdoc,TurtleRockStudios/renderdoc_public,etnlGD/renderdoc,googlestadia/renderdoc,Anteru/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,Anteru/renderdoc,Velro/renderdoc,Velro/renderdoc,etnlGD/renderdoc,Zorro666/renderdoc,Yours3lf/renderdoc,Yours3lf/renderdoc,cgmb/renderdoc,googlestadia/ren...
3555739656f0eec99f4f6edb1cedf032c5d1754a
libgo/runtime/go-rec-nb-big.c
libgo/runtime/go-rec-nb-big.c
/* go-rec-nb-big.c -- nonblocking receive of something big on a channel. Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <stdint.h> #include <assert.h> #include "channel.h" _Bool __go_receive_...
/* go-rec-nb-big.c -- nonblocking receive of something big on a channel. Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <stdint.h> #include <assert.h> #include "channel.h" _Bool __go_receive_...
Correct nonblocking receive of a value larger than 8 bytes.
Correct nonblocking receive of a value larger than 8 bytes. R=iant https://golang.org/cl/1743042
C
bsd-3-clause
qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,golang/gofrontend,anlhord/gofrontend,anlhord/...
8aedf8e81a300dbab13689632b1518826d681529
src/scoreboard/circular_buffer.h
src/scoreboard/circular_buffer.h
template<class T, size_t S> class CircularBuffer { public: CircularBuffer() : index(0), count(0) {} void push_item(T item) { array[index + 1] = item; index = (index + 1) % S; count++; } T pop_item() { if (count > 0) { int old_index = index; ...
template<class T, size_t S> class CircularBuffer { public: CircularBuffer() : index(0), count(0) {} void push_item(T item) { index = (index + 1) % S; array[index] = item; if (count < S) count++; } T pop_item() { int old_index = index; if (count > 0) { ...
Fix issues with circular buffer
Fix issues with circular buffer
C
mit
jvsalo/leditaulu,jvsalo/leditaulu,jvsalo/leditaulu,jvsalo/leditaulu
397948c76e8c43819702459269451493a2449e4e
PolyMapGenerator/ConvexHull.h
PolyMapGenerator/ConvexHull.h
#ifndef CONVEX_HULL_H #define CONVEX_HULL_H #endif
#ifndef CONVEX_HULL_H #define CONVEX_HULL_H #include <algorithm> #include "Structure.h" #include "Math/Vector2.h" namespace ConvexHull { inline double Cross(const Vector2& O, const Vector2& A, const Vector2& B) { return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x); } inline std::vector<Corner*> Calcu...
Implement some part of convex hull
Implement some part of convex hull
C
mit
utilForever/PolyMapGenerator
d5700e91d3254fb3db6a56bc4b243a3e4e1e86a8
src/ms-error.h
src/ms-error.h
/* * Copyright (C) 2010 Igalia S.L. * * Contact: Iago Toral Quiroga <itoral@igalia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at your...
/* * Copyright (C) 2010 Igalia S.L. * * Contact: Iago Toral Quiroga <itoral@igalia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at your...
Add error code for failing query.
Add error code for failing query.
C
lgpl-2.1
kyoushuu/grilo,GNOME/grilo,kyoushuu/grilo,kyoushuu/grilo,grilofw/grilo,grilofw/grilo,grilofw/grilo,jasuarez/grilo,kyoushuu/grilo,MathieuDuponchelle/grilo,MathieuDuponchelle/grilo,jasuarez/grilo,MathieuDuponchelle/grilo,GNOME/grilo,jasuarez/grilo
28273b949da7a786df9f61af51279cf0122de3cc
test/Driver/qa_override.c
test/Driver/qa_override.c
// RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options " %clang x -O2 b -O3 2>&1 | FileCheck %s // RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c 2>&1 | FileCheck %s -check-prefix=RM-WERROR // FIXME: It seems doesn't work with gcc-driver...
// RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options " %clang x -O2 b -O3 2>&1 | FileCheck %s // RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR // CHECK-NOT: ### // CHECK: Option 0 - Nam...
Make this test not try to write on object file and test all of the output rather than just part of it.
Make this test not try to write on object file and test all of the output rather than just part of it. Also, remove the frighteningly ancient comment about not working with the gcc-driver. (!!!) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@187376 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
f8ff178831e639a2d91e0eb03840ee60f3dda1d3
libgnomeui/gnome-properties.h
libgnomeui/gnome-properties.h
#ifndef GNOME_PROPERTIES_H #define GNOME_PROPERTIES_H #include <libgnome/gnome-defs.h> BEGIN_GNOME_DECLS END_GNOME_DECLS #endif
/* This file is currently empty; I'm going to add new code here soon. Oct 27 1998. Martin */
Make this an empty file just with a comment in it.
Make this an empty file just with a comment in it.
C
lgpl-2.1
Distrotech/libgnomeui,Distrotech/libgnomeui,Distrotech/libgnomeui
0a32f8a771dac86fe30ac2ee8cce171b4f9ee004
third-party/lib/openlibm/impl.h
third-party/lib/openlibm/impl.h
#ifndef _OPENLIB_FINITE_H #define _OPENLIB_FINITE_H #include <sys/cdefs.h> #define __BSD_VISIBLE 1 #include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h> static inline int finite(double x) { return isfinite(x); } static inline int finitef(float x) { return isfinite(x); } static inline i...
#ifndef _OPENLIB_FINITE_H #define _OPENLIB_FINITE_H #include <sys/cdefs.h> #define __BSD_VISIBLE 1 #include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h> static inline int finite(double x) { return isfinite(x); } static inline int finitef(float x) { return isfinite(x); } static inline i...
Remove llabs declaration from openlibm port
Remove llabs declaration from openlibm port
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox
a35eb2fedb0ea565c766f4dd55bab2ca866f5cb2
be/src/util/scope-exit-trigger.h
be/src/util/scope-exit-trigger.h
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
Remove 'auto' from parameter list
IMPALA-4535: Remove 'auto' from parameter list Although GCC supports void f(auto arg) { }, this isn't part of C++14. Testing: Local ASAN build passed. Change-Id: I838aa2c1081f7ed21cc2faa209a9eaa4fd0512a4 Reviewed-on: http://gerrit.cloudera.org:8080/5214 Reviewed-by: Tim Armstrong <2f8e34250f03a653da3dc27f7ec203eafdd...
C
apache-2.0
cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,cloudera/Impala,michaelhkw/incubator-impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,michaelhkw/incubator-impala,cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala
e700990fa98002c380666c2a8b1541be675ff205
solutions/uri/1022/1022.c
solutions/uri/1022/1022.c
#include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> int main() { int16_t n, a, b, c, d, r, num, den, num_r, den_r, j; char o, i; scanf("%d", &n); while (n--) { scanf("%d %c %d %c %d %c %d", &a, &i, &b, &o, &c, &i, &d); switch (o) { case '+': ...
Solve TDA Rational in c
Solve TDA Rational in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
fe57f0a345dd24d56455755beb72f95c8194d3d9
src/main/entity/components/SkillComponent.h
src/main/entity/components/SkillComponent.h
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ #include "entity/components/AttributeComponent.h" /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for ide...
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ #include "entity/components/AttributeComponent.h" /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for ide...
Add Dodge skill as temporary hack
Add Dodge skill as temporary hack I think I will implement an actual DefenseManager to handle calculating defenses on the fly; for now this works as a skill.
C
mit
Kromey/roglick
ce7258fa61fb2e04090ecbcaa402ecc55ff0ec62
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h" #define GR_TEST_UTILS 1 #define SKIA_DLL...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h" #define GR_TEST_UTILS 1 #define SKIA_DLL...
Switch Skia to the new sweep gradient impl
Switch Skia to the new sweep gradient impl (remove SK_LEGACY_SWEEP_GRADIENT) Change-Id: I967272af11b86223c92eea61288c6f2c5d27474f
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/and...
2a1aad729e09761ce45b9b283e2fb65da191d38c
SDKs/linux/usr/include/sys/mman.h
SDKs/linux/usr/include/sys/mman.h
/* ===-- limits.h - stub SDK header for compiler-rt -------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===---------------------------------------...
/* ===-- limits.h - stub SDK header for compiler-rt -------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===---------------------------------------...
Fix braindead pasto, caught by Matt Beaumont-Gay.
SDK/linux: Fix braindead pasto, caught by Matt Beaumont-Gay. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@146188 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
e8476178c71c887199a486746c0ea1694feb1bf6
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. constexpr float kCurrentVersion = 1.54f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // ...
#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. constexpr float kCurrentVersion = 1.55f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // ...
Update version number to 1.55
Update version number to 1.55
C
apache-2.0
google/UIforETW,google/UIforETW,google/UIforETW,google/UIforETW
37ffe379713c08899981532bad1a9df96c7fd3e2
src/lib/PMDPage.h
src/lib/PMDPage.h
#pragma once #include "geometry.h" #include "yaml_utils.h" #include <vector> #include <boost/shared_ptr.hpp> #include <librevenge/librevenge.h> namespace libpagemaker { class PMDPage { std::vector<boost::shared_ptr<PMDLineSet> > m_shapes; public: PMDPage() : m_shapes() { } void addShape(boost::shared_ptr<PM...
#pragma once #include "geometry.h" #include "yaml_utils.h" #include <vector> #include <boost/shared_ptr.hpp> #include <librevenge/librevenge.h> namespace libpagemaker { class PMDPage { std::vector<boost::shared_ptr<PMDLineSet> > m_shapes; public: PMDPage() : m_shapes() { } void addShape(boost::shared_ptr<PM...
Fix bug in shape yaml emit
Fix bug in shape yaml emit
C
mpl-2.0
umanwizard/libpagemaker,umanwizard/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker,anuragkanungo/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker
a8122088474be0b8b2479e52a75ebf25a5a386f1
lib/libz/zopenbsd.c
lib/libz/zopenbsd.c
/* $OpenBSD: zopenbsd.c,v 1.4 2015/01/20 04:41:01 krw Exp $ */ #include <sys/types.h> #include <sys/malloc.h> #include <lib/libz/zutil.h> /* * Space allocation and freeing routines for use by zlib routines. */ void * zcalloc(notused, items, size) void *notused; u_int items, size; { return mallocarray(ite...
#include <sys/types.h> #include <sys/malloc.h> #include <lib/libz/zutil.h> /* * Space allocation and freeing routines for use by zlib routines. */ void * zcalloc(notused, items, size) void *notused; u_int items, size; { return mallocarray(items, size, M_DEVBUF, M_NOWAIT); } void zcfree(notused, ptr) ...
Revert some $OpenBSD$ additions about which there are doubts.
Revert some $OpenBSD$ additions about which there are doubts. Suggested by deraadt@
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
14ca78ef6e4f09ca085f0d19c9029895d5c57376
inc/WalkerException.h
inc/WalkerException.h
//! \file WalkerException.h #ifndef WALKEREXCEPTION_H #define WALKEREXCEPTION_H #include <stdexcept> #include <string> namespace WikiWalker { //! (base) class for exceptions in WikiWalker class WalkerException : public std::runtime_error { public: /*! Create a Walker exception with a message. * ...
//! \file WalkerException.h #ifndef WALKEREXCEPTION_H #define WALKEREXCEPTION_H #include <stdexcept> #include <string> namespace WikiWalker { //! (base) class for exceptions in WikiWalker class WalkerException : public std::runtime_error { public: /*! Create a Walker exception with a message. * ...
Use const reference for exception
Use const reference for exception
C
mit
dueringa/WikiWalker
42602d2256e80bd1805a4d8970773be48d6e00f5
searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.h
searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.h
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <cstdint> namespace search::fileutil { class LoadedBuffer; } namespace search::tensor { class HnswGraph; /** * Implements loading of HNSW graph structure from binary format. **/...
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <cstdint> namespace search::fileutil { class LoadedBuffer; } namespace search::tensor { struct HnswGraph; /** * Implements loading of HNSW graph structure from binary format. **...
Fix forward declaration of HnswGraph.
Fix forward declaration of HnswGraph.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
9cd078f86a3f80bf532f348e1f4722937f91c0b6
lib/libstand/assert.c
lib/libstand/assert.c
/*- * Copyright (c) 1998 Michael Smith. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
/*- * Copyright (c) 1998 Michael Smith. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
Make include file consistent with the rest of libstand.
Make include file consistent with the rest of libstand.
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
939d3a1e74e0d1ecf1d24e3368fdf4cf56301ae1
Amplitude/Amplitude+SSLPinning.h
Amplitude/Amplitude+SSLPinning.h
#ifdef AMPLITUDE_SSL_PINNING // // Amplitude+SSLPinning // Amplitude // // Created by Allan on 3/11/15. // Copyright (c) 2015 Amplitude. All rights reserved. // #import <Foundation/Foundation.h> @interface Amplitude (SSLPinning) @property (nonatomic, assign) BOOL sslPinningEnabled; @end #endif
// // Amplitude+SSLPinning // Amplitude // // Created by Allan on 3/11/15. // Copyright (c) 2015 Amplitude. All rights reserved. // @import Foundation; #import "Amplitude.h" @interface Amplitude (SSLPinning) #ifdef AMPLITUDE_SSL_PINNING @property (nonatomic, assign) BOOL sslPinningEnabled; #endif @end
Fix import so it doesn't corrupt debug console
[Debug] Fix import so it doesn't corrupt debug console
C
mit
amplitude/Amplitude-iOS,amplitude/Amplitude-iOS,amplitude/Amplitude-iOS,amplitude/Amplitude-iOS
c7ec0fabc589ebb1837000d9cde36066ce5a7b85
C/Language/preprocessor_voodoo.c
C/Language/preprocessor_voodoo.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #define _Q(x) #x #define Q(x) _Q(x) #define print_calc(_a, _b, _op) printf("%2d "Q(_op)" %2d = %d\n", _a, _b, _a _op _b) #define rand_num(x) rand() % x + 1 #define print_block(OP) \ _a1 = rand_num(20); \ _b1 = rand_num(20); \ print_calc(_a1, _b1, O...
Work from MacBook & PC
[Merge] Work from MacBook & PC
C
mit
CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning,CajetanP/code-learning
5b329fd1aa5a6a1ff4ae1d9b6c83e33342392c31
src/objective-c/GRPCClient/GRPCCall+Interceptor.h
src/objective-c/GRPCClient/GRPCCall+Interceptor.h
/* * * Copyright 2019 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * * Copyright 2019 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Add experimental notice to global interceptor
Add experimental notice to global interceptor
C
apache-2.0
pszemus/grpc,muxi/grpc,donnadionne/grpc,firebase/grpc,ctiller/grpc,jtattermusch/grpc,donnadionne/grpc,ctiller/grpc,pszemus/grpc,vjpai/grpc,jboeuf/grpc,grpc/grpc,vjpai/grpc,ctiller/grpc,jtattermusch/grpc,ejona86/grpc,jboeuf/grpc,donnadionne/grpc,grpc/grpc,muxi/grpc,firebase/grpc,vjpai/grpc,nicolasnoble/grpc,grpc/grpc,do...
bbaf4584286657582a92d5bb4038a5a06654ebb1
fetch-pack.h
fetch-pack.h
#ifndef FETCH_PACK_H #define FETCH_PACK_H struct fetch_pack_args { const char *uploadpack; int quiet; int keep_pack; int unpacklimit; int use_thin_pack; int fetch_all; int verbose; int depth; int no_progress; }; void setup_fetch_pack(struct fetch_pack_args *args); struct ref *fetch_pack(const char *dest, in...
#ifndef FETCH_PACK_H #define FETCH_PACK_H struct fetch_pack_args { const char *uploadpack; int unpacklimit; int depth; unsigned quiet:1, keep_pack:1, use_thin_pack:1, fetch_all:1, verbose:1, no_progress:1; }; void setup_fetch_pack(struct fetch_pack_args *args); struct ref *fetch_pack(const char *dest, ...
Use 'unsigned:1' when we mean boolean options
Use 'unsigned:1' when we mean boolean options These options are all strictly boolean (true/false). Its easier to document this implicitly by making their storage type a single bit. There is no compelling memory space reduction reason for this change, it just makes the structure definition slightly more readable. Sig...
C
mit
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
a91f0523158431e59051d1fd7977426026a2c5a6
src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h
src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h
#ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #include "abstractformeditortool.h" namespace QmlDesigner { class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool { public: AbstractCustomTool(); void selectedItemsChang...
#ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #include "abstractformeditortool.h" namespace QmlDesigner { class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool { public: AbstractCustomTool(); void selectedItemsChang...
Add name method to custom tools
QmlDesigner.FormEditor: Add name method to custom tools Change-Id: Icabf454fc49444a5a88c1f5eb84847967f09078e Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com> (cherry picked from commit bcb11829bab091c0e2c8ea4de42cc03aa5359f0c) Reviewed-by: Marco Bubke <5254e489b34ec8bbce36789100e3fc0f4...
C
lgpl-2.1
colede/qtcreator,darksylinc/qt-creator,danimo/qt-creator,farseerri/git_code,danimo/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,danimo/qt-creator,maui-packages/qt-creator,farseerri/git_code,amyvmiwei/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,duythanhphan/qt-creator,xianian/qt-creator,omniacreator/qtcre...
91555cbe336706d381af22561180b751923b1330
cursor.all.h
cursor.all.h
// File created: 2011-09-02 23:36:23 #ifndef MUSHSPACE_CURSOR_H #define MUSHSPACE_CURSOR_H #include "space.all.h" #define mushcursor MUSHSPACE_NAME(mushcursor) // What kind of an area is the cursor in? typedef enum MushCursorMode { MushCursorMode_static, MushCursorMode_dynamic, MushCursorMode_bak, } MushCursorMo...
// File created: 2011-09-02 23:36:23 #ifndef MUSHSPACE_CURSOR_H #define MUSHSPACE_CURSOR_H #include "space.all.h" #define mushcursor MUSHSPACE_NAME(mushcursor) // What kind of an area is the cursor in? typedef enum MushCursorMode { MushCursorMode_static, MushCursorMode_dynamic, MushCursorMode_bak, } MushCursorMo...
Add mushcursor.box_idx, for Funge-98 only
Add mushcursor.box_idx, for Funge-98 only
C
mit
Deewiant/mushspace,Deewiant/mushspace,Deewiant/mushspace
3df7e69b8f231c7514732bb8d55eb6ead1de0b3b
scripts/testScreens/testReport/deleteInspectionLocation.c
scripts/testScreens/testReport/deleteInspectionLocation.c
testScreens: testReport: DeleteInspectionLocation If [ tagTestSubjectLocation::_LtestSubjectLocation = "" ] Halt Script End If If [ tagTestSubjectLocation::inUse = "t" ] Show Custom Dialog [ Title: "!"; Message: "Deleting this set of test items is allowed after you delete all discoveries made during testing."; Buttons:...
testScreens: testReport: deleteInspectionLocation If [ tagTestSubjectLocation::_LtestSubjectLocation = "" ] Halt Script End If If [ tagTestSubjectLocation::inUse = "t" ] Show Custom Dialog [ Message: "Delete all test results made in this test section before deleting it. To do this, click its green test button. Click on...
Change language to improve quality and update to new vocabulary.
Change language to improve quality and update to new vocabulary. Instead of ‘discovery’ now using ‘test result’ and instead of ‘focus’ now use ‘test section.’
C
apache-2.0
HelpGiveThanks/Library,HelpGiveThanks/Library
0e6bcc34c6601b2ed2336d54e49bf23c12e30c60
Settings/Controls/Dialog.h
Settings/Controls/Dialog.h
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once #include <Windows.h> #include <unordered_map> class Control; class Dialog { public: Dialog(); Dialog(HWND parent, LPCWSTR dlgTemplate); void AddControl(Control *control); ...
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once #include <Windows.h> #include <unordered_map> class Control; class Dialog { public: Dialog(); Dialog(HWND parent, LPCWSTR dlgTemplate); void AddControl(Control *control); ...
Maintain the template string as an instance variable
Maintain the template string as an instance variable
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
f938f81e36fa1fffb1732058a23570abd2e9ee0e
bin/varnishd/mgt.h
bin/varnishd/mgt.h
/* * $Id$ */ #include "common.h" #include "miniobj.h" extern struct evbase *mgt_evb; /* mgt_child.c */ void mgt_run(int dflag); void mgt_start_child(void); void mgt_stop_child(void); extern pid_t mgt_pid, child_pid; /* mgt_cli.c */ void mgt_cli_init(void); void mgt_cli_setup(int fdi, int fdo, int verbose); int m...
/* * $Id$ */ #include "common.h" #include "miniobj.h" extern struct evbase *mgt_evb; /* mgt_child.c */ void mgt_run(int dflag); extern pid_t mgt_pid, child_pid; /* mgt_cli.c */ void mgt_cli_init(void); void mgt_cli_setup(int fdi, int fdo, int verbose); int mgt_cli_askchild(int *status, char **resp, const char *f...
Remove prototypes for no longer existing functions
Remove prototypes for no longer existing functions git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@659 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish
e1b6b7435ca21d528e26ef58af323c43143b77cd
tests/regression/36-apron/92-traces-mutex-meet-cluster2.c
tests/regression/36-apron/92-traces-mutex-meet-cluster2.c
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag extern int __VERIFIER_nondet_int(); #include <pthread.h> #include <assert.h> int g = 0; int h = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); g = 16; pthread_mutex_unlock(&A); re...
Add relational traces example where 1-clusters are needed
Add relational traces example where 1-clusters are needed
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
925cd389862fe45b44921e1a8693fb8b927a9ed6
experiment.c
experiment.c
#include "stdio.h" #include "stdlib.h" #define TRIALS 4 #define MATRIX_SIZE 1024 int main(int argc, char* argv[]) { short A[MATRIX_SIZE][MATRIX_SIZE], B[MATRIX_SIZE][MATRIX_SIZE], C[MATRIX_SIZE][MATRIX_SIZE]; // Initalize array A and B with '1's for (int i = 0; i < MATRIX_SIZE; ++i) for (int k = ...
#include "stdio.h" #include "stdlib.h" #define TRIALS 4 #define MATRIX_SIZE 2048 short A[MATRIX_SIZE][MATRIX_SIZE], B[MATRIX_SIZE][MATRIX_SIZE], C[MATRIX_SIZE][MATRIX_SIZE] = {{0}}; int main(int argc, char* argv[]) { // Initalize array A and B with '1's for (int i = 0; i < MATRIX_SIZE; ++i) for (int...
Move the arrays out of the stack into global mem
Move the arrays out of the stack into global mem
C
mit
EvanPurkhiser/CS-Matrix-Multiplication
a5fc5eba4dfcc284e6adcd7fdcd5b43182230d2b
arch/x86/include/asm/bug.h
arch/x86/include/asm/bug.h
#ifndef _ASM_X86_BUG_H #define _ASM_X86_BUG_H #ifdef CONFIG_BUG #define HAVE_ARCH_BUG #ifdef CONFIG_DEBUG_BUGVERBOSE #ifdef CONFIG_X86_32 # define __BUG_C0 "2:\t.long 1b, %c0\n" #else # define __BUG_C0 "2:\t.long 1b - 2b, %c0 - 2b\n" #endif #define BUG() \ do { \ asm volatile("1:\tud2\n" \ "...
#ifndef _ASM_X86_BUG_H #define _ASM_X86_BUG_H #ifdef CONFIG_BUG #define HAVE_ARCH_BUG #ifdef CONFIG_DEBUG_BUGVERBOSE #ifdef CONFIG_X86_32 # define __BUG_C0 "2:\t.long 1b, %c0\n" #else # define __BUG_C0 "2:\t.long 1b - 2b, %c0 - 2b\n" #endif #define BUG() \ do { \ asm volatile("1:\tud2\n" \ "...
Convert BUG() to use unreachable()
x86: Convert BUG() to use unreachable() Use the new unreachable() macro instead of for(;;);. When allyesconfig is built with a GCC-4.5 snapshot on i686 the size of the text segment is reduced by 3987 bytes (from 6827019 to 6823032). Signed-off-by: David Daney <0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks....
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k...
62cf809f47a2767f343ddc649f8e8b0d725c7823
inc/user.h
inc/user.h
#ifndef USER_H #define USER_H #include <stdint.h> #include <QString> #include <QByteArray> #include <QVector> #include "../inc/pwentry.h" class User { public: enum AuthenticateFlag { Authenticate = 0x0000, Encrypt = 0x0001, Decrypt = 0x0002 }; User(); User(QString u...
#ifndef USER_H #define USER_H #include <stdint.h> #include <QString> #include <QByteArray> #include <QVector> #include "../inc/pwentry.h" class User { public: enum AuthenticateFlag { Auth = 0x0000, Encrypt = 0x0001, Decrypt = 0x0002 }; User(); User(QString username, ...
Resolve naming conflict between Authenticate method name and enum name.
Resolve naming conflict between Authenticate method name and enum name.
C
mit
vapter/karabiner,vapter/karabiner,vapter/karabiner
2f7b8e781b35070f8f79b4816354ffd81df9048b
lib/stdarg.h
lib/stdarg.h
#ifndef __STDARG_H #define __STDARG_H #include "sys/types.h" typedef void *va_list; #define va_start(l, arg) l = (void *)&arg #define va_arg(l, type) (*(type *)(l += __WORDSIZE / 8)) #define va_end(l) #endif
#ifndef __STDARG_H #define __STDARG_H #include "sys/types.h" typedef void *va_list; #define va_start(l, arg) l = (void *)&arg /* * va_arg assumes arguments are promoted to * machine-word size when pushed onto the stack */ #define va_arg(l, type) (*(type *)(l += sizeof *l)) #define va_end(l) #endif
Move by machine word size
Move by machine word size
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
31679d8270f599c1a0927e5bcfd6f865d28167c1
spectrum.h
spectrum.h
#ifndef COMPTONSPECTRUM #define COMPTONSPECTRUM #include "TH1F.h" class spectrum { public: spectrum(double initialEnergy, double resolution); void setNumberOfEvents(const int events); virtual TH1F* getHisto(); virtual void generateEvents(); protected: double fInitialEnergy; double fResolution; int fEven...
#ifndef COMPTONSPECTRUM #define COMPTONSPECTRUM #include "TH1F.h" class spectrum { public: spectrum(double initialEnergy = 0, double resolution = 0); void setNumberOfEvents(const int events); virtual TH1F* getHisto(); virtual void generateEvents(); protected: double fInitialEnergy = 0; double fResolution ...
Add default values of variables
Add default values of variables
C
mit
wictus/comptonPlots
accf8e0bfee00fd2f5a97f728f0e8b57c6e9931d
inc/cleri/children.h
inc/cleri/children.h
/* * children.h - linked list for keeping node results * * author : Jeroen van der Heijden * email : jeroen@transceptor.technology * copyright : 2016, Transceptor Technology * * changes * - initial version, 08-03-2016 * - refactoring, 17-06-2017 */ #ifndef CLERI_CHILDREN_H_ #define CLERI_CHI...
/* * children.h - linked list for keeping node results * * author : Jeroen van der Heijden * email : jeroen@transceptor.technology * copyright : 2016, Transceptor Technology * * changes * - initial version, 08-03-2016 * - refactoring, 17-06-2017 */ #ifndef CLERI_CHILDREN_H_ #define CLERI_CHI...
Update gitignore and use typedef instead of struct
Update gitignore and use typedef instead of struct
C
mit
transceptor-technology/libcleri,transceptor-technology/libcleri
1739d1ce0131a272dfd976df21fdbe21c822cc2e
os/scoped_handle.h
os/scoped_handle.h
// LAF OS Library // Copyright (C) 2019 Igara Studio S.A. // Copyright (C) 2012-2013 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_SCOPED_HANDLE_H_INCLUDED #define OS_SCOPED_HANDLE_H_INCLUDED #pragma once namespace os { template...
// LAF OS Library // Copyright (C) 2019-2020 Igara Studio S.A. // Copyright (C) 2012-2013 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_SCOPED_HANDLE_H_INCLUDED #define OS_SCOPED_HANDLE_H_INCLUDED #pragma once namespace os { tem...
Add operators for ScopedHandle when it is const
Add operators for ScopedHandle when it is const
C
mit
aseprite/laf,aseprite/laf
4e2b8800768573270f13a537c76d4e5f0cdad3cf
Sources/CardinalDebugToolkit.h
Sources/CardinalDebugToolkit.h
// // CardinalDebugToolkit.h // CardinalDebugToolkit // // Created by Robin Kunde on 11/3/17. // Copyright © 2017 Cardinal Solutions. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CardinalDebugToolkit. FOUNDATION_EXPORT double CardinalDebugToolkitVersionNumber; //! Project versio...
// // CardinalDebugToolkit.h // CardinalDebugToolkit // // Created by Robin Kunde on 11/3/17. // Copyright © 2017 Cardinal Solutions. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CardinalDebugToolkit. FOUNDATION_EXPORT double CardinalDebugToolkitVersionNumber; //! Project versio...
Fix import statement in library briding header
Fix import statement in library briding header
C
mit
CardinalNow/CardinalDebugToolkit,CardinalNow/CardinalDebugToolkit,CardinalNow/CardinalDebugToolkit
c9c37b34d95a1436933698beca4cebcceb42a510
mainwindow.h
mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <qwt_picker.h> #include <qwt_plot_picker.h> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_enableSiz...
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <qwt_picker.h> #include <qwt_plot_picker.h> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_enableSiz...
Add x0, y0 fields in class.
Add x0, y0 fields in class.
C
mit
ivanshchitov/solving-system-ode
9faa3ae19da724a23538a218a691bf73c24b81d2
BKMoneyKit/BKCardExpiryField.h
BKMoneyKit/BKCardExpiryField.h
// // BKCardExpiryField.h // BKMoneyKit // // Created by Byungkook Jang on 2014. 7. 6.. // Copyright (c) 2014년 Byungkook Jang. All rights reserved. // #import "BKForwardingTextField.h" @interface BKCardExpiryField : BKForwardingTextField /** * Date components that user typed. Undetermined components would be ze...
// // BKCardExpiryField.h // BKMoneyKit // // Created by Byungkook Jang on 2014. 7. 6.. // Copyright (c) 2014년 Byungkook Jang. All rights reserved. // #import "BKForwardingTextField.h" @interface BKCardExpiryField : BKForwardingTextField /** * Date components that user typed. Undetermined components would be ze...
Add accept to current year getter
Add accept to current year getter
C
mit
bkook/BKMoneyKit,brightsider/BKMoneyKit
f1d1c9cbfdbb8740e2dfb3f0af5645be978fbfbd
omx/gstomx.h
omx/gstomx.h
/* * Copyright (C) 2007-2008 Nokia Corporation. * * Author: Felipe Contreras <felipe.contreras@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation * version 2.1 of the Lic...
/* * Copyright (C) 2007-2008 Nokia Corporation. * * Author: Felipe Contreras <felipe.contreras@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation * version 2.1 of the Lic...
Update library name to new bellagio library.
Update library name to new bellagio library.
C
lgpl-2.1
mrchapp/gst-openmax-devel,felipec/gst-openmax,prajnashi/gst-openmax,matsu/gst-openmax,mrchapp/gst-openmax,mrchapp/gst-openmax,matsu/gst-openmax,mrchapp/gst-openmax,PPCDroid/external-gst-openmax,freedesktop-unofficial-mirror/gstreamer__attic__gst-openmax,mrchapp/gst-openmax-devel,PPCDroid/external-gst-openmax,freedeskto...
04b90bc00fc6ce8bc6c559e56220ceb77cdbccf6
test/Analysis/array-struct.c
test/Analysis/array-struct.c
// RUN: clang -checker-simple -verify %s // RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; int data_array[10]; }; typedef struct { int data; } STYPE; void f(void) { int a[10]; int (*p)[10]; p = &a; (*p)[3] = 1; struct s d; struct s *q; q = &d; q->data = 3; ...
// RUN: clang -checker-simple -verify %s // RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; int data_array[10]; }; typedef struct { int data; } STYPE; void g1(struct s* p); void f(void) { int a[10]; int (*p)[10]; p = &a; (*p)[3] = 1; struct s d; struct s *q; ...
Add function side-effect test cast.
Add function side-effect test cast. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58565 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
d9ff38b9506f42f468d03a48674ef0a227405351
net430/cpu.h
net430/cpu.h
#include "config.h" #include <msp430.h> void delayMs(uint16_t ms); static void cpu_init(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer /* Set proper CPU clock speed */ DCOCTL = 0; #if CPU_FREQ == 1 BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; #elif CPU_FREQ == 8 BCSCTL1 = CALBC1_8MHZ; DC...
#include "config.h" #include <msp430.h> #include <stdint.h> void delayMs(uint16_t ms); static void cpu_init(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer /* Set proper CPU clock speed */ DCOCTL = 0; #if CPU_FREQ == 1 BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; #elif CPU_FREQ == 8 BCSCTL1 =...
Include stdint to get uint16_t
Include stdint to get uint16_t
C
mit
xpgdk/net430,xpgdk/net430,xpgdk/net430
ea0ce2b6d9c1463be6038146063f016b489b54e4
plugin/devil/gvplugin_devil.c
plugin/devil/gvplugin_devil.c
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
Apply patch for C standards compliance: "All declarations that refer to the same object or function shall have compatible type; otherwise, the behavior is undefined." (That's from ISO/IEC 9899:TC2 final committee draft, section 6.2.7.)
Apply patch for C standards compliance: "All declarations that refer to the same object or function shall have compatible type; otherwise, the behavior is undefined." (That's from ISO/IEC 9899:TC2 final committee draft, section 6.2.7.) This doesn't trigger issues with most C implementations, but there is one im...
C
epl-1.0
kbrock/graphviz,kbrock/graphviz,jho1965us/graphviz,BMJHayward/graphviz,jho1965us/graphviz,kbrock/graphviz,tkelman/graphviz,kbrock/graphviz,pixelglow/graphviz,jho1965us/graphviz,MjAbuz/graphviz,kbrock/graphviz,kbrock/graphviz,pixelglow/graphviz,tkelman/graphviz,MjAbuz/graphviz,tkelman/graphviz,kbrock/graphviz,BMJHayward...
6eb5be81ca17bc64de0b856fde8f5a9a90757489
test/CodeGen/enum.c
test/CodeGen/enum.c
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -O3 -emit-llvm -o - | grep 'ret i32 6' // RUN: %clang_cc1 -triple i386-unknown-unknown -x c++ %s -O3 -emit-llvm -o - | grep 'ret i32 7' static enum { foo, bar = 1U } z; int main (void) { int r = 0; if (bar - 2 < 0) r += 4; if (foo - 1 < 0) r += 2; if...
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -O3 -emit-llvm -o - | grep 'ret i32 6' // RUN: %clang_cc1 -triple i386-unknown-unknown -x c++ %s -O3 -emit-llvm -o - | grep 'ret i32 7' // This test case illustrates a peculiarity of the promotion of // enumeration types in C and C++. In particular, the enumeration ty...
Comment a wacky test case
Comment a wacky test case git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@123758 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
bc000f3f8183954b8d013eeeed4af2e9d839735a
tests/homebrew-acceptance-test.c
tests/homebrew-acceptance-test.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, 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 * * ht...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, 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 * * ht...
Fix compile error with -Werror
Fix compile error with -Werror Change-Id: Ifac2f0b1c06534bc85bad5fe2b2594c4eb208dda Reviewed-on: http://review.couchbase.org/27387 Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com> Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>
C
apache-2.0
PureSwift/libcouchbase,kojiromike/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,maxim-ky/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,uvenum/libcouchbase,couchbase/libcouchbase,mody/libcouchbase,senthilkumaranb/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,maxim-ky/libcouchbase,couchbase/...
be4d546b9b4e23bb379282cb65e76944c80d1371
src/amx_profiler/profile_writer.h
src/amx_profiler/profile_writer.h
// AMX profiler for SA-MP server: http://sa-mp.com // // Copyright (C) 2011-2012 Sergey Zolotarev // // 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/l...
// AMX profiler for SA-MP server: http://sa-mp.com // // Copyright (C) 2011-2012 Sergey Zolotarev // // 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/l...
Remove useless forward declaration of FunctionInfo
Remove useless forward declaration of FunctionInfo
C
bsd-2-clause
Zeex/samp-plugin-profiler,Zeex/samp-plugin-profiler
b98f39c0e86e42242d93c7ca7d8e1ff55f5839fa
src/main.h
src/main.h
#pragma once #include <unistd.h> #include <iostream> #include <list> #include <map> #include <mutex> #include <unordered_map> #include <queue> #include <sstream> #include <set> #include <thread> #include <tuple> #include <vector>
#pragma once #include <unistd.h> #include <fstream> #include <iostream> #include <list> #include <map> #include <mutex> #include <unordered_map> #include <queue> #include <sstream> #include <set> #include <thread> #include <tuple> #include <vector>
Include fstream for file reading and such.
Include fstream for file reading and such.
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
cd1344fe322cd9d95b2c0f011d6766677cfcb29b
include/linux/gfs2_ioctl.h
include/linux/gfs2_ioctl.h
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
Remove unused ioctls and unused structure
[GFS2] Remove unused ioctls and unused structure Signed-off-by: David Teigland <cf7ba74ea50525d3d47fcd7a6d69b51121a9f873@redhat.com> Signed-off-by: Steven Whitehouse <9801c4ef11586b619a1c43ac9377eea2aee672dd@redhat.com>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program...
0b8792c05c59b3eb9dad6eb054618d8e9f7cacc7
lib/cmsis_rtos_v1/cmsis_kernel.c
lib/cmsis_rtos_v1/cmsis_kernel.c
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <kernel_structs.h> #include <cmsis_os.h> #include <ksched.h> extern const k_tid_t _main_thread; /** * @brief Get the RTOS kernel system timer counter */ uint32_t osKernelSysTick(void) { return k_cycle_get_32(); } /*...
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <kernel_structs.h> #include <cmsis_os.h> #include <ksched.h> extern const k_tid_t _main_thread; /** * @brief Get the RTOS kernel system timer counter */ uint32_t osKernelSysTick(void) { return k_cycle_get_32(); } /*...
Check if osKernelStart() is called from ISR
lib/cmsis_rtos_v1: Check if osKernelStart() is called from ISR Check if osKernelStart() is called from ISR and return error code appropriately. Signed-off-by: Spoorthi K <c4ff46ff4cba9c2c6c6c9d55497ae534451b4309@intel.com>
C
apache-2.0
explora26/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,Vudentz/zephyr,finikorg/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,punitvara/z...
f00035de368a5a8ed8bcb7c9eec06bedf1c5dfe3
include/utils.h
include/utils.h
#ifndef UTILS_H #define UTILS_H #include <curses.h> #include <stdint.h> void color_str(WINDOW *, uint32_t, uint32_t, int16_t, int16_t, const char *); void init_seed_srand(void); #endif /* UTILS_H */
#ifndef UTILS_H #define UTILS_H #include <curses.h> #include <stdint.h> #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) void color_str(WINDOW *, uint32_t, uint32_t, int16_t, int16_t, const char *); void init_seed_srand(void); #endif /* UTILS_H */
Add MIN and MAX macros.
Add MIN and MAX macros.
C
mit
svagionitis/gridNcurses,svagionitis/gridNcurses,svagionitis/gridNcurses
2af846e7114e98c2883061ffbd0e43adc24033d3
stmhal/boards/stm32f4xx_prefix.c
stmhal/boards/stm32f4xx_prefix.c
// stm32f4xx_prefix.c becomes the initial portion of the generated pins file. #include <stdio.h> #include "py/obj.h" #include "pin.h" #include MICROPY_HAL_H #define AF(af_idx, af_fn, af_unit, af_type, af_ptr) \ { \ { &pin_af_type }, \ .name = MP_QSTR_AF ## af_idx ## _ ## af_fn ## af_unit, \ .idx = (af_id...
// stm32f4xx_prefix.c becomes the initial portion of the generated pins file. #include <stdio.h> #include "py/obj.h" #include "pin.h" #include MICROPY_HAL_H #define AF(af_idx, af_fn, af_unit, af_type, af_ptr) \ { \ { &pin_af_type }, \ .name = MP_QSTR_AF ## af_idx ## _ ## af_fn ## af_unit, \ .idx = (af_id...
Fix alt function number calculation
stmhal/boards/stm32fxx_prefix.c: Fix alt function number calculation This prevented pin_find_af* functions from being able to find some of the alternate functions in the pin struct
C
mit
blmorris/micropython,matthewelse/micropython,pramasoul/micropython,feilongfl/micropython,ceramos/micropython,turbinenreiter/micropython,martinribelotta/micropython,MrSurly/micropython-esp32,stonegithubs/micropython,hiway/micropython,noahchense/micropython,rubencabrera/micropython,dmazzella/micropython,ahotam/micropytho...
45481b53b756642f2194ceef38d3c14f1f53d6a9
src/run_time_error.h
src/run_time_error.h
#ifndef SETI_EXCEPTION_H #define SETI_EXCEPTION_H #include <exception> #include <string> #include <boost/format.hpp> namespace setti { namespace internal { /** * @brief Class to represent an run time error * * This class encapsulates run time error, and it is * used to represent errors as symbol not found, * co...
#ifndef SETI_EXCEPTION_H #define SETI_EXCEPTION_H #include <exception> #include <string> #include <boost/format.hpp> namespace setti { namespace internal { /** * @brief Class to represent an run time error * * This class encapsulates run time error, and it is * used to represent errors as symbol not found, * co...
Fix run time error message
Fix run time error message
C
apache-2.0
alexst07/shell-plus-plus,alexst07/shell-plus-plus,alexst07/setti,alexst07/seti,alexst07/shell-plus-plus
d689f7a5313a7fd501c2572c493fe6d91a88cba4
src/gpu/effects/GrProxyMove.h
src/gpu/effects/GrProxyMove.h
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrProxyMove_DEFINED #define GrProxyMove_DEFINED // In a few places below we rely on braced initialization order being defined by the C++ spec (left // to right). We u...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrProxyMove_DEFINED #define GrProxyMove_DEFINED // In a few places below we rely on braced initialization order being defined by the C++ spec (left // to right). We u...
Work around Win/Clang eval order bug
GR_PROXY_MOVE: Work around Win/Clang eval order bug BUG=chromium:687259 Change-Id: I145dac240a3c4f89cf1b6bf6ff54ba73cd110ebf Reviewed-on: https://skia-review.googlesource.com/7831 Reviewed-by: Hans Wennborg <a07172e79c6f961ccb614746feeee38b5e9a6399@google.com> Reviewed-by: Brian Salomon <61fabaaf0876044aeedfd8e351e48...
C
bsd-3-clause
HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,google/skia,rubenvb/skia,aosp-...
48469ae6496b244da1215b5a0d9941ed1bb6ee71
headers/graphics.h
headers/graphics.h
typedef struct { long double r; long double b; long double g; long double a; } cgColor; unsigned int framebuffer_h; unsigned int framebuffer_v; cgColor ** framebuffer; void init_framebuffer(unsigned int h, unsigned int v);
typedef struct { long double r; long double g; long double b; long double a; } cgColor; unsigned int framebuffer_h; unsigned int framebuffer_v; cgColor ** framebuffer; void init_framebuffer(unsigned int h, unsigned int v);
Fix mistype in color structure
Fix mistype in color structure
C
mit
hleon12/RayTracing-Engine,hleonps/Prisma-RayTracer,hleon12/RayTracing-Engine,hleonps/Prisma-RayTracer
b0a445b9ced67a104890053624bcfeb11b804df2
TPCocoaGPG/TPGPGOutputChunk.h
TPCocoaGPG/TPGPGOutputChunk.h
// // TPGPGOutputChunk.h // TPCocoaGPG // // Created by Thomas Pelletier on 10/23/14. // Copyright (c) 2014 Thomas Pelletier. See LICENSE. // #import <Foundation/Foundation.h> @interface TPGPGOutputChunk : NSObject { NSString* _key; NSString* _text; } + (TPGPGOutputChunk*)makeWithKey:(NSString*)key andText:(...
// // TPGPGOutputChunk.h // TPCocoaGPG // // Created by Thomas Pelletier on 10/23/14. // Copyright (c) 2014 Thomas Pelletier. See LICENSE. // #import <Foundation/Foundation.h> /** Internal representation of GPG's parsed standard error. */ @interface TPGPGOutputChunk : NSObject { NSString* _key; NSString* _t...
Add some doc for output chunk
Add some doc for output chunk
C
mit
pelletier/TPCocoaGPG
b85b36e461985e3732e346d850e69f9e28135044
include/types.h
include/types.h
#ifndef TYPES_H #define TYPES_H // Explicitly-sized versions of integer types typedef __signed char int8_t; typedef unsigned char uint8_t; typedef short int16_t; typedef unsigned short uint16_t; typedef int int32_t; typedef unsigned int uint32_t; typedef long long int64_t; typedef unsigned long long uint64_t; // size...
#ifndef TYPES_H #define TYPES_H // Explicitly-sized versions of integer types typedef __signed char int8_t; typedef unsigned char uint8_t; typedef short int16_t; typedef unsigned short uint16_t; typedef int int32_t; typedef unsigned int uint32_t; typedef long long int64_t; typedef unsigned long long uint64_t; typedef...
Define bool type together with true/false
Define bool type together with true/false
C
mit
dutra/x86_kernel,dutra/x86_kernel
faf0b8c401c31419a11cd8bbc640340f2c6d52da
lib/Target/X86/X86InstrBuilder.h
lib/Target/X86/X86InstrBuilder.h
//===-- X86InstrBuilder.h - Functions to aid building x86 insts -*- C++ -*-===// // // This file exposes functions that may be used with BuildMI from the // MachineInstrBuilder.h file to handle X86'isms in a clean way. // // The BuildMem function may be used with the BuildMI function to add entire // memory references ...
//===-- X86InstrBuilder.h - Functions to aid building x86 insts -*- C++ -*-===// // // This file exposes functions that may be used with BuildMI from the // MachineInstrBuilder.h file to handle X86'isms in a clean way. // // The BuildMem function may be used with the BuildMI function to add entire // memory references ...
Add a simple way to add memory locations of format
Add a simple way to add memory locations of format [reg+offset] git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@4825 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/ll...
0f3348ab04b96d4798b19afc04323c55204fbebd
include/varcache.h
include/varcache.h
#define VAR_ENCODING_LEN 16 #define VAR_DATESTYLE_LEN 16 #define VAR_TIMEZONE_LEN 36 #define VAR_STDSTR_LEN 4 typedef struct VarCache VarCache; struct VarCache { char client_encoding[VAR_ENCODING_LEN]; char datestyle[VAR_DATESTYLE_LEN]; char timezone[VAR_TIMEZONE_LEN]; char std_strings[VAR_STDSTR_LEN]; }; bool...
#define VAR_ENCODING_LEN 16 #define VAR_DATESTYLE_LEN 32 #define VAR_TIMEZONE_LEN 36 #define VAR_STDSTR_LEN 4 typedef struct VarCache VarCache; struct VarCache { char client_encoding[VAR_ENCODING_LEN]; char datestyle[VAR_DATESTYLE_LEN]; char timezone[VAR_TIMEZONE_LEN]; char std_strings[VAR_STDSTR_LEN]; }; bool...
Increase room for DateStyle storage.
Increase room for DateStyle storage. If value is larger than buffer, it stays empty and libpq will drop connection.
C
isc
kvap/pgbouncer,kvap/pgbouncer,wurenny/pgbouncer-x2,dbaxa/pgbouncer,digoal/pgbouncer-x2,jaiminpan/pgbouncer,dbaxa/pgbouncer,wurenny/pgbouncer-x2,kvap/pgbouncer,wurenny/pgbouncer-x2,jaiminpan/pgbouncer,digoal/pgbouncer-x2,digoal/pgbouncer-x2,wurenny/pgbouncer-x2,jaiminpan/pgbouncer,dbaxa/pgbouncer,dbaxa/pgbouncer,jaiminp...
cea64f7221398e71fcbcc60e0572a7bc7594a1c2
main.c
main.c
#include "tour.h" #define NCITIES 5 int main() { tour t = create_tour(NCITIES); int i; for (i = 0; i < NCITIES; i++) { printf("%d\n", t[i]); } printf("Hello!"); return 0; }
#include "tour.h" #define NCITIES 5 #define STARTPOINT 2 int main() { tour t = create_tour(NCITIES); populate_tour(t, NCITIES); start_point(t, STARTPOINT); swap_cities(t, 3, 4); int i; for (i = 0; i < NCITIES; i++) { printf("%d\n", t[i]); } printf("Hello!\n"); return 0; }
Test all functions from tour.h.
Test all functions from tour.h.
C
apache-2.0
frila/caixeiro
0143ac1ab6d2a5e9194ba73a3c61b0514f66ea50
tiledb/sm/c_api/tiledb_version.h
tiledb/sm/c_api/tiledb_version.h
/* * @file version.h * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2020 TileDB, Inc. * * 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 restri...
/* * @file version.h * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2020 TileDB, Inc. * * 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 restri...
Update tiledb version to 1.8.0 for dev
Update tiledb version to 1.8.0 for dev
C
mit
TileDB-Inc/TileDB,TileDB-Inc/TileDB,TileDB-Inc/TileDB,TileDB-Inc/TileDB
4d157e3b8762ecb49b191cc33762bb1d7e71a8f3
user/robot/umain.c
user/robot/umain.c
#include <joyos.h> #include "platform.h" #include "navigation.h" extern volatile uint8_t robot_id; int usetup (void) { robot_id = 7; platform_init(); nav_init(); return 0; } int umain (void) { printf("Hello, world!\n"); nav_start(); printf("Nav started, setting coords\n"); ...
#include <joyos.h> #include "platform.h" #include "navigation.h" extern volatile uint8_t robot_id; int usetup(void) { robot_id = 7; platform_init(); nav_init(); return 0; } int umain(void) { printf("Hello, world!\n"); nav_start(); printf("Nav started, setting coords\n"); ...
Add VPS target seeking code.
Add VPS target seeking code.
C
mit
mboyd/6.270,mboyd/6.270
906fc80d89f2487c7f3588cf4495ba368f8d3bf4
game.h
game.h
#ifndef GAME_H #define GAME_H #include <stdint.h> #define SPACING 5 #define FONT "cairo:monospace" #define FONT_SIZE 12 #define TILE_SIZE (FONT_SIZE * 4) #define GRID_WIDTH 4 #define GRID_HEIGHT 4 #define GRID_SIZE (GRID_WIDTH * GRID_HEIGHT) #define BOARD_WIDTH (SPACING + TILE_SIZE * GRID_WIDTH + SPACIN...
#ifndef GAME_H #define GAME_H #include <stdint.h> #define FONT "cairo:monospace" #define FONT_SIZE 20 #define SPACING (FONT_SIZE * 0.4) #define TILE_SIZE (FONT_SIZE * 4) #define GRID_WIDTH 4 #define GRID_HEIGHT 4 #define GRID_SIZE (GRID_WIDTH * GRID_HEIGHT) #define BOARD_WIDTH (SPACING + TILE_SIZE * GRID_...
Make spacing depend on font size
Make spacing depend on font size
C
unlicense
libretro/libretro-2048,libretro/libretro-2048,libretro/libretro-2048,libretro/libretro-2048
85546d7ec827b7b0ff822cc86644c1b081142e53
arch/mips/include/asm/clock.h
arch/mips/include/asm/clock.h
#ifndef __ASM_MIPS_CLOCK_H #define __ASM_MIPS_CLOCK_H #include <linux/kref.h> #include <linux/list.h> #include <linux/seq_file.h> #include <linux/clk.h> struct clk; struct clk_ops { void (*init) (struct clk *clk); void (*enable) (struct clk *clk); void (*disable) (struct clk *clk); void (*recalc) (struct clk *cl...
#ifndef __ASM_MIPS_CLOCK_H #define __ASM_MIPS_CLOCK_H #include <linux/kref.h> #include <linux/list.h> #include <linux/seq_file.h> #include <linux/clk.h> struct clk; struct clk_ops { void (*init) (struct clk *clk); void (*enable) (struct clk *clk); void (*disable) (struct clk *clk); void (*recalc) (struct clk *cl...
Remove declaration of obsolete arch_init_clk_ops()
MIPS: Remove declaration of obsolete arch_init_clk_ops() Signed-off-by: Maarten ter Huurne <e186a7d2c4e55136cd884424bcfb439491001dc6@treewalker.org> Cc: Apelete Seketeli <5513108e721878f07bfb2a30cd534488c7df106c@seketeli.net> Cc: 562397917b9a8bf316569a848858b12fb417723f@linux-mips.org Cc: 2578944098299abf708b08eff6fcf...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
a3c96c925229909535e81c7596e03b66af328a4d
pic16bit/qstrdefsport.h
pic16bit/qstrdefsport.h
// qstrs specific to this port Q(pyb) Q(millis) Q(elapsed_millis) Q(delay) Q(LED) Q(on) Q(off) Q(toggle) Q(Switch) Q(value) Q(readall) Q(readline) Q(FileIO)
// qstrs specific to this port Q(pyb) Q(millis) Q(elapsed_millis) Q(delay) Q(LED) Q(on) Q(off) Q(toggle) Q(Switch) Q(value) Q(readall) Q(readinto) Q(readline) Q(readlines) Q(FileIO)
Add readinto and readlines to qstrs.
pic16bit: Add readinto and readlines to qstrs.
C
mit
ericsnowcurrently/micropython,pfalcon/micropython,PappaPeppar/micropython,lbattraw/micropython,torwag/micropython,jlillest/micropython,ceramos/micropython,mpalomer/micropython,slzatz/micropython,kostyll/micropython,turbinenreiter/micropython,chrisdearman/micropython,alex-march/micropython,cloudformdesign/micropython,su...
e647bbbc7692766c7c0226335f46a3f1ecd25ea4
tensorflow/lite/ios/TensorFlowLiteC.h
tensorflow/lite/ios/TensorFlowLiteC.h
/* Copyright 2022 The TensorFlow Authors. 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 a...
/* Copyright 2022 The TensorFlow Authors. 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 a...
Fix iOS nightly release breakage.
Fix iOS nightly release breakage. Error: c_api_experimental.h: unknown type name 'TfLiteInterpreter', 'TfLiteModel', 'TfLiteInterpreterOptions' ... PiperOrigin-RevId: 477562262
C
apache-2.0
paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorf...
e2496a13ddc1c1c422098fbe0ef0f636767da6e2
polygonOptimizer.h
polygonOptimizer.h
#ifndef POLYGON_OPTIMIZER_H #define POLYGON_OPTIMIZER_H void optimizePolygon(ClipperLib::Polygon& poly) { Point p0 = poly[poly.size()-1]; for(unsigned int i=0;i<poly.size();i++) { Point p1 = poly[i]; if (shorterThen(p0 - p1, 10)) { poly.erase(poly.begin() + i)...
#ifndef POLYGON_OPTIMIZER_H #define POLYGON_OPTIMIZER_H void optimizePolygon(ClipperLib::Polygon& poly) { Point p0 = poly[poly.size()-1]; for(unsigned int i=0;i<poly.size();i++) { Point p1 = poly[i]; if (shorterThen(p0 - p1, 10)) { poly.erase(poly.begin() + i)...
Remove empty polygons after optimizing.
Remove empty polygons after optimizing.
C
agpl-3.0
patrick3coffee/CuraTinyG,pratikshashroff/pcura,mspark93/CuraEngine,jacobdai/CuraEngine-1,ROBO3D/CuraEngine,foosel/CuraEngine,totalretribution/CuraEngine,electrocbd/CuraEngine,totalretribution/CuraEngine,uus169/CuraEngine,Jwis921/PersonalCuraEngine,uus169/CuraEngine,robotustra/curax,foosel/CuraEngine,markwal/CuraEngine,...
3cf557a7440a77e72b4b43689a9a5071c2080aa1
atomic.h
atomic.h
#ifndef ATOMIC_H #define ATOMIC_H #include "fibrili.h" #define atomic_fence() fibrili_fence() #define atomic_lock(lock) fibrili_lock(lock) #define atomic_unlock(lock) fibrili_unlock(lock) #endif /* end of include guard: ATOMIC_H */
#ifndef ATOMIC_H #define ATOMIC_H #include "fibrili.h" #define atomic_fence() fibrili_fence() #define atomic_lock(lock) fibrili_lock(lock) #define atomic_unlock(lock) fibrili_unlock(lock) #define atomic_load(val) __atomic_load_n(&(val), __ATOMIC_ACQUIRE) #define atomic_fadd(val, n) __atomic_fetch_add(&(val), n, __ATO...
Add barrier, fadd, and load.
Add barrier, fadd, and load.
C
mit
chaoran/fibril,chaoran/fibril,chaoran/fibril
a7aae9bd5cbe82218bc61cdd00860272732e3dec
Classes/CoreFactoryGentleman/CoreFactoryGentleman.h
Classes/CoreFactoryGentleman/CoreFactoryGentleman.h
#import <CoreData/CoreData.h> #import <FactoryGentleman/FactoryGentleman.h> #import "CFGFactoryDefiner.h" #import "CFGObjectBuilder.h"
#import <CoreData/CoreData.h> #import <FactoryGentleman/FactoryGentleman.h> #import "CFGCoreFactoryGentleman.h" #import "CFGFactoryDefiner.h" #import "CFGObjectBuilder.h"
Add functionality to bootstrap header
Add functionality to bootstrap header
C
mit
FactoryGentleman/CoreFactoryGentleman,soundcloud/CoreFactoryGentleman
b6155d3162f6da3dc8f0f1a5daa8decc73904763
libc/sysdeps/linux/or32/bits/kernel_types.h
libc/sysdeps/linux/or32/bits/kernel_types.h
/* taken from linux/include/asm-or32/posix_types.h */ /* * Using the same guard as posix_types.h from linux headers * enssures the uclibc (this) version is beeing used. */ #if ! defined _OR32_POSIX_TYPES_H #define _OR32_POSIX_TYPES_H /* * This file is generally used by user-level software, so you need to * be a...
#include <asm/posix_types.h>
Use generic posix_types from Linux kernel
Use generic posix_types from Linux kernel The kernel headers asm/posix_types.h and asm-generic/posix_types.h are made to be included directly into libc, and doing so saves us the effort of having to keep these files in sync.
C
lgpl-2.1
skristiansson/uClibc-or1k,skristiansson/uClibc-or1k,skristiansson/uClibc-or1k,skristiansson/uClibc-or1k
42afa0c5d2e3cfac5535d218027c05eb742b1383
csrc/woff2/port.h
csrc/woff2/port.h
// Copyright 2013 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...
// Copyright 2013 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...
Include assert.h explicitly to fix windows build
Include assert.h explicitly to fix windows build Fixes the error: C3861: 'assert': identifier not found
C
mit
nfroidure/ttf2woff2,nfroidure/ttf2woff2,nfroidure/ttf2woff2,nfroidure/ttf2woff2
32dc512baba57ac6c23de8f6bac7112e34ef0590
runtime/include/comm/chpl-comm-task-decls.h
runtime/include/comm/chpl-comm-task-decls.h
// This is the last-resort version of this file. It will be used only // if the comm layer implementation does not supply one. #ifndef _chpl_comm_task_decls_h #define _chpl_comm_task_decls_h // Define the type of a n.b. communications handle. typedef void* chpl_comm_nb_handle_t; typedef struct { } chpl_comm_taskPrv...
// This is the last-resort version of this file. It will be used only // if the comm layer implementation does not supply one. #ifndef _chpl_comm_task_decls_h #define _chpl_comm_task_decls_h // Define the type of a n.b. communications handle. typedef void* chpl_comm_nb_handle_t; typedef struct { int dummy; // ...
Make an empty struct nonempty.
Make an empty struct nonempty. In r23405 we added a component of the task private data to hold comm layer information. This is chpl_comm_taskPrvData_t, a struct typt. For comm=none we don't need any comm layer info, so we made the struct type empty. Unfortunately empty struct types aren't legal C (c99 standard, 6.2...
C
apache-2.0
sungeunchoi/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCar...
88756c39fb6ffe464e05fbc1e0227fe8cf78b1a5
lib/smurff-cpp/SmurffCpp/StatusItem.h
lib/smurff-cpp/SmurffCpp/StatusItem.h
#pragma once #include <string> namespace smurff { struct StatusItem { std::string phase; int iter; int phase_iter; std::vector<double> model_norms; double rmse_avg; double rmse_1sample; double train_rmse; double auc_1sample; double auc_avg; double elapsed_iter; double ...
Allow printing of status after step
Allow printing of status after step
C
mit
ExaScience/smurff,ExaScience/smurff,ExaScience/smurff,ExaScience/smurff,ExaScience/smurff,ExaScience/smurff
c804b5c55d42fcdc645dd81014d6bef253bd9f39
iobuf/iobuf_init.c
iobuf/iobuf_init.c
#include <stdlib.h> #include <string.h> #include <sys/mman.h> #include "iobuf.h" unsigned iobuf_bufsize = 8192; int iobuf_init(iobuf* io, int fd, unsigned bufsize, char* buffer, unsigned flags) { memset(io, 0, sizeof *io); if (!bufsize) bufsize = iobuf_bufsize; if (!buffer) { if ((buffer = mmap(0, bufsize, ...
#include <sys/types.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include "iobuf.h" unsigned iobuf_bufsize = 8192; #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif int iobuf_init(iobuf* io, int fd, unsigned bufsize, char* buffer, unsigned flags) { memset(io, 0, sizeof *io); if (!bu...
Use MAP_ANON if MAP_ANONYMOUS is not defined.
Use MAP_ANON if MAP_ANONYMOUS is not defined.
C
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
f4189d1b617bffab365be9fa433a67852382d5e5
examples/sensors/ds18b20/bsp430_config.h
examples/sensors/ds18b20/bsp430_config.h
/* Use a crystal if one is installed. Much more accurate timing * results. */ #define BSP430_PLATFORM_BOOT_CONFIGURE_LFXT1 1 /* Application does output: support spin-for-jumper */ #ifndef configBSP430_PLATFORM_SPIN_FOR_JUMPER #define configBSP430_PLATFORM_SPIN_FOR_JUMPER 1 #endif /* configBSP430_PLATFORM_SPIN_FOR_JU...
/* Use a crystal if one is installed. Much more accurate timing * results. */ #define BSP430_PLATFORM_BOOT_CONFIGURE_LFXT1 1 /* Application does output: support spin-for-jumper */ #ifndef configBSP430_PLATFORM_SPIN_FOR_JUMPER #define configBSP430_PLATFORM_SPIN_FOR_JUMPER 1 #endif /* configBSP430_PLATFORM_SPIN_FOR_JU...
Support SuRF on-board DS1825 in ds18b20 demo
Support SuRF on-board DS1825 in ds18b20 demo
C
bsd-3-clause
pabigot/bsp430,pabigot/bsp430,pabigot/bsp430,pabigot/bsp430
014e6504992271d144324e1fe8600c18ba84ebe7
nrf5/boards/pca10001/nrf51_hal_conf.h
nrf5/boards/pca10001/nrf51_hal_conf.h
#ifndef NRF51_HAL_CONF_H__ #define NRF51_HAL_CONF_H__ #define HAL_UART_MODULE_ENABLED #define HAL_SPI_MODULE_ENABLED #define HAL_TIME_MODULE_ENABLED #endif // NRF51_HAL_CONF_H__
#ifndef NRF51_HAL_CONF_H__ #define NRF51_HAL_CONF_H__ #define HAL_UART_MODULE_ENABLED // #define HAL_SPI_MODULE_ENABLED #define HAL_TIME_MODULE_ENABLED #endif // NRF51_HAL_CONF_H__
Disable SPI hal from pca10001 board.
nrf5/boards: Disable SPI hal from pca10001 board.
C
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/micropython,adafruit/circuitpython,adafruit/circuitpython,tralamazza/micropython,adafruit/micropython,adafruit/circuitpython,tralamazza/micropython,adafruit/circuitpython,adafruit/micropython,adafruit/micropython,tralamazza/micropython,adafruit/micropython,tralamaz...
5de3f975f46103e730e35a92323f9cdb15b13c9d
bot/src/plugins/tracredir.c
bot/src/plugins/tracredir.c
/* * This file is part of the beirdobot package * Copyright (C) 2012 Raymond Wagner * * This plugin uses code gratuitously stolen from the 'fart' plugin. * See that for any real licensing information. */ /*HEADER--------------------------------------------------- * $Id$ * * Copyright 2012 Raymond Wagner * ...
Add a new trac redirect plugin
Add a new trac redirect plugin At this time, it is specific to mythtv use, but it can easily be extended to use different urls per channel. Minor changes were made to make it function properly. Thank you, Raymond.
C
lgpl-2.1
Beirdo/beirdobot,Beirdo/beirdobot,Beirdo/beirdobot,Beirdo/beirdobot,Beirdo/beirdobot,Beirdo/beirdobot,Beirdo/beirdobot,Beirdo/beirdobot
92ef198213e7e5881877be5d79516046cc1e59b5
example1/Example1.h
example1/Example1.h
/* * Copyright (C) Sometrik oy 2015 * */ #include <FWContextBase.h> #include <AndroidPlatform.h> class Example1 : public FWContextBase { public: Example1(AndroidPlatform * _platform) : FWContextBase(_platform), platform(_platform) { } bool Init(); void onDraw(); void onShutdown(); private: AndroidPla...
/* * Copyright (C) Sometrik oy 2015 * */ #include <FWContextBase.h> #include <FWPlatformBase.h> class Example1 : public FWContextBase { public: Example1(FWPlatformBase * _platform) : FWContextBase(_platform), platform(_platform) { } bool Init(); void onDraw(); void onShutdown(); private: FWPlatformBa...
Change AndroidPlatform variables to FWPlatformBase, switch include
Change AndroidPlatform variables to FWPlatformBase, switch include
C
mit
Sometrik/framework,Sometrik/framework,Sometrik/framework
b3e4a879a534add27e8435b11628d4d79d706434
libc/sysdeps/linux/m68k/ptrace.c
libc/sysdeps/linux/m68k/ptrace.c
#include <errno.h> #include <asm/ptrace.h> #include <sys/syscall.h> int ptrace(int request, int pid, int addr, int data) { long ret; long res; if (request > 0 && request < 4) (long *)data = &ret; __asm__ volatile ("movel %1,%/d0\n\t" "movel %2,%/d1\n\t" "movel %3,%/d2\n\t" "movel %4,%/d3\n\t" ...
#include <errno.h> #include <asm/ptrace.h> #include <sys/syscall.h> int ptrace(int request, int pid, int addr, int data) { long ret; long res; if (request > 0 && request < 4) data = (int)&ret; __asm__ volatile ("movel %1,%/d0\n\t" "movel %2,%/d1\n\t" "movel %3,%/d2\n\t" "movel %4,%/d3\n\t" "...
Patch from Bernardo Innocenti: Remove use of cast-as-l-value extension, removed in GCC 3.5.
Patch from Bernardo Innocenti: Remove use of cast-as-l-value extension, removed in GCC 3.5.
C
lgpl-2.1
kraj/uClibc,ysat0/uClibc,majek/uclibc-vx32,atgreen/uClibc-moxie,ffainelli/uClibc,skristiansson/uClibc-or1k,ddcc/klee-uclibc-0.9.33.2,groundwater/uClibc,skristiansson/uClibc-or1k,wbx-github/uclibc-ng,ChickenRunjyd/klee-uclibc,hjl-tools/uClibc,OpenInkpot-archive/iplinux-uclibc,ysat0/uClibc,czankel/xtensa-uclibc,kraj/uCli...
91bbb7ce560f5915715b750baa858501f505d988
cmd/smyrna/gui/topviewsettings.c
cmd/smyrna/gui/topviewsettings.c
#include "topviewsettings.h" #include "gui.h" void on_settingsOKBtn_clicked (GtkWidget *widget,gpointer user_data) { } void on_settingsCancelBtn_clicked (GtkWidget *widget,gpointer user_data) { } int load_settings_from_graph(Agraph_t *g) { return 1; } int update_graph_from_settings(Agraph_t *g) { return 1; } ...
/* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c) 1994-2004 AT&T Corp...
Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings
Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings
C
epl-1.0
tkelman/graphviz,jho1965us/graphviz,pixelglow/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,ellson/graphviz,pixelglow/graphviz,BMJHayward/graphviz,ellson/graphviz,jho1965us/graphviz,MjAbuz/graphviz,ellson/graphviz,jho1965us/graphviz,kbrock/graphviz,tkelman/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,pixelglow/graph...
c1a36603d5e603828cdae9068987cc58e625fc3b
arduino/OpenROV/Settings.h
arduino/OpenROV/Settings.h
#ifndef __SETTINGS_H_ #define __SETTINGS_H_ #include <Arduino.h> #include "Device.h" // This section is for devices and their configuration //Kit: #define HAS_STD_LIGHTS (1) #define LIGHTS_PIN 5 #define HAS_STD_CAPE (1) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_PILOT (1) #define HAS_STD_CAMERAMOUNT (1) #defin...
#ifndef __SETTINGS_H_ #define __SETTINGS_H_ #include <Arduino.h> #include "Device.h" // This section is for devices and their configuration //Kit: #define HAS_STD_LIGHTS (1) #define LIGHTS_PIN 5 #define HAS_STD_CAPE (1) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_PILOT (1) #define HAS_STD_CAMERAMOUNT (1) #defin...
Reset default settings to stock kit configuration
Reset default settings to stock kit configuration
C
mit
codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software
63b7048e85bb947d1ef2cdd2f6a1fd6c436509c9
src/grid.c
src/grid.c
#include <string.h> #include "window.h" #include "grid.h" #include "utils.h" extern window_settings_t win_set; void print_grid(WINDOW *win) { getmaxyx(win, win_set.maxGridHeight, win_set.maxGridWidth); // If the grid is larger than the maximum height // or width, then set it to max height or width if...
#include <string.h> #include "window.h" #include "grid.h" #include "utils.h" extern window_settings_t win_set; void print_grid(WINDOW *win) { getmaxyx(win, win_set.maxGridHeight, win_set.maxGridWidth); // If the grid is larger than the maximum height // or width, then set it to max height or width if...
Change print symbol from O to +.
Change print symbol from O to +.
C
mit
svagionitis/gridNcurses,svagionitis/gridNcurses,svagionitis/gridNcurses
36d168bf9dc874df19c90dccc2611b5ecf6343be
obexd/plugins/messages-tracker.c
obexd/plugins/messages-tracker.c
/* * * OBEX Server * * Copyright (C) 2010-2011 Nokia Corporation * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
Add tracker backend stump for MAP
obexd: Add tracker backend stump for MAP
C
lgpl-2.1
silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,silent-snowman/bluez,pkarasev3/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,mapfau/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,silent-snowman/bluez,pkarasev3/...
6f2ab9593f143abb6b517ad89da37fe9d3c5d209
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 *forward = calloc(sizeof(char), sizeof(char) * MAX); char *backward = calloc(sizeof(char), sizeof(char) * MAX); size_t int_len; int high = 0; for (int x=100; x < 10...
#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 = ...
Improve loop (avg. from ~0.15 to ~0.07)
Improve loop (avg. from ~0.15 to ~0.07)
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
fae7949017389ee7c127883fdfcd3672f98e2fc3
event/timeout_queue.h
event/timeout_queue.h
#ifndef TIMEOUT_QUEUE_H #define TIMEOUT_QUEUE_H #include <map> class TimeoutQueue { typedef std::map<NanoTime, CallbackQueue> timeout_map_t; LogHandle log_; timeout_map_t timeout_queue_; public: TimeoutQueue(void) : log_("/event/timeout/queue"), timeout_queue_() { } ~TimeoutQueue() { } bool empty(void)...
#ifndef TIMEOUT_QUEUE_H #define TIMEOUT_QUEUE_H #include <map> #include <common/time/time.h> class TimeoutQueue { typedef std::map<NanoTime, CallbackQueue> timeout_map_t; LogHandle log_; timeout_map_t timeout_queue_; public: TimeoutQueue(void) : log_("/event/timeout/queue"), timeout_queue_() { } ~Timeout...
Use new NanoTime location header, oops.
Use new NanoTime location header, oops.
C
bsd-2-clause
wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy
5d02ce6786c9b7bd1f434826c4929b4233b5ae58
readline.h
readline.h
#ifndef READLINE_FALLBACK_H #define READLINE_FALLBACK_H #include <stdio.h> #include <string.h> char* readline(const char * prompt) { char *result = malloc(1); size_t n = 0; printf("%s", prompt); getline(&result, &n, stdin); result[strlen(result)-1] = 0; return result; } #endif /* READLINE_FAL...
#ifndef READLINE_FALLBACK_H #define READLINE_FALLBACK_H #include <stdio.h> #include <string.h> char* readline(const char * prompt) { char *result = malloc(1024); printf("%s", prompt); fgets(result, 1023, stdin); result[strlen(result)-1] = 0; return result; } #endif /* READLINE_FALLBACK_H */
Use fgets(3) instead of getline(3) because whilst getline(3) is POSIX, it is not in the C89 or later standards
Use fgets(3) instead of getline(3) because whilst getline(3) is POSIX, it is not in the C89 or later standards
C
isc
lucasad/base-conv
b7b27486d7066853dcf0fa325dd2d542167bb042
src/lib/fmt/fmt_escapecharxml.c
src/lib/fmt/fmt_escapecharxml.c
#include "fmt.h" size_t fmt_escapecharxml(char* dest,uint32_t ch) { char a[FMT_LONG], b[FMT_XLONG]; const char* s; size_t i,j; switch (ch) { case '&': s="&amp;"; goto string; case '<': s="&lt;"; goto string; case '>': s="&gt;"; goto string; case '\'': s="&apos;"; goto string; case '"': s="&quot;"; go...
#include "fmt.h" size_t fmt_escapecharxml(char* dest,uint32_t ch) { char a[FMT_LONG], b[FMT_XLONG]; const char* s; size_t i,j; switch (ch) { case '&': s="&amp;"; goto string; case '<': s="&lt;"; goto string; case '>': s="&gt;"; goto string; case '\'': s="&apos;"; goto string; case '"': s="&quot;"; go...
Choose only gcc to execute a specific portion of code
fmt: Choose only gcc to execute a specific portion of code The specific portion of the code needs to be executed by a gcc compiler, for that reason is used the __GNUC__ macro. It appears, that the LLVM compiler, which uses the __llvm__ macro, uses as well the __GNUC__ macro (possible for compatibility???). This chang...
C
mit
svagionitis/cross-platform-code,svagionitis/cross-platform-code
3c2384671496172cdacf53854592ff689cfbb044
src/swganh/scripting/python_shared_ptr.h
src/swganh/scripting/python_shared_ptr.h
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once #include <memory> namespace boost { template<class T> const T* get_pointer(const std::shared_ptr<T>& ptr) { return ptr.get(); } template<class T> T* get_...
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once #include <memory> //namespace boost { // template<class T> const T* get_pointer(const std::shared_ptr<T>& ptr) // { // return ptr.get(); // } // // template<cl...
Boost now supports std::unique_ptr/std::shared_ptr for python
Boost now supports std::unique_ptr/std::shared_ptr for python
C
mit
anhstudios/swganh,anhstudios/swganh,anhstudios/swganh
44bd63e4db6ac33a03b14da1a2b6e932f2947a35
kilo.c
kilo.c
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disable_raw_mode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enable_raw_mode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disable_raw_mode); struct termios...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disable_raw_mode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enable_raw_mode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disable_raw_mode); struct termios...
Add a timeout for read()
Add a timeout for read() Set VMIN to 0 so read() returns as soon as there is any input to be read. Set VTIME to 1 so the wait time of read() is 100 milliseconds.
C
bsd-2-clause
oldsharp/kilo,oldsharp/kilo
c8f07441b641c3aa288ce6d8aa59eff4ab3332e6
main.c
main.c
/* The contents of this file is in the public domain. */ #include <ipify.h> #include <string.h> #include <sys/socket.h> int main(int argc, char *argv[]) { int family = AF_UNSPEC; char addr[256]; int i, sd; for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-h")) { printf("ipify [-46h]\n"); return 0; } ...
/* The contents of this file is in the public domain. */ #include <ipify.h> #include <string.h> #include <sys/socket.h> int main(int argc, char *argv[]) { int family = AF_UNSPEC; char addr[256]; char *host; int i, sd; for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-h")) { printf("ipify [-46h] [HOST]\n")...
Use new API and expose optional host argument
Use new API and expose optional host argument Signed-off-by: Joachim Wiberg <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>
C
isc
troglobit/lipify
aea67ce8c8998f99adb9d1d8d70295da6122a13a
libcpu/platform.h
libcpu/platform.h
#if defined(_WIN32) # define __LITTLE_ENDIAN__ 1 # ifdef _M_IX86 # define __i386__ 1 # endif # ifdef _M_X64 # define __x86_64__ 1 # endif # if defined(_MSC_VER) # define snprintf _snprintf # define strtoull _strtoui64 # define __func__ __FUNCT...
#if defined(_WIN32) # define __LITTLE_ENDIAN__ 1 # ifdef _M_IX86 # define __i386__ 1 # endif # ifdef _M_X64 # define __x86_64__ 1 # endif # if defined(_MSC_VER) # define snprintf _snprintf # define strtoull _strtoui64 # define __func__ __FUNCTI...
Remove a Windows line-ending that was accidentally included
Remove a Windows line-ending that was accidentally included
C
bsd-2-clause
monocasa/libcpu,ukatemi/libcpu,glguida/libcpu,curtiszimmerman/libcpu,ukatemi/libcpu,libcpu/libcpu,curtiszimmerman/libcpu,libcpu/libcpu,glguida/libcpu,monocasa/libcpu,ukatemi/libcpu,curtiszimmerman/libcpu,glguida/libcpu,monocasa/libcpu,libcpu/libcpu,glguida/libcpu,libcpu/libcpu,monocasa/libcpu,curtiszimmerman/libcpu,uka...
0daebd485c02840729740949caa429efd5cf0153
ghighlighter/main-window.c
ghighlighter/main-window.c
#include <gtk/gtk.h> GtkWidget * main_window_create() { GtkWidget *window; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(window), "ghighlighter"); g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); return window; }
#include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> #include <glib.h> static void main_window_destroy(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType modifier, gpointer user_data) { gtk_widget_destroy(GTK_WIDGET(user_data)); } void main_window_bind_keys(GtkWidget *window) { GtkAccelGr...
Destroy main window on Ctrl+q
Destroy main window on Ctrl+q
C
mit
chdorner/ghighlighter-c
65afcdfc0e43f45578d47e4ab68bb0a81cdfd14a
src/settings/types/Duration.h
src/settings/types/Duration.h
//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #ifndef DURATION_H #define DURATION_H namespace cura { /* * \brief Represents a duration in seconds. * * This is a facade. It behaves like a double, only it can't be negative. */ struct Duration { /* * ...
//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #ifndef DURATION_H #define DURATION_H namespace cura { /* * \brief Represents a duration in seconds. * * This is a facade. It behaves like a double, only it can't be negative. */ struct Duration { /* * ...
Add _s custom literal for durations
Add _s custom literal for durations You can indicate that something takes 5 seconds by writing 5_s now. We can't make a literal saying '5s' because custom literals need to start with an underscore because C++ reserves the rest for use in future C++ versions. Contributes to issue CURA-4410.
C
agpl-3.0
Ultimaker/CuraEngine,Ultimaker/CuraEngine
4ee4e4dcb07c5e45881179c6ec61df6381f76211
security/nss/macbuild/NSSCommon.h
security/nss/macbuild/NSSCommon.h
/* Defines common to all versions of NSS */ #define NSPR20 1 #define MP_API_COMPATIBLE 1
/* Defines common to all versions of NSS */ #define NSPR20 1 #define MP_API_COMPATIBLE 1 #define NSS_3_4_CODE 1 /* Remove this when we start building NSS 4.0 by default */
Define NSS_3_4 so that we get the right code and not Stan code that isn't quite ready.
Define NSS_3_4 so that we get the right code and not Stan code that isn't quite ready.
C
mpl-2.0
thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss