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
efa2803eb4c8b930f0b57c2b7d46d222641c3c4a
plugins/wacom-raw/fu-wacom-emr-device.h
plugins/wacom-raw/fu-wacom-emr-device.h
/* * Copyright (C) 2018-2019 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1+ */ #pragma once #include "fu-wacom-device.h" #define FU_TYPE_WACOM_EMR_DEVICE (fu_wacom_emr_device_get_type ()) G_DECLARE_FINAL_TYPE (FuWacomEmrDevice, fu_wacom_emr_device, FU, WACOM_EMR_DEVICE, FuUdevDevice)...
/* * Copyright (C) 2018-2019 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1+ */ #pragma once #include "fu-wacom-device.h" #define FU_TYPE_WACOM_EMR_DEVICE (fu_wacom_emr_device_get_type ()) G_DECLARE_FINAL_TYPE (FuWacomEmrDevice, fu_wacom_emr_device, FU, WACOM_EMR_DEVICE, FuWacomDevice...
Fix a regression for EMR devices
wacom-emr: Fix a regression for EMR devices Actually trying to instantiate the object leads to: Specified class size for type 'FuWacomEmrDevice' is smaller than the parent type's 'FuWacomDevice' class size. Fixes https://github.com/fwupd/fwupd/issues/1456
C
lgpl-2.1
fwupd/fwupd,fwupd/fwupd,hughsie/fwupd,hughsie/fwupd,fwupd/fwupd,fwupd/fwupd,hughsie/fwupd,hughsie/fwupd
d909b3ac3820d916938ea58d5dbb10993bf79bc7
src/test_at/UDP_command_test.c
src/test_at/UDP_command_test.c
/*Lien du tuto d'où provient le code http://www.upsilonaudio.com/ar-drone-envoyer-des-commandes-at-paquets-udp/ lien vers un listing des commandes AT http://www.upsilonaudio.com/ar-drone-recapitulatif-des-commandes-at/ */ #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <sys/types.h> #include...
Add a test program: sending AT command to the drone
Add a test program: sending AT command to the drone
C
mit
super7ramp/Leonard,super7ramp/Leonard,super7ramp/Leonard,super7ramp/Leonard,super7ramp/Leonard,super7ramp/Leonard
7bc4e913236c28418cd445f5414852257073e3d4
hello.c
hello.c
#include <stdio.h> int main(void) { printf("hello, world\n") return 0; }
#include <stdio.h> int main(void) { printf("hello, world\n"); return 0; }
Fix the previous, remarkable error.
Fix the previous, remarkable error.
C
apache-2.0
jsh/services_test
5d4caae22325f378f745f5f1ae2009bd781cc0bc
tests/regression/02-base/48-unknown-func.c
tests/regression/02-base/48-unknown-func.c
#include <stdlib.h> #include <stdio.h> typedef struct list { int val; struct list *next; } list_t; // void mutate_list(list_t n){ // list_t *next = n.next; // next->val = 42; // } int main(){ list_t first; list_t second; first.next = &second; first.val = 1; second.next = NULL; ...
Add test where memory is not invalidated correctly.
Add test where memory is not invalidated correctly.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4fe3e0c8113f407bcb99f3bfe9c73f6532ecef6d
libvirt-gconfig/libvirt-gconfig-compat.h
libvirt-gconfig/libvirt-gconfig-compat.h
/* * libvirt-gconfig-compat.h: libvirt configuration * * Copyright (C) 2012 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or...
/* * libvirt-gconfig-compat.h: libvirt configuration * * Copyright (C) 2012 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or...
Fix glib version check for g_type_init
Fix glib version check for g_type_init g_type_init has been deprecated in glib 2.35, not 2.34. With versions older than 2.35, we have to call it or we'll get a runtime failure.
C
lgpl-2.1
libvirt/libvirt-glib,libvirt/libvirt-glib,libvirt/libvirt-glib
b30b294d1c079e18068f8ddef7acfa2713cc427f
hat-trie/src/common.h
hat-trie/src/common.h
/* * This file is part of hat-trie. * * Copyright (c) 2011 by Daniel C. Jones <dcjones@cs.washington.edu> * * * Common typedefs, etc. * */ #ifndef HATTRIE_COMMON_H #define HATTRIE_COMMON_H typedef unsigned long value_t; #endif
/* * This file is part of hat-trie. * * Copyright (c) 2011 by Daniel C. Jones <dcjones@cs.washington.edu> * * * Common typedefs, etc. * */ #ifndef HATTRIE_COMMON_H #define HATTRIE_COMMON_H #include "pstdint.h" typedef uintptr_t value_t; #endif
Update hat-trie C library. Fix GH-11.
Update hat-trie C library. Fix GH-11.
C
mit
kmike/hat-trie,kmike/hat-trie,kmike/hat-trie,kmike/hat-trie
1310c9b735555ded81f2cf088d047fe8e62db294
test.c
test.c
#include <stdlib.h> #include <stdio.h> #include <dirent.h> #include <sys/time.h> int main(int argc, char ** argv){ printf("Test %d\n", argc); int i; for(i = 0; i < argc; i++){ printf("%d: %s\n", i, argv[i]); } struct timeval tv; if(gettimeofday(&tv, NULL) == 0){ printf("Gettimeo...
#include <stdlib.h> #include <stdio.h> #include <dirent.h> #include <sys/time.h> int main(int argc, char ** argv){ printf("Test %d\n", argc); int i; for(i = 0; i < argc; i++){ printf("%d: %s\n", i, argv[i]); } struct timespec tp; if(clock_gettime(CLOCK_REALTIME, &tp) == 0){ prin...
Implement PID, fix forking in C
Implement PID, fix forking in C
C
mit
redox-os/libc,redox-os/libc,redox-os/libc
7f2afc7a1926bf85cf3b990ebe4ed1fc70968251
src/quickavro.h
src/quickavro.h
/* * Copyright 2016 Chris Marshall * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright 2016 Chris Marshall * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Increase initial buffer to 8192 bytes
Increase initial buffer to 8192 bytes
C
apache-2.0
ChrisRx/quickavro,ChrisRx/quickavro
3278ef5a293184162b68aad23ee89e1b713c564c
util.h
util.h
/* KindlePDFViewer: buffer for blitting muPDF data to framebuffer (blitbuffer) Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> 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, ...
/* KindlePDFViewer: miscellaneous utility functions for Lua Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of...
Correct the comment (the existing text was referring to a different file).
Correct the comment (the existing text was referring to a different file).
C
agpl-3.0
apletnev/koreader-base,frankyifei/koreader-base,lgeek/koreader,houqp/koreader-base,mihailim/koreader,Hzj-jie/koreader-base,apletnev/koreader-base,koreader/koreader-base,robert00s/koreader,frankyifei/koreader-base,ashhher3/koreader,frankyifei/koreader-base,koreader/koreader-base,chrox/koreader,chihyang/koreader,Frenzie/...
69e015dd8893abecc2f17f86544c7b82e86416cb
include/stud/string.h
include/stud/string.h
#ifndef STUD_String_H #define STUD_String_H #include <initializer_list> #include <string> namespace stud { class string : public std::string { public: string() = default; string(const string& rhs) = default; string(string&& rhs) = default; string& operator=(const string& rhs) = default; string...
#ifndef STUD_String_H #define STUD_String_H #include <cstring> #include <initializer_list> #include <string> namespace stud { class string : public std::string { public: string() = default; string(const string& rhs) = default; string(string&& rhs) = default; string& operator=(const string& rhs) =...
Add explicit header for size_t
Add explicit header for size_t
C
mit
whoshuu/stud
7c76027db0b7a22bd1addfb3055c435b425fa16b
test/CodeGen/regparm.c
test/CodeGen/regparm.c
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s #define FASTCALL __attribute__((regparm(2))) typedef struct { int aaa; double bbbb; int ccc[200]; } foo; typedef void (*FType)(int, int) __attribute ((regparm (3), stdcall)); FType bar; static void FASTCALL reduced(char b, ...
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s #define FASTCALL __attribute__((regparm(2))) typedef struct { int aaa; double bbbb; int ccc[200]; } foo; typedef void (*FType)(int, int) __attribute ((regparm (3), stdcall)); FType bar; static void FASTCALL reduced(char b, ...
Fix test in -Asserts build.
Fix test in -Asserts build. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@99960 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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
2c7aba48f3719344f9952dca59095805297aa254
test/default/cmptest.h
test/default/cmptest.h
#ifndef __CMPTEST_H__ #define __CMPTEST_H__ #include <stdio.h> #include "sodium.h" #define TEST_NAME_RES TEST_NAME ".res" #define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp" FILE *fp_res; int xmain(void); int main(void) { FILE *fp_out; int c; if ((fp_res = fopen(TEST_NAME_RES, "w+")) == NULL) ...
#ifndef __CMPTEST_H__ #define __CMPTEST_H__ #include <stdio.h> #include "sodium.h" #define TEST_NAME_RES TEST_NAME ".res" #define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp" #ifdef HAVE_ARC4RANDOM # undef rand # define rand(X) arc4random(X) #endif FILE *fp_res; int xmain(void); int main(void) { FILE *fp...
Use arc4random() in tests if available.
Use arc4random() in tests if available.
C
isc
mvduin/libsodium,akkakks/libsodium,soumith/libsodium,netroby/libsodium,netroby/libsodium,akkakks/libsodium,pmienk/libsodium,netroby/libsodium,tml/libsodium,akkakks/libsodium,donpark/libsodium,Payshare/libsodium,eburkitt/libsodium,optedoblivion/android_external_libsodium,soumith/libsodium,pyparallel/libsodium,GreatFruit...
005112d3d6348f02820bdf1fd5577f4722865ca4
parabox.nodes/co.parabox.text.contains.c
parabox.nodes/co.parabox.text.contains.c
/** * @file * co.parabox.event.drop node implementation. * * @copyright Copyright © 2012–2014 Kosada Incorporated. * This code may be modified and distributed under the terms of the MIT License. * For more information, see http://vuo.org/license. */ #include "node.h" #include "VuoGlContext.h" #include <OpenGL/C...
Add Text Contains node. Fix Make Shader with GLSL incompatibility with newer versions of Vuo.
Add Text Contains node. Fix Make Shader with GLSL incompatibility with newer versions of Vuo.
C
mit
bradparks/vuo-nodes,karl-/vuo-nodes,karl-/vuo-nodes,bradparks/vuo-nodes
21c2073f136951a8c7911c74fe37b3fd6ecd9c6b
nacl-src/decoder.h
nacl-src/decoder.h
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright 2014 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...
Add virtual destructor to base class.
Add virtual destructor to base class.
C
apache-2.0
smcclure879/radioreceiver,google/radioreceiver,smcclure879/radioreceiver,google/radioreceiver,smcclure879/radioreceiver
12234c5886d3a12539fa3c04ec00263155641aed
MoabReader/ExtractShell.h
MoabReader/ExtractShell.h
#ifndef __smoab_ExtractShell_h #define __smoab_ExtractShell_h #include "SimpleMoab.h" #include "detail/LoadGeometry.h" #include "detail/ReadMaterialTag.h" #include <vtkUnstructuredGrid.h> #include <vtkPolyData.h> #include <algorithm> namespace smoab{ //we presume that we are extract the shell of a 3d volume, wher...
Introduce the explicit Shell reader which makes polydata from moab.
Introduce the explicit Shell reader which makes polydata from moab. This is very similar to creating a dataSetConverter that is giving 3d parents and asked to extract the 2d cells only. The big difference is that we will try to relate the 2d cells back to any 3d cells in the 3d parents.
C
bsd-2-clause
robertmaynard/Sandbox,robertmaynard/Sandbox,robertmaynard/Sandbox,robertmaynard/Sandbox
45d1a525caae45b9d1bbecd3f472442e5d17de65
system.c
system.c
#include <stdio.h> #include <stdlib.h> #include "system.h" void SystemPause() { puts("\nPress Enter to continue..."); while (getchar() != '\n') {} } void SystemClear() { system("clear"); }
#include <stdio.h> #include <stdlib.h> #include "system.h" void SystemPause() { puts("\nPress Enter to continue..."); while (getchar() != '\n') {} } void SystemClear() { fputs("\033[2J\033[H", stdout); }
Use escape sequence to clear screen
Use escape sequence to clear screen
C
mit
pathawks/Castle
6d94dba7a5c4660c82ca2e55c1167129e4bb812a
Realm/RLMSchema_Private.h
Realm/RLMSchema_Private.h
//////////////////////////////////////////////////////////////////////////// // // Copyright 2014 Realm Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2014 Realm Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
Mark +[RLMSchema sharedSchema] as nullable.
Mark +[RLMSchema sharedSchema] as nullable.
C
apache-2.0
ul7290/realm-cocoa,sunzeboy/realm-cocoa,lumoslabs/realm-cocoa,Havi4/realm-cocoa,duk42111/realm-cocoa,sunfei/realm-cocoa,bugix/realm-cocoa,bestwpw/realm-cocoa,lumoslabs/realm-cocoa,nathankot/realm-cocoa,Havi4/realm-cocoa,bestwpw/realm-cocoa,hejunbinlan/realm-cocoa,vuchau/realm-cocoa,vuchau/realm-cocoa,iOS--wsl--victor/r...
670d2cc2fbc4489b14e2874ccf8bfbb13a44ca91
test/Modules/Inputs/stress1/merge_no_reexport.h
test/Modules/Inputs/stress1/merge_no_reexport.h
#ifndef STRESS1_MERGE_NO_REEXPORT_H #define STRESS1_MERGE_NO_REEXPORT_H #include "m00.h" #include "m01.h" #include "m02.h" #include "m03.h" #endif
Add file missed from r244409.
Add file missed from r244409. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@244410 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
fdae0200e90f6ca93fda8f992002b03629f75d15
net/server/http_server_response_info.h
net/server/http_server_response_info.h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_SERVER_HTTP_SERVER_RESPONSE_INFO_H_ #define NET_SERVER_HTTP_SERVER_RESPONSE_INFO_H_ #include <string> #include <utility> #include <vector> #...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_SERVER_HTTP_SERVER_RESPONSE_INFO_H_ #define NET_SERVER_HTTP_SERVER_RESPONSE_INFO_H_ #include <string> #include <utility> #include "base/stri...
Use of base::StringPairs appropriately in server
Use of base::StringPairs appropriately in server Bescause base/strings/string_split.h defines: typedef std::vector<std::pair<std::string, std::string> > StringPairs; BUG=412250 Review URL: https://codereview.chromium.org/1093823005 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#327241}
C
bsd-3-clause
Chilledheart/chromium,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,PeterWa...
904957e60a296aa04db2384b7d69f0e382656740
Modules/News/iPad/MITCollectionViewGridLayoutSection.h
Modules/News/iPad/MITCollectionViewGridLayoutSection.h
#import <Foundation/Foundation.h> @class MITCollectionViewNewsGridLayout; @interface MITCollectionViewGridLayoutSection : NSObject @property (nonatomic,readonly,weak) MITCollectionViewNewsGridLayout *layout; @property (nonatomic,readonly) NSInteger section; @property (nonatomic) CGPoint origin; @property (nonatomic)...
#import <Foundation/Foundation.h> @class MITCollectionViewNewsGridLayout; @interface MITCollectionViewGridLayoutSection : NSObject @property (nonatomic,readonly,weak) MITCollectionViewNewsGridLayout *layout; @property (nonatomic,readonly) NSInteger section; @property (nonatomic) CGPoint origin; @property (nonatomic)...
Clean up some inconsistencies in the section helper header
Clean up some inconsistencies in the section helper header
C
lgpl-2.1
MIT-Mobile/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS
5e0171da9259c8261ec8661a099c35a2ed8c0733
CefSharp/IRequestHandler.h
CefSharp/IRequestHandler.h
// Copyright 2010-2013 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "IRequestResponse.h" using namespace System; using namespace System::Net; namespace CefSharp { publ...
// Copyright 2010-2013 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "IRequestResponse.h" using namespace System; using namespace System::Net; using namespace System::Runtim...
Use a proper Out parameter.
Use a proper Out parameter.
C
bsd-3-clause
wangzheng888520/CefSharp,VioletLife/CefSharp,VioletLife/CefSharp,yoder/CefSharp,AJDev77/CefSharp,wangzheng888520/CefSharp,wangzheng888520/CefSharp,illfang/CefSharp,AJDev77/CefSharp,battewr/CefSharp,battewr/CefSharp,NumbersInternational/CefSharp,windygu/CefSharp,twxstar/CefSharp,Haraguroicha/CefSharp,Livit/CefSharp,zhan...
172dfb5cae6780455d338fd38a16c87dfe92073b
include/edata.h
include/edata.h
#ifndef _MY_EDATA #define _MY_EDATA #ifdef __cplusplus #define EXTERNC extern "C" #else #define EXTERNC #endif /** @brief struct that carries all information about experimental data */ typedef struct edata { /** observed data */ double *am_my; /** standard deviation of observed data */ double *am_ysi...
#ifndef _MY_EDATA #define _MY_EDATA #ifdef __cplusplus #define EXTERNC extern "C" #else #define EXTERNC #include <stdbool.h> #endif /** @brief struct that carries all information about experimental data */ typedef struct edata { /** observed data */ double *am_my; /** standard deviation of observed data ...
Fix type bool for C
Fix type bool for C
C
bsd-2-clause
AMICI-developer/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI,AMICI-developer/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI
7e8e1e91c25b4c2664b1768b96070e722f804c74
include/error.h
include/error.h
#ifndef CPR_ERROR_H #define CPR_ERROR_H #include <string> #include "cprtypes.h" #include "defines.h" namespace cpr { enum class ErrorCode { OK = 0, CONNECTION_FAILURE, EMPTY_RESPONSE, HOST_RESOLUTION_FAILURE, INTERNAL_ERROR, INVALID_URL_FORMAT, NETWORK_RECEIVE_ERROR, NETWORK_SEND_FAI...
#ifndef CPR_ERROR_H #define CPR_ERROR_H #include <string> #include "cprtypes.h" #include "defines.h" namespace cpr { enum class ErrorCode { OK = 0, CONNECTION_FAILURE, EMPTY_RESPONSE, HOST_RESOLUTION_FAILURE, INTERNAL_ERROR, INVALID_URL_FORMAT, NETWORK_RECEIVE_ERROR, NETWORK_SEND_FAI...
Remove explicit instantiation of empty message
Remove explicit instantiation of empty message
C
mit
whoshuu/cpr,SuperV1234/cpr,msuvajac/cpr,whoshuu/cpr,msuvajac/cpr,whoshuu/cpr,SuperV1234/cpr,SuperV1234/cpr,msuvajac/cpr
cc8f0b827fdd616a3358fc939a2811bc0d6c3f79
arch/mips/qemu/q-irq.c
arch/mips/qemu/q-irq.c
#include <linux/init.h> #include <linux/linkage.h> #include <asm/i8259.h> #include <asm/mipsregs.h> #include <asm/qemu.h> #include <asm/system.h> #include <asm/time.h> extern asmlinkage void qemu_handle_int(void); asmlinkage void plat_irq_dispatch(void) { unsigned int pending = read_c0_status() & read_c0_cause(); ...
#include <linux/init.h> #include <linux/linkage.h> #include <asm/i8259.h> #include <asm/mipsregs.h> #include <asm/qemu.h> #include <asm/system.h> #include <asm/time.h> asmlinkage void plat_irq_dispatch(void) { unsigned int pending = read_c0_status() & read_c0_cause(); if (pending & 0x8000) { ll_timer_interrupt(Q...
Remove prototype for deleted function qemu_handle_int
[MIPS] Remove prototype for deleted function qemu_handle_int Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana...
4c370c5d3e82c2e043b83b778950ca3056976e9f
test/profile/instrprof-error.c
test/profile/instrprof-error.c
// RUN: %clang_profgen -o %t -O3 %s // RUN: env LLVM_PROFILE_FILE="/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s int main(int argc, const char *argv[]) { if (argc < 2) return 1; return 0; } // CHECK: LLVM Profile: Failed to write file
// RUN: %clang_profgen -o %t -O3 %s // RUN: env LLVM_PROFILE_FILE="%t/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s int main(int argc, const char *argv[]) { if (argc < 2) return 1; return 0; } // CHECK: LLVM Profile: Failed to write file
Test error reporting by writing to a temp directory
[profile] Test error reporting by writing to a temp directory This test case is meant to check whether verbose error logging works. It does this by _failing_ to write a profile to a path corresponding to a directory. Make this clearer by writing to a temporary directory. Patch suggested by Sean Silva! git-svn-id: c1...
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
16db6c6d5da64216719f3809bf34476a02c62d02
capstone_dissasembly.c
capstone_dissasembly.c
#include <stdio.h> #include <inttypes.h> #include <capstone/capstone.h> #define X86_CODE \ "\x55\x48\x8b\x05\xb8\x13\x00\x00\xe9\x14\x9e\x08\x00\x45\x31\xe4" int main(int argc, char* argv[]) { csh handle; cs_insn *insn; size_t count; int rc = 0; if (cs_open(CS_ARCH_X86, CS_MODE_64, &handle) != CS_ERR_OK) { ...
Add capstone dissasembly C example.
Add capstone dissasembly C example. compile with: gcc capstone_dissasembly.c -o capstone -lcapstone
C
apache-2.0
tisma/ctorious,tisma/ctorious
37812c16e76bd7dd05d87f817005f8e32c5659fb
core/metautils/src/vectorLinkdef.h
core/metautils/src/vectorLinkdef.h
#include <string> #include <vector> #ifndef __hpux using namespace std; #endif #pragma create TClass vector<bool>; #pragma create TClass vector<char>; #pragma create TClass vector<short>; #pragma create TClass vector<long>; #pragma create TClass vector<unsigned char>; #pragma create TClass vector<unsigned short>; #pra...
#include <string> #include <vector> #ifndef __hpux using namespace std; #endif #pragma create TClass vector<bool>; #pragma create TClass vector<char>; #pragma create TClass vector<short>; #pragma create TClass vector<long>; #pragma create TClass vector<unsigned char>; #pragma create TClass vector<unsigned short>; #pra...
Add missing TClass creation for vector<Long64_t> and vector<ULong64_t>
Add missing TClass creation for vector<Long64_t> and vector<ULong64_t> git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@38659 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical
15d259806b2d761e5d5e01ebdbd8e7b5db12eb94
test/FrontendC/x86-64-red-zone.c
test/FrontendC/x86-64-red-zone.c
// RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - > %t // RUN: not grep subq %t // RUN: not grep addq %t // RUN: grep {\\-4(%%rsp)} %t | count 2 // RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - -mno-red-zone > %t // RUN: grep subq %t | count 1 // RUN: grep addq %t | count 1 // This is a test for x86-64...
// RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - > %t // RUN: not grep subq %t // RUN: not grep addq %t // RUN: grep {\\-4(%%rsp)} %t | count 2 // RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - -mno-red-zone > %t // RUN: grep subq %t | count 1 // RUN: grep addq %t | count 1 // This is a test for x86-64...
Make the XFAIL line actually match x86-32 targets.
Make the XFAIL line actually match x86-32 targets. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@63507 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,c...
d5951a944096aa3e38af4a788c3bcea26acd00fb
testmud/mud/home/Game/sys/subd.c
testmud/mud/home/Game/sys/subd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add subroutine daemon for Game
Add subroutine daemon for Game
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
7bddee2c910460fc164840003b8a2c0c3b1dd284
kbase/basic_macros.h
kbase/basic_macros.h
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_BASIC_MACROS_H_ #define KBASE_BASIC_MACROS_H_ #define DISALLOW_COPY(CLASSNAME) \ CLASSNAME(const CLASSNAME&) = delete; \ CLASSNAME& operator=(const CLASSNAME&) = delete #define DISALLOW_MOVE(CLAS...
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_BASIC_MACROS_H_ #define KBASE_BASIC_MACROS_H_ #define DISALLOW_COPY(CLASSNAME) \ CLASSNAME(const CLASSNAME&) = delete; \ CLASSNAME& operator=(const CLASSNAME&) = delete #define DISALLOW_MOVE(CLAS...
Add a macro UNREFED_VAR to silence unused variables warning.
Add a macro UNREFED_VAR to silence unused variables warning.
C
mit
kingsamchen/KBase,kingsamchen/KBase_Demo,kingsamchen/KBase,kingsamchen/KBase_Demo
75b1676847e0d2d0b0de1cd80de17a16d8259569
Classes/TGSessionTokenNotifier.h
Classes/TGSessionTokenNotifier.h
#import <Foundation/Foundation.h> @protocol TGSessionTokenNotifier <NSObject> +(void)sessionTokenSet:(NSString*)token; @end
#import <Foundation/Foundation.h> @protocol TGSessionTokenNotifier <NSObject> -(void)sessionTokenSet:(NSString*)token; @end
Make token notifier method instance method
Make token notifier method instance method
C
apache-2.0
tapglue/ios_sdk,tapglue/ios_sdk,tapglue/snaasSdk-iOS,tapglue/snaasSdk-iOS,tapglue/snaasSdk-iOS,tapglue/ios_sdk
d997a15d48dd2d756b4aed69cae32df7d28c94de
linesrc.h
linesrc.h
#ifndef LINESRC_HPP #define LINESRC_HPP #include <stdint.h> #include <string> class haxpp_linesource { private: linecount_t lineno_start = 0; linecount_t lineno = 0; std::string sourcepath; FILE* fp = nullptr; char* line = nullptr; size_t ...
#ifndef LINESRC_HPP #define LINESRC_HPP #include <stdint.h> #include <string> class haxpp_linesource { private: linecount_t lineno_start = 0; linecount_t lineno = 0; std::string sourcepath; FILE* fp = nullptr; char* line = nullptr; size_t ...
Fix line number off by 1 error
Fix line number off by 1 error
C
lgpl-2.1
joncampbell123/haxcc,joncampbell123/haxcc,joncampbell123/haxcc,joncampbell123/haxcc,joncampbell123/haxcc
6978320135e27b7c13a90d26b2bf8b2ba990706d
contrib/other-builds/moses2/Search/SearchCubePruning.h
contrib/other-builds/moses2/Search/SearchCubePruning.h
/* * SearchCubePruning.h * * Created on: 16 Nov 2015 * Author: hieu */ #pragma once #include <vector> #include <boost/unordered_map.hpp> #include "Search.h" class Bitmap; class SearchCubePruning : public Search { public: SearchCubePruning(Manager &mgr, Stacks &stacks); virtual ~SearchCubePruning(); vo...
/* * SearchCubePruning.h * * Created on: 16 Nov 2015 * Author: hieu */ #ifndef SEARCH_SEARCHCUBEPRUNING_H_ #define SEARCH_SEARCHCUBEPRUNING_H_ #include "Search.h" class SearchCubePruning : public Search { public: SearchCubePruning(Manager &mgr, Stacks &stacks); virtual ~SearchCubePruning(); void Decod...
Revert "for each input path.2"
Revert "for each input path.2" This reverts commit 69e4cb0531ec93868ccc06ec54d52a4f88d62295.
C
lgpl-2.1
tofula/mosesdecoder,moses-smt/mosesdecoder,moses-smt/mosesdecoder,alvations/mosesdecoder,tofula/mosesdecoder,alvations/mosesdecoder,moses-smt/mosesdecoder,alvations/mosesdecoder,moses-smt/mosesdecoder,alvations/mosesdecoder,alvations/mosesdecoder,moses-smt/mosesdecoder,alvations/mosesdecoder,alvations/mosesdecoder,tofu...
fcdccff46beacec0b37271d75f1ced3093a773e2
perl_mongo.h
perl_mongo.h
#ifndef PERL_MONGO #define PERL_MONGO #include <mongo/client/dbclient.h> extern "C" { #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #define PERL_MONGO_CALL_BOOT(name) perl_mongo_call_xs (aTHX_ name, cv, mark) void perl_mongo_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *cv), CV *cv, SV **mark); SV *perl_mon...
#ifndef PERL_MONGO #define PERL_MONGO #include <mongo/client/dbclient.h> extern "C" { #define PERL_GCC_BRACE_GROUPS_FORBIDDEN #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #define PERL_MONGO_CALL_BOOT(name) perl_mongo_call_xs (aTHX_ name, cv, mark) void perl_mongo_call_xs (pTHX_ void (*subaddr) (pTHX_ ...
Stop the headers of debugging perls to generate gcc brace groups.
Stop the headers of debugging perls to generate gcc brace groups. Those don't work with g++ easily.
C
apache-2.0
xdg/mongo-perl-driver,kainwinterheart/mongo-perl-driver,kainwinterheart/mongo-perl-driver,rahuldhodapkar/mongo-perl-driver,kainwinterheart/mongo-perl-driver,gormanb/mongo-perl-driver,dagolden/mongo-perl-driver,gormanb/mongo-perl-driver,jorol/mongo-perl-driver,mongodb/mongo-perl-driver,mongodb/mongo-perl-driver,gormanb/...
0e5ec0300f6b37d9e5126dfc650fe7fcda09b0df
common/i2c_utils.h
common/i2c_utils.h
// Derived from blog post at http://www.ermicro.com/blog/?p=1239 #ifndef __I2C_UTILS_H__ #define __I2C_UTILS_H__ #define I2C_MAX_TRIES 50 // Connection attempts (0 < tries < 255) #define I2C_START 0 #define I2C_DATA 1 #define I2C_DATA_ACK 2 #define I2C_STOP 3 void i2c_init(void); unsigned char i2c_transmit(unsig...
// Derived from blog post at http://www.ermicro.com/blog/?p=1239 #ifndef __I2C_UTILS_H__ #define __I2C_UTILS_H__ #include <compat/twi.h> #define I2C_MAX_TRIES 50 // Connection attempts (0 < tries < 255) #define I2C_START 0 #define I2C_DATA 1 #define I2C_DATA_ACK 2 #define I2C_STOP 3 #define I2C_SCL 100000L ...
Add high-level write and read functions
Add high-level write and read functions
C
mit
andrewadare/avr-breadboarding,andrewadare/avr-breadboarding
950cd3117ba5a838c2ccc29c3deed419f591ec52
src/condor_syscall_lib/scanner.h
src/condor_syscall_lib/scanner.h
#define DUMMY 0 #define FUNC 1 #define PARAM 2 #define XFER_FUNC 3 #define ALLOC_FUNC 4 #define ACTION_PARAM 5 #define NOSUPP_FUNC 6 struct token { int tok_type; char *val; }; struct node { int node_type; char *type_name; char *id; int is_ptr; int is_const; int is_const_ptr; int is_mapped; in...
#define DUMMY 0 #define FUNC 1 #define PARAM 2 #define XFER_FUNC 3 #define ALLOC_FUNC 4 #define ACTION_PARAM 5 #define NOSUPP_FUNC 6 struct token { int tok_type; char *val; }; struct node { int node_type; char *type_name; char *id; int is_ptr; int is_const; int is_const_ptr; int is_mapped; i...
Add boolean node attirbute "pseudo" to describe whether a given system call is a "normal" one, or a "pseudo" call. This needs to be know by the receivers where normal syscalls can be invoked directly by their name, but pseudo calls must have hand written code to handle their functionality.
Add boolean node attirbute "pseudo" to describe whether a given system call is a "normal" one, or a "pseudo" call. This needs to be know by the receivers where normal syscalls can be invoked directly by their name, but pseudo calls must have hand written code to handle their functionality.
C
apache-2.0
djw8605/htcondor,htcondor/htcondor,clalancette/condor-dcloud,neurodebian/htcondor,neurodebian/htcondor,djw8605/condor,mambelli/osg-bosco-marco,neurodebian/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,djw8605/condor,htcondor/htcondor,djw8605/htcondor,bbockelm/condor-network-accounting,djw8605/condor,...
43c43e4f97d54054fc66c082fd43aef514a68d8e
test2/vla/standard_nonconst.c
test2/vla/standard_nonconst.c
// RUN: %ocheck 1 '-DNULL=(void *)0' // RUN: %ocheck 0 '-DNULL=0' int null_is_ptr_type() { char s[1][1+(int)NULL]; int i = 0; sizeof s[i++]; return i; } main() { return null_is_ptr_type(); }
// RUN: %ocheck 1 %s '-DNULL=(void *)0' // RUN: %ocheck 0 %s '-DNULL=0' int null_is_ptr_type() { char s[1][1+(int)NULL]; int i = 0; sizeof s[i++]; return i; } main() { return null_is_ptr_type(); }
Fix standard-nonconst vla test commands
Fix standard-nonconst vla test commands
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
5cccac451299783f7d54cb7305f34c8966ed0dc3
Pod/Classes/Internal/Messages.h
Pod/Classes/Internal/Messages.h
// // Messages.h // Pods // // Created by Tyler Clemens on 6/2/16. // // #import <Foundation/Foundation.h> #import "STMMessage.h" @protocol MessagesDelegate <NSObject> @optional - (void)MessagesResults:(NSArray *_Nullable)arrayMessages; - (void)UnreadMessageResults:(NSNumber *_Nullable)count; @end @interface M...
// // Messages.h // Pods // // Created by Tyler Clemens on 6/2/16. // // #import <Foundation/Foundation.h> #import "STMMessage.h" #import "STMNetworking.h" @protocol MessagesDelegate <NSObject> @optional - (void)MessagesResults:(NSArray *_Nullable)arrayMessages; - (void)UnreadMessageResults:(NSNumber *_Nullable)...
Fix a linking issue found by lint
Fix a linking issue found by lint
C
mit
ShoutToMe/stm-sdk-ios,ShoutToMe/stm-sdk-ios
a46961b8dfe0a112097299e053c3d0cc5af13ab8
test/Modules/Inputs/HasSubModules.framework/Frameworks/Sub.framework/PrivateHeaders/SubPriv.h
test/Modules/Inputs/HasSubModules.framework/Frameworks/Sub.framework/PrivateHeaders/SubPriv.h
#include <Sub/Types.h> // Private
#include <Sub/Types.h> // This comment ensures that this file is not identical to // HasSubModules.framework/Frameworks/Sub.framework/Headers/Sub.h
Change this comment to helpfully explain why it's there.
Change this comment to helpfully explain why it's there. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@175027 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
3e4d6584a8634c839a083b5cd8c51f54dc33112f
modules/thm/include/kernels/OneDMassFlux.h
modules/thm/include/kernels/OneDMassFlux.h
#ifndef ONEDMASSFLUX_H #define ONEDMASSFLUX_H #include "Kernel.h" class OneDMassFlux; template<> InputParameters validParams<OneDMassFlux>(); /** * Mass flux */ class OneDMassFlux : public Kernel { public: OneDMassFlux(const InputParameters & parameters); virtual ~OneDMassFlux(); protected: virtual Real co...
#ifndef ONEDMASSFLUX_H #define ONEDMASSFLUX_H #include "Kernel.h" class OneDMassFlux; template<> InputParameters validParams<OneDMassFlux>(); /** * Mass flux */ class OneDMassFlux : public Kernel { public: OneDMassFlux(const InputParameters & parameters); virtual ~OneDMassFlux(); protected: virtual Real co...
Prepare RELAP-7 for MooseVariable::sln() const update.
Prepare RELAP-7 for MooseVariable::sln() const update. This set of changes prepares RELAP-7 to work with an upcoming version of MOOSE in which MooseVariable::sln() returns a const reference. Refs idaholab/moose#6327.
C
lgpl-2.1
andrsd/moose,bwspenc/moose,andrsd/moose,laagesen/moose,jessecarterMOOSE/moose,laagesen/moose,milljm/moose,lindsayad/moose,idaholab/moose,harterj/moose,idaholab/moose,idaholab/moose,andrsd/moose,jessecarterMOOSE/moose,sapitts/moose,laagesen/moose,sapitts/moose,bwspenc/moose,harterj/moose,milljm/moose,bwspenc/moose,andrs...
bce08b28ad4717b28356cfb98be76a551675d4a4
common/string_tokenizer.h
common/string_tokenizer.h
#include <string> using namespace std; /* Obtained from http://oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++Programming-HOWTO-7.html */ void tokenizeString(const string& str, vector<string>& tokens, const string& delimiters) { // Skip delimiters at beginning. string::size_type lastPos = str.find_first_not_of...
#include <string> /* Obtained from http://oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++Programming-HOWTO-7.html */ void tokenizeString(const std::string& str, std::vector<std::string>& tokens, const std::string& delimiters) { // Skip delimiters at beginning. std::string::size_type lastPos = str.find_first_not...
Remove use of using-directive for std
Common: Remove use of using-directive for std
C
mit
andresodio/lager,andresodio/lager,andresodio/lager,andresodio/lager
f4e27dcccd8b25f4a95f81102b7db83df350320d
tests/regression/31-ikind-awars-ints/05-defexc-large.c
tests/regression/31-ikind-awars-ints/05-defexc-large.c
//PARAM: --enable ana.int.interval --disable exp.lower-constants #include <assert.h> int main(){ int a = 0; // maximum value for ulonglong unsigned long long x = 18446744073709551615ull; if(x > 18446744073709551612ull){ a = 1; } assert(a); unsigned long long y = x + 4; // Unsi...
//PARAM: --disable ana.int.interval #include <assert.h> int main(){ int a = 0; // maximum value for ulonglong unsigned long long x = 18446744073709551615ull; if(x > 18446744073709551612ull){ a = 1; } assert(a); unsigned long long y = x + 4; // Unsigned overflow -- The followin...
Test defexc with large integers
Test defexc with large integers
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
aa1ee08cf779b9a07867aa315c766e663bcbc4ed
sbabeld.h
sbabeld.h
#define BUF_SIZE 4096 #define MAXINTERFACES 10 #define MAXNEIGHBOURS 20 #define MESSAGE_PAD1 0 #define MESSAGE_PADN 1 #define MESSAGE_ACK_REQ 2 #define MESSAGE_ACK 3 #define MESSAGE_HELLO 4 #define MESSAGE_IHU 5 #define MESSAGE_ROUTER_ID 6 #define MESSAGE_NH 7 #define MESSAGE_UPDATE 8 #define MESSAGE_REQUEST 9 #defi...
#define BUF_SIZE 4096 #define MAXINTERFACES 5 #define MAXNEIGHBOURS 10 #define MESSAGE_PAD1 0 #define MESSAGE_PADN 1 #define MESSAGE_ACK_REQ 2 #define MESSAGE_ACK 3 #define MESSAGE_HELLO 4 #define MESSAGE_IHU 5 #define MESSAGE_ROUTER_ID 6 #define MESSAGE_NH 7 #define MESSAGE_UPDATE 8 #define MESSAGE_REQUEST 9 #defin...
Reduce size of neighbour and interface table.
Reduce size of neighbour and interface table. Now that we're able to expire neighbours, we can get away with a smaller table.
C
mit
jech/sbabeld
939667b6efbc5eb92e80af985727eb2465d19810
sipXmediaLib/src/mp/codecs/plgg726/plgg726.h
sipXmediaLib/src/mp/codecs/plgg726/plgg726.h
// // Copyright (C) 2007 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2007 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // $$ /////////////////////////////////////////////////////////////////////////////// // Author: Sergey Kostanbaev <Sergey DOT K...
// // Copyright (C) 2007 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2007 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // $$ /////////////////////////////////////////////////////////////////////////////// // Author: Sergey Kostanbaev <Sergey DOT K...
FIx build of G.726 codec wrapper with older versions of SpanDSP.
FIx build of G.726 codec wrapper with older versions of SpanDSP. git-svn-id: 5274dacc98e2a95d0b0452670772bfdffe61ca90@10190 a612230a-c5fa-0310-af8b-88eea846685b
C
lgpl-2.1
sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror
a0a8f0bd5ba210c3abcc96e68a5ee16a7cd8fc0f
Source/Factory/Internal/TyphoonAssemblyAdviser.h
Source/Factory/Internal/TyphoonAssemblyAdviser.h
//////////////////////////////////////////////////////////////////////////////// // // TYPHOON FRAMEWORK // Copyright 2013, Typhoon Framework Contributors // All Rights Reserved. // // NOTICE: The authors permit you to use, modify, and distribute this file // in accordance with the terms of the license agreement a...
//////////////////////////////////////////////////////////////////////////////// // // TYPHOON FRAMEWORK // Copyright 2013, Typhoon Framework Contributors // All Rights Reserved. // // NOTICE: The authors permit you to use, modify, and distribute this file // in accordance with the terms of the license agreement a...
Remove use of reserved keyboard in public header
Remove use of reserved keyboard in public header
C
apache-2.0
pomozoff/Typhoon,dmueller39/Typhoon,nickynick/Typhoon,dmueller39/Typhoon,pomozoff/Typhoon,nickynick/Typhoon,pomozoff/Typhoon,dmueller39/Typhoon,nickynick/Typhoon,nickynick/Typhoon,pomozoff/Typhoon,nickynick/Typhoon,dmueller39/Typhoon,pomozoff/Typhoon,dmueller39/Typhoon
d10a0d3088b225588fa762e243c0ff200aa64489
is_multiple_of_three.c
is_multiple_of_three.c
#include <stdio.h> #include <stdlib.h> int is_multiple_of_three(int n) { int odd_bits_cnt = 0; int even_bits_cnt = 0; if (n < 0) n = -n; if (n == 0) return 1; if (n == 1) return 0; while (n) { if (n & 0x1) { odd_bits_cnt++; } n >>= 1; if (n & 0x1) { even_bits_cnt++; } n >>= 1; } return ...
Add function that checks if a given number is multiple of three.
Add function that checks if a given number is multiple of three.
C
apache-2.0
tisma/ctorious,tisma/ctorious
f4d429a30824d7b36eebf0aec3fc51a722a4e5c7
rubysdl_time.c
rubysdl_time.c
/* Ruby/SDL Ruby extension library for SDL Copyright (C) 2001-2007 Ohbayashi Ippei This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at yo...
/* Ruby/SDL Ruby extension library for SDL Copyright (C) 2001-2007 Ohbayashi Ippei This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at yo...
Remove rb_thread_blocking_region when SDL_Delay is called.
Remove rb_thread_blocking_region when SDL_Delay is called. This means that SDL.delay stops all of Ruby threads now.
C
lgpl-2.1
ohai/rubysdl,ohai/rubysdl,cyndis/rubysdl,cyndis/rubysdl,ohai/rubysdl,cyndis/rubysdl,cyndis/rubysdl,ohai/rubysdl
0f2c1ce4661a6d767441b74f0c71f8bf93db91d6
test/CodeGen/capture-complex-expr-in-block.c
test/CodeGen/capture-complex-expr-in-block.c
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s // rdar://10033986 typedef void (^BLOCK)(void); int main () { _Complex double c; BLOCK b = ^() { _Complex double z; z = z + c; }; b(); } // CHECK: define internal void @__main_block_invoke_0 // CHE...
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s // rdar://10033986 typedef void (^BLOCK)(void); int main () { _Complex double c; BLOCK b = ^() { _Complex double z; z = z + c; }; b(); } // CHECK: define internal void @__main_block_invoke_0 // CHE...
Revise test and see if it passes with a release-built clang.
Revise test and see if it passes with a release-built clang. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@139043 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
40e25b2e348d18148c57b4551a8989fbc08e7fd1
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 53 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 54 #endif
Update skia milestone to next
Update skia milestone to next No API changes, just moving version fwd. TBR=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2115573002 Review-Url: https://codereview.chromium.org/2115573002
C
bsd-3-clause
Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,a...
3872b7df74d786aec5c54b502eb782e10bb67120
include/nekit/utils/auto.h
include/nekit/utils/auto.h
// Written by Arthur O'Dwyer #pragma once template <class Lambda> class AtScopeExit { Lambda& m_lambda; public: AtScopeExit(Lambda& action) : m_lambda(action) {} ~AtScopeExit() { m_lambda(); } }; #define Auto_INTERNAL2(lname, aname, ...) \ auto lname = [&]() { __VA_ARGS__; }; \ AtScopeExit<decltype(ln...
Add a very simple finalizer implementation
FEAT: Add a very simple finalizer implementation
C
mit
zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit
20a0bea197188ffa3e7abaffe030305bc63bd9c4
Libraries/PushNotificationIOS/RCTPushNotificationManager.h
Libraries/PushNotificationIOS/RCTPushNotificationManager.h
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <U...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <U...
Fix build - remove relative import path
Fix build - remove relative import path
C
bsd-3-clause
skevy/react-native,bsansouci/react-native,steben/react-native,udnisap/react-native,garrows/react-native,Lucifer-Kim/react-native,lzbSun/react-native,dabit3/react-native,Andreyco/react-native,darrylblake/react-native,DanielMSchmidt/react-native,christer155/react-native,zhangxq5012/react-native,janicduplessis/react-nativ...
7b43c67950f0985be257f5fb7d656557e24d92d9
arch/powerpc/perf/hv-common.h
arch/powerpc/perf/hv-common.h
#ifndef LINUX_POWERPC_PERF_HV_COMMON_H_ #define LINUX_POWERPC_PERF_HV_COMMON_H_ #include <linux/types.h> struct hv_perf_caps { u16 version; u16 collect_privileged:1, ga:1, expanded:1, lab:1, unused:12; }; unsigned long hv_perf_caps_get(struct hv_perf_caps *caps); #endif
#ifndef LINUX_POWERPC_PERF_HV_COMMON_H_ #define LINUX_POWERPC_PERF_HV_COMMON_H_ #include <linux/perf_event.h> #include <linux/types.h> struct hv_perf_caps { u16 version; u16 collect_privileged:1, ga:1, expanded:1, lab:1, unused:12; }; unsigned long hv_perf_caps_get(struct hv_perf_caps *caps); ...
Add macros for defining event fields & formats
powerpc/perf: Add macros for defining event fields & formats Add two macros which generate functions to extract the relevent bits from event->attr.config{,1,2}. EVENT_DEFINE_RANGE() defines an accessor for a range of bits in the event, as well as a "max" function that gives the maximum value of the field based on the...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
facf0422c56fc82a3a6d9097c582228b54ff2846
polygonmain.c
polygonmain.c
#include <polygon.h> int main(int argc, char* argv[]) { Polygon lol; lol=createPolygon(); lol=addPoint(lol, createPoint(12.6,-5.3)); lol=addPoint(lol, createPoint(-4.1,456.123)); printf("\n\nx premier point : %f", lol->value.x); printf("\ny premier point : %f\n\n", lol->value.y); printf("\n\nx 2eme point :...
#include <polygon.h> int main(int argc, char* argv[]) { Polygon lol; lol=createPolygon(); lol=addPoint(lol, createPoint(12.6,-5.3)); lol=addPoint(lol, createPoint(-4.1,456.123)); printf("\n\ntaille : %d", lol.size); printf("\n\nx premier point : %f", lol.head->value.x); printf("\ny premier point : %f\n\n",...
Print the size of the polygon
Print the size of the polygon
C
mit
UTBroM/GeometricLib
9d4afff04d96cc793aaddd386f8d138652ed9d6c
Pod/Classes/CMHErrors.h
Pod/Classes/CMHErrors.h
#import <Foundation/Foundation.h> #ifndef CMHErrors_h #define CMHErrors_h static NSString *const CMHErrorDomain = @"CMHErrorDomain"; typedef NS_ENUM(NSUInteger, CMHError) { CMHErrorUserMissingConsent = 700, CMHErrorUserMissingSignature = 701, CMHErrorUserDidNotConsent = 702, CMHErrorUse...
#import <Foundation/Foundation.h> #ifndef CMHErrors_h #define CMHErrors_h static NSString *const CMHErrorDomain = @"me.cloudmine.CMHealth.ErrorDomain"; typedef NS_ENUM(NSUInteger, CMHError) { CMHErrorUserMissingConsent = 700, CMHErrorUserMissingSignature = 701, CMHErrorUserDidNotConsent = 7...
Use Apple recommended format for error domain string
Use Apple recommended format for error domain string
C
mit
cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK
31a192f27be2444149748705c855e24f0e44a20d
dtool/src/parser-inc/Python.h
dtool/src/parser-inc/Python.h
// Filename: Python.h // Created by: drose (12May00) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have ...
// Filename: Python.h // Created by: drose (12May00) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have ...
Fix interrogate understanding of PY_VERSION_HEX
Fix interrogate understanding of PY_VERSION_HEX
C
bsd-3-clause
chandler14362/panda3d,mgracer48/panda3d,grimfang/panda3d,tobspr/panda3d,hj3938/panda3d,mgracer48/panda3d,ee08b397/panda3d,grimfang/panda3d,Wilee999/panda3d,hj3938/panda3d,mgracer48/panda3d,jjkoletar/panda3d,mgracer48/panda3d,Wilee999/panda3d,Wilee999/panda3d,brakhane/panda3d,jjkoletar/panda3d,ee08b397/panda3d,chandler1...
15980daa7ce97a67ebc430e6ed0aae180efdb490
nodes/examples/iwdg/main.c
nodes/examples/iwdg/main.c
#include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <stm32f4xx_hal.h> #include <board_driver/usb/usb.h> #include <board_driver/iwdg.h> int main(void) { usb_init(); HAL_Delay(1000); setup_IWDG(); init_IWDG(); char start[] = "Starting\r\n"; usb_transmit(start, sizeof(start)/sizeo...
#include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <stm32f4xx_hal.h> #include <board_driver/usb/usb.h> #include <board_driver/iwdg.h> int main(void) { usb_init(); HAL_Delay(1000); setup_IWDG(); init_IWDG(); printf("Starting\r\n"); while (1) { printf("Hello usb\r\n"); ...
Change example_iwdg to use printf instead of usb_transmit
Change example_iwdg to use printf instead of usb_transmit
C
mit
AAU-Racing/embedded_car,AAU-Racing/embedded_car,AAU-Racing/embedded_car
ac4b796c40c507d6f0c3c010ebdee6eabd683e4a
include/llvm/System/Signals.h
include/llvm/System/Signals.h
//===- llvm/System/Signals.h - Signal Handling support ----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
//===- llvm/System/Signals.h - Signal Handling support ----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
Add a function to remove whole directorys on fatal signal. Doxygenify function comments.
Add a function to remove whole directorys on fatal signal. Doxygenify function comments. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16079 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm...
bc887c89df35f64f0a19ee5789f8ad811a7691a5
src/graphics/style.h
src/graphics/style.h
// // Created by gravypod on 9/20/17. // #ifndef ENGINE_STYLE_H #define ENGINE_STYLE_H #include <duktape.h> void make_style(const char const *name, float width, float height, const char const *vertex_name, const char const *fragment_name); void draw_style(const char const *name, float...
// // Created by gravypod on 9/20/17. // #ifndef ENGINE_STYLE_H #define ENGINE_STYLE_H #include "lib/duktape/duktape.h" void make_style(const char const *name, float width, float height, const char const *vertex_name, const char const *fragment_name); void draw_style(const char const ...
Use local copy of duktape header.
Use local copy of duktape header.
C
mit
gravypod/solid-snake,gravypod/solid-snake,gravypod/solid-snake
c15b5da48b1fa3bec9315df8f66b7e36658d1742
include/pugl/pugl_cairo.h
include/pugl/pugl_cairo.h
/* Copyright 2012-2020 David Robillard <d@drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED "AS IS" AND THE ...
/* Copyright 2012-2020 David Robillard <d@drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED "AS IS" AND THE ...
Fix outdated function reference in Cairo documentation
Fix outdated function reference in Cairo documentation
C
isc
drobilla/pugl,drobilla/pugl,drobilla/pugl
1fb1e0ec9a8ab87985448e8b82b20884a186ec31
include/dt-bindings/sound/audio-jack-events.h
include/dt-bindings/sound/audio-jack-events.h
#ifndef __AUDIO_JACK_EVENTS_H #define __AUDIO_JACK_EVENTS_H #define JACK_HEADPHONE 1 #define JACK_MICROPHONE 2 #define JACK_LINEOUT 3 #define JACK_LINEIN 4 #endif /* __AUDIO_JACK_EVENTS_H */
Add jack types to dt-bindings
ASoC: Add jack types to dt-bindings Adding the jack type to the dt-bindings directory will allow for device tree files to specify the type of audio jacks that are present for a board. Signed-off-by: Dylan Reid <c791bfe44996c1eed9c7149a0c5f12a86d58eb85@chromium.org> Signed-off-by: Mark Brown <b51b9a92386687a9ac927cebf...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
a6cf12de9bae887b91767b2d3e1e4a4f64a410e9
3RVX/FakeKeyboard.h
3RVX/FakeKeyboard.h
#pragma once #include <Windows.h> class FakeKeyboard { public: static void SimulateKeypress(unsigned short vk) { INPUT input = { 0 }; input.type = INPUT_KEYBOARD; input.ki.wVk = vk; input.ki.wScan = 0; input.ki.dwFlags = 0; input.ki.time = 0; input.ki.dwExtr...
#pragma once #include <Windows.h> class FakeKeyboard { public: static void SimulateKeypress(unsigned short vk) { unsigned int scan = MapVirtualKey(vk, MAPVK_VK_TO_VSC); INPUT input[2]; input[0] = { 0 }; input[0].type = INPUT_KEYBOARD; input[0].ki.wVk = vk; input[0...
Send simulated keystrokes as a single atomic event
Send simulated keystrokes as a single atomic event
C
bsd-2-clause
malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX
c06d2e9315ecd8c1cda65aab7a2f024fd540c8ae
src/kernel/thread/idle_thread.c
src/kernel/thread/idle_thread.c
/** * @file * * @date Jul 18, 2013 * @author: Anton Bondarev */ #include <kernel/task.h> #include <kernel/thread.h> #include <kernel/thread/thread_alloc.h> #include <hal/arch.h> /*only for arch_idle */ #include <hal/cpu.h> #include <kernel/cpu/cpu.h> /* * Function, which does nothing. For idle_thread. */ sta...
/** * @file * * @date Jul 18, 2013 * @author: Anton Bondarev */ #include <kernel/task.h> #include <kernel/thread.h> #include <err.h> #include <kernel/thread/thread_alloc.h> #include <hal/arch.h> /*only for arch_idle */ #include <hal/cpu.h> #include <kernel/cpu/cpu.h> /* * Function, which does nothing. For idl...
Rework idle thread a little
thread: Rework idle thread a little
C
bsd-2-clause
embox/embox,Kefir0192/embox,Kefir0192/embox,abusalimov/embox,Kefir0192/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,Kakadu/embox,mike2390/embox,embox/embox,embox/embox,embox/embox,vrxfile/embox-trik,Kefir0192/embox,mike2390/embox,abusalimov/embox,embox/embox,gzoom13/embox,Kefir0192/embox,vrxfile/embox-trik,mike2390/e...
c5830a1737debef34ada45a42be2cd1858978898
src/ConfigurationManager.h
src/ConfigurationManager.h
#include "ArduinoHeader.h" #include <EEPROMex.h> #include <Logging.h> // Configuration version to determine data integrity. #define CONFIG_VERSION "000" // Size of the configuration block memory pool. #define CONFIG_MEMORY_SIZE 32 // EEPROM size. Bad things will happen if this isn't set correctly. #define CONFIG_EEP...
#include "ArduinoHeader.h" #include <EEPROMex.h> #include <Logging.h> // Configuration version to determine data integrity. #define CONFIG_VERSION "001" // Size of the configuration block memory pool. #define CONFIG_MEMORY_SIZE 32 // EEPROM size. Bad things will happen if this isn't set correctly. #define CONFIG_EEP...
Allow for loop delays up to 2^4 ms. Allow for baud rates up to 2^32.
Allow for loop delays up to 2^4 ms. Allow for baud rates up to 2^32. Signed-off-by: Kalman Olah <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d@kalmanolah.net>
C
mit
kalmanolah/kalmon-fw,kalmanolah/kalmon-fw
401825d6045ab8e3bd1514404e7c326a045a92ae
optional/capi/ext/proc_spec.c
optional/capi/ext/proc_spec.c
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(val) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strca...
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(args) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strc...
Fix typo in the commit a5312c77.
Fix typo in the commit a5312c77.
C
mit
julik/rubyspec,mrkn/rubyspec,no6v/rubyspec,ruby/spec,josedonizetti/rubyspec,wied03/rubyspec,timfel/rubyspec,jstepien/rubyspec,benburkert/rubyspec,Aesthetikx/rubyspec,timfel/rubyspec,iliabylich/rubyspec,rdp/rubyspec,alindeman/rubyspec,markburns/rubyspec,kachick/rubyspec,xaviershay/rubyspec,rdp/rubyspec,rkh/rubyspec,amar...
94faf605095f82734883f40c30da1a2154c4efa6
lib/libpam/libpam/security/pam_mod_misc.h
lib/libpam/libpam/security/pam_mod_misc.h
/*- * Copyright 1998 Juniper Networks, Inc. * 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 ...
Build structure for contribified Linux-PAM, plus some home-grown modules for FreeBSD's standard authentication methods. Although the Linux-PAM modules are present in the contrib tree, we don't use any of them.
Build structure for contribified Linux-PAM, plus some home-grown modules for FreeBSD's standard authentication methods. Although the Linux-PAM modules are present in the contrib tree, we don't use any of them. The main library "libpam" is composed of sources taken from three places. First are the standard Linux-PAM ...
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
2c22f2ef4105cb99c5fadf3bed796641c0993c79
include/config.h
include/config.h
#ifndef CONFIG_H_INCLUDED #define CONFIG_H_INCLUDED #define DBVERSION "0.0.5" #define IDXVERSION "0.0.5" #endif // CONFIG_H_INCLUDED
#ifndef CONFIG_H_INCLUDED #define CONFIG_H_INCLUDED #define DBVERSION "0.0.5" #define IDXVERSION "0.0.5" #define INITDB "i1" #endif // CONFIG_H_INCLUDED
Set default database to i1
Set default database to i1
C
bsd-3-clause
yorickdewid/Quantica,yorickdewid/Quantica,yorickdewid/Quantica,yorickdewid/Quantica
e15920730f75a94866f7cdc955e442aec0b722d4
gen_message_hashes/hash_func.h
gen_message_hashes/hash_func.h
static inline uint32_t hash_func_string(const char* key) { uint32_t hash = 0; int c; while ((c = *key++) != 0) hash = c + (hash << 6) + (hash << 16) - hash; return hash; }
static inline uint32_t hash_func_string(const char* key) { uint32_t hash = 0; uint32_t c; while ((c = (uint32_t)*key++) != 0) hash = c + (hash << 6u) + (hash << 16u) - hash; return hash; }
Correct signedness to prevent some warnings.
Correct signedness to prevent some warnings.
C
mit
gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet
2ead85de8a68ae2ae009acd7eb2439274d4ab50a
src/qt/bitcoinaddressvalidator.h
src/qt/bitcoinaddressvalidator.h
#ifndef BITCOINADDRESSVALIDATOR_H #define BITCOINADDRESSVALIDATOR_H #include <QValidator> /** Base48 entry widget validator. Corrects near-miss characters and refuses characters that are no part of base48. */ class BitcoinAddressValidator : public QValidator { Q_OBJECT public: explicit BitcoinAddressVali...
#ifndef BITCOINADDRESSVALIDATOR_H #define BITCOINADDRESSVALIDATOR_H #include <QValidator> /** Base58 entry widget validator. Corrects near-miss characters and refuses characters that are not part of base58. */ class BitcoinAddressValidator : public QValidator { Q_OBJECT public: explicit BitcoinAddressVal...
Fix typo in a comment: it's base58, not base48.
Fix typo in a comment: it's base58, not base48.
C
mit
dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,Earlz/dobbscoin-source,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source
1604bcf2799e03a3191187cbebf815af01a2cdc1
src/qhttpbasicauth_p.h
src/qhttpbasicauth_p.h
/* * Copyright (c) 2015 Nathan Osman * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publis...
/* * Copyright (c) 2015 Nathan Osman * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publis...
Fix runtime bug caused by typo.
Fix runtime bug caused by typo.
C
mit
nitroshare/qhttpengine
161140c5ddb1f695e03ac03648f5e11ea9204fdf
src/core/core.h
src/core/core.h
/** * --------------------------------------------------------------------------- * @file core.h * @brief The package header. * */ #pragma once #include "./types.h" #include "./error.h" #include "./fault.h" #include "./trace.h" #include "./results.h" #include "./cast.h"
/** * --------------------------------------------------------------------------- * @file core.h * @brief The package header. * */ #pragma once #include "./types.h" #include "./error.h" #include "./fault.h" #include "./trace.h" #include "./results.h" #include "./cast.h" #include "./memory.h"
Add memory module to package header
Add memory module to package header
C
mit
MaxRoecker/crux_algorithms-c,MaxRoecker/crux_algorithms-c
b5fdfdd0eebe56bb22c0e7b7c462689b2dc1370a
fmpz_mod_poly_factor/inlines.c
fmpz_mod_poly_factor/inlines.c
/*============================================================================= This file is part of FLINT. FLINT 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, ...
Add missing inline for accessing factors in fmpz_mod_poly.
Add missing inline for accessing factors in fmpz_mod_poly.
C
lgpl-2.1
wbhart/flint2,wbhart/flint2,fredrik-johansson/flint2,jpflori/flint2,jpflori/flint2,jpflori/flint2,wbhart/flint2,dsroche/flint2,dsroche/flint2,fredrik-johansson/flint2,dsroche/flint2,jpflori/flint2,dsroche/flint2,fredrik-johansson/flint2
8c7971542f8cdd52b4c570978a036f288bfb3dee
bst.h
bst.h
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); BSTNode* BSTNode_Create(void* k); void BST_Inorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Preorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Postor...
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); BSTNode* BSTNode_Create(void* k); void BST_Inorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Preorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Postor...
Add missing key comparison function parameter
Add missing key comparison function parameter Separate key comparison functions required Equality Order
C
mit
MaxLikelihood/CADT
9c73c8ef2859205a006eac2a31d43708f8e49dcd
list.c
list.c
#include "list.h" struct ListNode { ListNode* prev; ListNode* next; void* k; }; struct List { ListNode* head; }; List* List_Create(void) { List* l = (List *)malloc(sizeof(List)); l->head = NULL; return l; }
#include "list.h" struct ListNode { ListNode* prev; ListNode* next; void* k; }; struct List { ListNode* head; }; List* List_Create(void) { List* l = (List *)malloc(sizeof(List)); l->head = NULL; return l; } ListNode* ListNode_Create(void* k) { ListNode* n = (ListNode *)malloc(sizeof(ListNode)); n->prev = N...
Add List Node creation function implementation
Add List Node creation function implementation
C
mit
MaxLikelihood/CADT
0c14190ae46a470fe929a764e1ac8ada2236b330
test/CodeGen/2010-05-26-AsmSideEffect.c
test/CodeGen/2010-05-26-AsmSideEffect.c
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // Radar 8026855 int test (void *src) { register int w0 asm ("0"); // CHECK: call i32 asm "ldr $0, [$1]", "={ax},r,~{dirflag},~{fpsr},~{flags}"(i8* %tmp) asm ("ldr %0, [%1]": "=r" (w0): "r" (src)); return w0; }
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // Radar 8026855 int test (void *src) { register int w0 asm ("0"); // CHECK: call i32 asm "ldr $0, [$1]", "={ax},r,~{dirflag},~{fpsr},~{flags}"(i8* asm ("ldr %0, [%1]": "=r" (w0): "r" (src)); return w0; }
Rewrite match line to be friendlier to misc buildbots.
Rewrite match line to be friendlier to misc buildbots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136169 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
ab5f015eeed6c4d4bc72f0cf9dfc680b04832198
thb/src/codetree.h
thb/src/codetree.h
#ifndef CODETREE_H #define CODETREE_H #include "constants.h" typedef struct operation{ char *sign; bool isCommunitative; bool isAssociative; int precedence; } Operation; typedef struct node{ char *name; Operation *op; struct node *left; struct node *right; bool isRoot; int ran...
#ifndef CODETREE_H #define CODETREE_H #include "constants.h" typedef struct operation{ char *sign; bool isCommunitative; bool isAssociative; int precedence; } Operation; typedef struct node{ char *name; Operation *op; struct node *left; struct node *right; bool isRoot; int ran...
Test for new system clock
Test for new system clock
C
mit
danielvogel/Tree-Height-Balancing
06586a6203551b57e8e527a25d80d36458fe0051
src/tests/eina_test_main.c
src/tests/eina_test_main.c
/* EINA - EFL data type library * Copyright (C) 2008 Cedric Bail * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later...
/* EINA - EFL data type library * Copyright (C) 2008 Cedric Bail * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later...
Fix test due to mempool internal change.
Fix test due to mempool internal change. SVN revision: 36223
C
lgpl-2.1
gfriloux/eina,gfriloux/eina,turran/eina,gfriloux/eina,turran/eina,turran/eina
472c45932c0dbf733866a163c332cf546372ad84
src/Core/Exceptions/Exception.h
src/Core/Exceptions/Exception.h
#pragma once #include <exception> #include <string> namespace core { class Exception : public std::exception { public: Exception(); virtual ~Exception(); virtual char const * what() const override; protected: void setMessage(const std::string& message); private: std::string _message; }; }
#pragma once #include <exception> #include <string> namespace core { class Exception : public std::exception { public: Exception(); virtual ~Exception(); virtual char const * what() const throw() override; protected: void setMessage(const std::string& message); private: std::string _message; }; ...
Add throw to what() function for linux compile
Add throw to what() function for linux compile
C
mit
aphilippe/AppLauncher,aphilippe/ClappLauncher,aphilippe/AppLauncher,aphilippe/AppLauncher,aphilippe/ClappLauncher,aphilippe/ClappLauncher
682e9119abc404a15c8304567819ed8f81ee27ab
bikepath/SearchItem.h
bikepath/SearchItem.h
// // SearchItem.h // bikepath // // Created by Farheen Malik on 8/15/14. // Copyright (c) 2014 Bike Path. All rights reserved. // #import <Foundation/Foundation.h> @interface SearchItem : NSObject @end
// // SearchItem.h // bikepath // // Created by Farheen Malik on 8/15/14. // Copyright (c) 2014 Bike Path. All rights reserved. // #import <Foundation/Foundation.h> @interface SearchItem : NSObject @property NSString *searchQuery; @property (readonly) NSDate *creationDate; @end
Add property for search item object
Add property for search item object
C
apache-2.0
red-spotted-newts-2014/bike-path,hushifei/bike-path,red-spotted-newts-2014/bike-path
bb7e7b91b9d422d5fe2bb0483d0413c2e01c2679
solutions/uri/1015/1015.c
solutions/uri/1015/1015.c
#include <math.h> #include <stdio.h> int main() { float x1, y1, x2, y2; scanf("%f %f", &x1, &y1); scanf("%f %f", &x2, &y2); printf("%.4f\n", sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))); }
Solve Distance Between Two Points in c
Solve Distance Between Two Points 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...
cdef9ee855294e1a51f059dec548ab21425f4daf
ash/wm/window_selector_delegate.h
ash/wm/window_selector_delegate.h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ #define ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ #include "base/compiler_specific.h" namespace aura { class Window;...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ #define ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ #include "ash/ash_export.h" #include "base/compiler_specific.h" na...
Add ASH_EXPORT to base class of exported WindowSelectorController.
Add ASH_EXPORT to base class of exported WindowSelectorController. TBR=pkotwicz@chromium.org BUG=263477 TEST=Win Aura Builder compiles. Review URL: https://codereview.chromium.org/21527003 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@215043 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
patrickm/chromium.src,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,ChromiumWebApps/chromium,anirudhSK/chromium,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,crosswalk...
4446de2c5a3f327eb1780dead5970ad4fa4bc5f0
test/CodeGen/2007-06-18-SextAttrAggregate.c
test/CodeGen/2007-06-18-SextAttrAggregate.c
// RUN: %clang_cc1 %s -o - -emit-llvm | FileCheck %s // XFAIL: aarch64, arm64, x86_64-pc-win32, x86_64-w64-mingw32 // PR1513 // AArch64 ABI actually requires the reverse of what this is testing: the callee // does any extensions and remaining bits are unspecified. // Win64 ABI does expect extensions for type smaller...
// RUN: %clang_cc1 %s -o - -emit-llvm | FileCheck %s // XFAIL: aarch64, arm64, x86_64-pc-win32, x86_64-w64-mingw32, x86_64-pc-windows-gnu // PR1513 // AArch64 ABI actually requires the reverse of what this is testing: the callee // does any extensions and remaining bits are unspecified. // Win64 ABI does expect exte...
Add expected fail triple x86_64-pc-windows-gnu to test as x86_64-w64-mingw32 is already there
Add expected fail triple x86_64-pc-windows-gnu to test as x86_64-w64-mingw32 is already there git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@336047 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
5ea75f8b3388bc929fb980637b458ee629eaed39
include/seec/Transforms/BreakConstantGEPs/BreakConstantGEPs.h
include/seec/Transforms/BreakConstantGEPs/BreakConstantGEPs.h
//===- BreakConstantGEPs.h - Change constant GEPs into GEP instructions --- --// // // The SAFECode Compiler // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===-------------...
//===- BreakConstantGEPs.h - Change constant GEPs into GEP instructions --- --// // // The SAFECode Compiler // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===-------------...
Correct inconsistent use of override.
Correct inconsistent use of override.
C
mit
seec-team/seec,seec-team/seec,seec-team/seec,mheinsen/seec,mheinsen/seec,mheinsen/seec,mheinsen/seec,seec-team/seec,seec-team/seec,mheinsen/seec
76da6746559ec2b160a1443a5bffaaeca2f0c7c2
src/common/phys_mem_addr.h
src/common/phys_mem_addr.h
#ifndef GST_IMX_COMMON_PHYS_MEM_ADDR_H #define GST_IMX_COMMON_PHYS_MEM_ADDR_H #define GST_IMX_PHYS_ADDR_FORMAT "lx" typedef unsigned long gst_imx_phys_addr_t; #endif
#ifndef GST_IMX_COMMON_PHYS_MEM_ADDR_H #define GST_IMX_COMMON_PHYS_MEM_ADDR_H #define GST_IMX_PHYS_ADDR_FORMAT "#lx" typedef unsigned long gst_imx_phys_addr_t; #endif
Add 0x prefix to phys mem addr printf conversion specifier
common: Add 0x prefix to phys mem addr printf conversion specifier Signed-off-by: Carlos Rafael Giani <d7d2e6b3863b2910d2ca34828bc651c85d88df6f@pseudoterminal.org>
C
lgpl-2.1
Josuercuevas/gstreamer-imx,commshare/gstreamer-imx,Josuercuevas/gstreamer-imx,commshare/gstreamer-imx
d4f93813a98363ec5519ae1ebeeba7d9e55154ac
main.c
main.c
// This is the actual main program int main(int argc, const char *argv[]) { }
// This is the actual main program #include "lorito.h" #include "microcode.h" #include "interp.h" #include "loader.h" int main(int argc, const char *argv[]) { int i; Lorito_Interp *interp; if (argc < 2) { fprintf(stderr, "Usage: lorito <bytecodefiles>\n"); return 255; } interp = lorito_init(); ...
Add all the glue together to have an interpreter actually run.
Add all the glue together to have an interpreter actually run.
C
artistic-2.0
atrodo/lorito,atrodo/lorito
e9b5d3e4c0d690b50cc9a04b2aaec37381e22854
alura/c/forca.c
alura/c/forca.c
#include <stdio.h> int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); printf("%s\n", palavrasecreta); /* palavrasecreta[0] = 'M'; palavrasecreta[1] = 'E'; palavrasecreta[2] = 'L'; palavrasecreta[3] = 'A'; palavrasecreta[4] = 'N'; palavrasecreta[5] = 'C'; palavrasecreta[...
#include <stdio.h> int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); int acertou = 0; int enforcou = 0; do { // comecar o nosso jogo!! } while(!acertou && !enforcou); }
Update files, Alura, Introdução a C - Parte 2, Aula 2.3
Update files, Alura, Introdução a C - Parte 2, Aula 2.3
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
ec647d24eb10e22e3f54acc0e22c9a9b91a2b6f7
cc1/tests/test008.c
cc1/tests/test008.c
/* name: TEST008 description: Basic do while loop output: F1 G1 F1 main { - A2 I x A2 #I0 :I d L3 A2 A2 #I1 +I :I j L3 A2 #IA <I b L4 d L5 A2 A2 #I1 +I :I j L5 A2 #I14 <I b L6 yI A2 #I14 -I } */ int main() { int x; x = 0; do x = x + 1; while(x < 10); do { x = x + 1; } while(x < 20); retu...
Add basic test for do while statements
Add basic test for do while statements
C
mit
k0gaMSX/kcc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc
a714c4de411c309937f64b47cc6cddca00bd8cf2
example/log_example.c
example/log_example.c
// cc log_example.c log.c -rdynamic #include "log.h" char make_segmentfault() { char *s = NULL; char ch = s[1]; // segment fault return ch; } int main(int argc, const char *argv[]) { /* open global logger to stderr (by setting filename to NULL) */ log_open("example", NULL, 0); /* set log leve...
// cc log_example.c log.c -rdynamic #include "log.h" char make_segmentfault() { char *s = NULL; char ch = s[1]; // segment fault return ch; } int main(int argc, const char *argv[]) { /* open global logger to stderr (by setting filename to NULL) */ log_open("example", NULL, 0); /* set log leve...
Add example for log with formatting args
Add example for log with formatting args
C
bsd-2-clause
hit9/C-Snip,hit9/C-Snip
abe29dda2ea228193d992dd4bb14aa475f717a41
thingc/execution/Opcode.h
thingc/execution/Opcode.h
#pragma once enum class Opcode { INVALID = 0, NOP = 1, PUSH = 2, PUSH_STATIC = 3, POP = 4, SET = 5, CALL = 6, CALL_METHOD = 7, CALL_INTERNAL = 8, RETURN = 9, PRINT = 10, METHOD_END = 11 };
#pragma once enum class Opcode { INVALID = 0, NOP = 1, PUSH = 2, // pushes a reference into the stack PUSH_STATIC = 3, // pushes static data into the stack POP = 4, // pop anything to void SET = 5, // pop a reference from the stack and assign it SET_STATIC = 6, // set a reference to static data CALL = 7, ...
Add SET_STATIC opcode to enum
Add SET_STATIC opcode to enum
C
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
a63caaab3d00381da13c06c6efcc6c740acd0023
tests/bigfile2.c
tests/bigfile2.c
/* * 06/21/2016: bigfile2.c */ #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <stdlib.h> #include <unistd.h> main(int argc, char *argv[]) { long val; char *buf, *filename; int error = 0, readonly = 0; size_t i, j, c, fd, seed, size, bsize, nblocks; bsize = 5678; nblocks = 12345; seed = get...
Add a big file test
Add a big file test
C
isc
pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable
5344e1aff866658297912428255b7609d65d2cc0
src/main.c
src/main.c
/*! @file main.c @brief A simple test program for the C library code. */ #include "stdio.h" #include "verilog_parser.h" int main(int argc, char ** argv) { if(argc < 2) { printf("ERROR. Please supply at least one file path argument.\n"); return 1; } else { int F = 0; ...
/*! @file main.c @brief A simple test program for the C library code. */ #include "stdio.h" #include "verilog_parser.h" int main(int argc, char ** argv) { if(argc < 2) { printf("ERROR. Please supply at least one file path argument.\n"); return 1; } else { int F = 0; ...
Print name of test before parsing it - easier to identify segfaulting tests. On branch master Your branch is up-to-date with 'github/master'.
Print name of test before parsing it - easier to identify segfaulting tests. On branch master Your branch is up-to-date with 'github/master'. Changes to be committed: modified: src/main.c Changes not staged for commit: modified: src/verilog_ast.c modified: src/verilog_ast.h modified: src/verilog_parse...
C
mit
ben-marshall/verilog-parser,ben-marshall/verilog-parser,ben-marshall/verilog-parser
7170e354b9999cd3d19459f3b902287b6b329e6f
test/CodeGen/branch-on-bool.c
test/CodeGen/branch-on-bool.c
// RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s void foo(); void bar(); void fold_if(int a, int b) { // CHECK: define {{.*}} @fold_if( // CHECK-NOT: = phi // CHECK: } if (a && b) foo(); else bar(); } void fold_for(int a, int b) { // CHECK: define {{.*}} @fold_for( // CHECK-NOT: = phi ...
Test that simple expressions are simplified at -O0
CodeGen: Test that simple expressions are simplified at -O0 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@193995 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
78a7a88da94ee3e6972485ceca00be8519212025
mt.h
mt.h
#ifndef _MATH_MT_H_ #define _MATH_MT_H_ #if defined(_MSC_VER) && (_MSC_VER <= 1300) typedef unsigned __int32 uint32_t; #elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__) #include <stdint.h> #elif defined(__osf__) #include <inttypes.h> #else #include <sys/types.h> #endif enum { N = 624, M = 397 }; s...
#ifndef _MATH_MT_H_ #define _MATH_MT_H_ #if defined(_MSC_VER) && (_MSC_VER <= 1300) typedef unsigned __int32 uint32_t; #elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__) || defined(__APPLE__) #include <stdint.h> #elif defined(__osf__) #include <inttypes.h> #else #include <sys/types.h> #endif enum { ...
Fix OS X build failure
Fix OS X build failure
C
bsd-3-clause
amenonsen/Math-Random-MT,amenonsen/Math-Random-MT
36a0988c4468386c7d52d9c1ff4cc09b615f4bf9
bst.c
bst.c
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; } BSTNode* BSTNode_Create(void* k) { BS...
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; } BSTNode* BSTNode_Create(void* k) { BS...
Add BST preorder traversal function implementation
Add BST preorder traversal function implementation
C
mit
MaxLikelihood/CADT
287e9adfce378bf1beba3406d09fed0a8b72c433
lib/msun/src/w_cabs.c
lib/msun/src/w_cabs.c
/* * cabs() wrapper for hypot(). * * Written by J.T. Conklin, <jtc@wimsey.com> * Placed into the Public Domain, 1994. */ #include <math.h> struct complex { double x; double y; }; double cabs(z) struct complex z; { return hypot(z.x, z.y); }
/* * cabs() wrapper for hypot(). * * Written by J.T. Conklin, <jtc@wimsey.com> * Placed into the Public Domain, 1994. */ #include <math.h> struct complex { double x; double y; }; double cabs(z) struct complex z; { return hypot(z.x, z.y); } double z_abs(z) struct complex *z; { return hypot(z->x, z->y); }...
Add missing z_abs. In BSD tradition this is in libm.a.
Add missing z_abs. In BSD tradition this is in libm.a.
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
2ceb17a890c54dd67c0078879b2aba9e726ec2c3
lambda/ol-init.c
lambda/ol-init.c
#include <unistd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> char **params; // double fork to avoid zombies and exec the python server void signal_handler() { if (fork() == 0) { execv(params[0], params); } return; } int main(int argc, char *argv[])...
#include <unistd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> char **params; /* * Launch the lambda server. */ void signal_handler() { if (fork() == 0) { execv(params[0], params); } return; } /* * Install the handler and block all other signals w...
Use sigaction instead of signal
Use sigaction instead of signal Signal is not portable. It is better to use sigaction so we can also prevent other signals from interrupting us just in case.
C
apache-2.0
open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda
47ad5dcd384900b68596fa0cd93e8193d1af16fb
blocks/mdaqled.h
blocks/mdaqled.h
#ifndef __MDAQLED_H #define __MDAQLED_H #ifndef MATLAB_MEX_FILE #include "gpio.h" #endif void mdaqled_init(void); void mdaqled_set(unsigned char led, unsigned char state); #endif
#ifndef __MDAQLED_H #define __MDAQLED_H #if (!defined MATLAB_MEX_FILE) && (!defined MDL_REF_SIM_TGT) #include "gpio.h" #endif void mdaqled_init(void); void mdaqled_set(unsigned char led, unsigned char state); #endif
Make LED block compatible with PIL in model reference
Make LED block compatible with PIL in model reference
C
bsd-2-clause
kyak/microdaq_ert,kyak/microdaq_ert,kyak/microdaq_ert
a43d894adb388b3da6c3dc2ab467b022e4d52d05
cxl.c
cxl.c
#include <stdio.h> #include <string.h> #include <X11/Xlib.h> #include <X11/XKBlib.h> #include <X11/extensions/XKBrules.h> int main(int argc, char *argv[]) { Display *display = XOpenDisplay(NULL); XkbEvent event; XkbRF_VarDefsRec varDefs; XkbStateRec state; char *tmp = NULL; char *groups[XkbNumK...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <X11/Xlib.h> #include <X11/XKBlib.h> #include <X11/extensions/XKBrules.h> #define DELIMETER "," #define LAYOUT_FORMAT "%s\r\n" int main(int argc, char *argv[]) { int rc = EXIT_FAILURE; XkbEvent event; XkbRF_VarDefsRec vd; XkbStateRec ...
Return codes of XLib functions are handled
Return codes of XLib functions are handled Code formated to the K&R style. Added program exit code. All significant return codes for XLib functions are handled. Free resources allocated by XLib. However sigterm should be handled to get this actually working.
C
mit
panurg/cxl
7f3ce6f442512362e934b8b80b86b08fe7a3b319
ch05/ex5.c
ch05/ex5.c
/* Program that verifies that duplicated file descriptors share a file offset and open file status flags. */ #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <assert.h> void exitErr(const char* msg); int main(__attribute__((unused)) int _argc, __attribute__((unused)) char **...
Add fifth exercise from chapter 5.
Add fifth exercise from chapter 5.
C
mit
carlosgaldino/lpi
30d230d81df0a41cff6841dafa96b10bf00b3251
obexd/plugins/ebook.c
obexd/plugins/ebook.c
/* * * OBEX Server * * Copyright (C) 2007-2008 Marcel Holtmann <marcel@holtmann.org> * * * 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 * (a...
Add skeleton for EBook plugin
obexd: Add skeleton for EBook plugin
C
lgpl-2.1
mapfau/bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,ComputeCycles/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,silent-snowman/bluez,mapfau/bluez,s...
29078e0cee0384fd8f8863257491ef3cfdea8dfb
src/iterator.h
src/iterator.h
#ifndef ITERATOR_H #define ITERATOR_H struct iterator { size_t index; void *iterable; void *current; void *(*next)(struct iterator *this); void (*destroy)(struct iterator *this); }; struct iterator *iterator_create(void *iterable, void *(*next)(struct iterator *)); void iterator_destroy(struct it...
#ifndef ITERATOR_H #define ITERATOR_H #include <stdlib.h> struct iterator { size_t index; void *iterable; void *current; void *(*next)(struct iterator *this); void (*destroy)(struct iterator *this); }; struct iterator *iterator_create(void *iterable, void *(*next)(struct iterator *)); void itera...
Include stdlib to get size_t.
Include stdlib to get size_t.
C
mit
dgraham/libds,dgraham/libds