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
c5142c547ffbe1cbbe5aa83e56f9c67d63c96606
lib/Target/R600/AMDGPUAsmPrinter.h
lib/Target/R600/AMDGPUAsmPrinter.h
//===-- AMDGPUAsmPrinter.h - Print AMDGPU assembly code -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- AMDGPUAsmPrinter.h - Print AMDGPU assembly code ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix missing C++ mode comment
Fix missing C++ mode comment git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@194339 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirro...
9089cca24db36608825598e1cd32451a8e20bb2f
src/libaacs/aacs.h
src/libaacs/aacs.h
/* * libaacs by Doom9 ppl 2009, 2010 */ #ifndef AACS_H_ #define AACS_H_ #include <stdint.h> #include "../file/configfile.h" #define LIBAACS_VERSION "1.0" typedef struct aacs AACS; struct aacs { uint8_t pk[16], mk[16], vuk[16], vid[16]; uint8_t *uks; /* unit key array (size = 16 * num_uks, each ...
/* * libaacs by Doom9 ppl 2009, 2010 */ #ifndef AACS_H_ #define AACS_H_ #include "../file/configfile.h" #include <stdint.h> #define LIBAACS_VERSION "1.0" typedef struct aacs AACS; struct aacs { uint8_t pk[16], mk[16], vuk[16], vid[16]; uint8_t *uks; /* unit key array (size = 16 * num_uks, each ...
Move inclusion of internal headers before system headers
Move inclusion of internal headers before system headers
C
lgpl-2.1
rraptorr/libaacs,zxlooong/libaacs,zxlooong/libaacs,ShiftMediaProject/libaacs,mwgoldsmith/aacs,rraptorr/libaacs,ShiftMediaProject/libaacs,mwgoldsmith/aacs
54eeba75d3914e457204a159a7888fc19e50a6dc
test/CodeGen/may-alias.c
test/CodeGen/may-alias.c
// RUN: %clang_cc1 -Werror -triple i386-unknown-unknown -emit-llvm -O1 -disable-llvm-optzns -o %t %s // RUN: FileCheck < %t %s // Types with the may_alias attribute should be considered equivalent // to char for aliasing. typedef int __attribute__((may_alias)) aliasing_int; void test0(aliasing_int *ai, int *i) { *...
// RUN: %clang_cc1 -Werror -triple i386-unknown-unknown -emit-llvm -O1 -disable-llvm-optzns -o %t %s // RUN: FileCheck < %t %s // Types with the may_alias attribute should be considered equivalent // to char for aliasing. typedef int __attribute__((may_alias)) aliasing_int; void test0(aliasing_int *ai, int *i) { *...
Generalize this test to work without instruction names.
Generalize this test to work without instruction names. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@121742 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
b2c0eb6364d545a0083ec3d1cb55ea04fa6c6e2a
src/synchronizer.h
src/synchronizer.h
// // synchronizer.h // P2PSP // // This code is distributed under the GNU General Public License (see // THE_GENERAL_GNU_PUBLIC_LICENSE.txt for extending this information). // Copyright (C) 2016, the P2PSP team. // http://www.p2psp.org // #include <boost/format.hpp> #include <boost/program_options/parsers.hpp> ...
// // synchronizer.h // P2PSP // // This code is distributed under the GNU General Public License (see // THE_GENERAL_GNU_PUBLIC_LICENSE.txt for extending this information). // Copyright (C) 2016, the P2PSP team. // http://www.p2psp.org // #include <boost/format.hpp> #include <boost/program_options/parsers.hpp> ...
Add thread group to manage threads
Add thread group to manage threads
C
mit
hehaichi/p2psp-experiments,hehaichi/p2psp-experiments,hehaichi/p2psp-experiments
91f66b016cb667a05e5e7803a61c6ff1cc7fc8c2
include/dsnutil/singleton.h
include/dsnutil/singleton.h
/// \file /// \brief Singleton design pattern /// /// \author Peter 'png' Hille <peter@das-system-networks.de> #ifndef SINGLETON_HH #define SINGLETON_HH 1 #include <dsnutil/compiler_features.h> namespace dsn { /// \brief Template for singleton classes /// /// This template can be used to implement the "singleton" des...
/// \file /// \brief Singleton design pattern /// /// \author Peter 'png' Hille <peter@das-system-networks.de> #ifndef SINGLETON_HH #define SINGLETON_HH 1 #include <dsnutil/compiler_features.h> namespace dsn { /// \brief Template for singleton classes /// /// This template can be used to implement the "singleton" des...
Add Doxygen comments for new Singleton methods
Add Doxygen comments for new Singleton methods
C
bsd-3-clause
png85/dsnutil_cpp
aeccf8f850023bbf8f87739d02eb10d4b6ec406a
c/homeworks/hw2/5.c
c/homeworks/hw2/5.c
/* * The decimal number, 585 = 1001001001 (binary), is palindromic in both bases. * Find the sum of all numbers, less than 5 000 000, which are palindromic in * base 10 and base 2. (Please note that the palindromic number, in either base, * may not include leading zeros.) */ #include <stdio.h> #include <string.h>...
Transform from base 10 in whatever base you want
Transform from base 10 in whatever base you want
C
apache-2.0
vtemian/university_projects,vtemian/university_projects,vtemian/university_projects
8ce936c7be896a867a44ce4a4d39b44f4dc7c9b5
UsbDk/Public.h
UsbDk/Public.h
/* * UsbDk filter/redirector driver * * Copyright (c) 2013 Red Hat, Inc. * * Authors: * Dmitry Fleytman <dfleytma@redhat.com> * */ #pragma once #include "UsbDkData.h" #include "UsbDkNames.h" #define USBDK_DEVICE_TYPE 50000 // UsbDk Control Device IOCTLs #define IOCTL_USBDK_COUNT_DEVICES \ ULONG(CTL_CODE( USB...
/* * UsbDk filter/redirector driver * * Copyright (c) 2013 Red Hat, Inc. * * Authors: * Dmitry Fleytman <dfleytma@redhat.com> * */ #pragma once #include "UsbDkData.h" #include "UsbDkNames.h" #define USBDK_DEVICE_TYPE 50000 // UsbDk Control Device IOCTLs #define IOCTL_USBDK_COUNT_DEVICES \ ULONG(CTL_CODE( USB...
Fix control device IOCTLS access type
UsbDk: Fix control device IOCTLS access type Signed-off-by: Dmitry Fleytman <f50f56ffad4b379c2a89812e98b14900ef87e9ea@redhat.com>
C
apache-2.0
SPICE/win32-usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk,daynix/UsbDk,SPICE/win32-usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk,daynix/UsbDk
e8d91bde77671b2448d041a05ef6ebbec13d8668
src/components/include/test/application_manager/mock_app_extension.h
src/components/include/test/application_manager/mock_app_extension.h
/* * Copyright (c) 2018, Ford Motor Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of condit...
Add mock for AppExtension class
Add mock for AppExtension class
C
bsd-3-clause
smartdevicelink/sdl_core,smartdevicelink/sdl_core,smartdevicelink/sdl_core,smartdevicelink/sdl_core
93493c306432d030d91ef0d27f5dd5314eb1cab4
scivis/pup_operators.h
scivis/pup_operators.h
#pragma once #include <glm/glm.hpp> #include "sv/scivis.h" inline void operator|(PUP::er &p, sv::VolumeDType &dtype) { if (p.isUnpacking()) { int t = 0; p | t; dtype = (sv::VolumeDType)t; } else { int t = dtype; p | t; } } inline void operator|(PUP::er &p, glm::uvec3 &v) { p | v.x; p | v.y; p | v.z; }...
Add operators for some types for PUP
Add operators for some types for PUP
C
mit
Twinklebear/Charm-experiments,Twinklebear/Charm-experiments,Twinklebear/Charm-experiments
5d4adccfabf26f2995b6726a75fdde281e20e8ac
texor.c
texor.c
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disableRawMode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enableRawMode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disableRawMode); struct termios r...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disableRawMode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enableRawMode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disableRawMode); struct termios r...
Disable a few misc flags
Disable a few misc flags
C
bsd-2-clause
kyletolle/texor
46f1e784fefa16719ec7dcbf9ccc4270656fc7df
TWRBorderedView/TWRBorderedView.h
TWRBorderedView/TWRBorderedView.h
// // TWRBorderedView.h // TWRBorderedView // // Created by Michelangelo Chasseur on 15/04/14. // Copyright (c) 2014 Touchware. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_OPTIONS(NSUInteger, TWRBorderMask) { TWRBorderMaskTop = 1 << 0, TWRBorderMaskBottom = 1 << 1, TWRBorderMaskL...
// // TWRBorderedView.h // TWRBorderedView // // Created by Michelangelo Chasseur on 15/04/14. // Copyright (c) 2014 Touchware. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_OPTIONS(NSUInteger, TWRBorderMask) { TWRBorderMaskTop = 1 << 0, TWRBorderMaskBottom = 1 << 1, TWRBorderMaskL...
Fix spelling in property naming.
Fix spelling in property naming.
C
mit
chasseurmic/TWRBorderedView,ChetanGandhi/TWRBorderedView
9a00f8af17d4b4d5810c04f9861217014df99dc2
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged. --HG-- branch : HEAD
C
mit
jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch
b4c0e72db659adff77f16277cf8634d6efc32a51
VisualPractice/commands.h
VisualPractice/commands.h
#ifndef TE_COMMANDS_H #define TE_COMMANDS_H #include <functional> #include <map> #include <SDL_keycode.h> #include <SDL_events.h> #include <memory> namespace te { class Rectangle; enum class Action { UP, DOWN }; typedef std::function<void()> Command; typedef std::map<Action, Command> CommandMap; ...
#ifndef TE_COMMANDS_H #define TE_COMMANDS_H #include <functional> #include <map> #include <SDL_keycode.h> #include <SDL_events.h> #include <memory> namespace te { class Rectangle; enum class Action { UP, DOWN }; //typedef std::function<void()> Command; //typedef std::map<Action, Command> CommandMap...
Comment out old Command to avoid name collisions
Comment out old Command to avoid name collisions
C
mit
evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngineOriginal
093693a7dc5c39d74498bb99fa3f9782fdad63f1
test2/int_overflow/trapv_shift.c
test2/int_overflow/trapv_shift.c
// RUN: %ucc -ftrapv -fno-const-fold -o %t %s // RUN: %t; [ $? -ne 0 ] main() { int x; // ensure powers of two aren't shift-converted, as overflow can't catch this x = -3 * 0x4000000000000000; return 0; }
// RUN: %ocheck SIGILL %s -ftrapv -fno-const-fold -DT=int // RUN: %ocheck SIGILL %s -ftrapv -fno-const-fold -DT=long // RUN: %ocheck 0 %s -fno-const-fold -DT=int // RUN: %ocheck 0 %s -fno-const-fold -DT=long main() { // test with T being both int and long, to check how truncations are dealt with T x; // ensure pow...
Update trapv tests with explicit signal name
Update trapv tests with explicit signal name
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
54e41dd08a06f978a6d123f19f5bbe39370f04ea
audio/null_audio_poller.h
audio/null_audio_poller.h
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Remove const from ThreadChecker in NullAudioPoller.
Remove const from ThreadChecker in NullAudioPoller. TBR=henrika@webrtc.org,solenberg@webrtc.org Bug: webrtc:8482 Change-Id: Ib2738224e776618c692db95cd9473335bc17be15 Reviewed-on: https://webrtc-review.googlesource.com/17540 Commit-Queue: Björn Terelius <efeae16329b3cb4ac5daf80d4bfda3344c027db3@webrtc.org> Reviewed-by...
C
bsd-3-clause
TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc
5be6eff496407146af24c8e85ae2c560b40eeab8
src/safe_memory.c
src/safe_memory.c
#include "safe-c/safe_memory.h" #include <stdio.h> #include <stdlib.h> #include <string.h> void* safe_malloc_function(size_t size, const char* calling_function) { if (size == 0) { fprintf(stderr, "Error allocating memory: The function %s called " "'safe_malloc' and requested zero memor...
#include "safe-c/safe_memory.h" #include <stdio.h> #include <stdlib.h> #include <string.h> void* safe_malloc_function(size_t size, const char* calling_function) { if (size == 0) { fprintf(stderr, "Error allocating memory: The function %s called " "'safe_malloc' and requested zero memor...
Add value parameter to fprintf in safe_malloc
Fix: Add value parameter to fprintf in safe_malloc Changed the value type in the `fprintf` from `u` to `zu`, this is because `size` is of type `size_t` and not `unsigned int`. In addation, asign the return value of memset to `memory`.
C
mit
VanJanssen/safe-c,ErwinJanssen/elegan-c,VanJanssen/elegan-c
2dcd6e7fb0ec86accdf06f9ebd4ad72a54b48fcd
servo.c
servo.c
/** * This program sets up a 50 Hz PWM and a basic UART command structure. * Users may connect to the UART and send one byte at a time to make up * more complex commands. The basic layout of the command format is * like this: [B_1,B_2,0xFE], with the commas, brackets, and quotes all * being abstract (e.g. not rea...
Add a missing file, even though it doesn't do much right now.
Add a missing file, even though it doesn't do much right now.
C
mpl-2.0
grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr
174758bdd8ff7b763e274ccd6cfe84bf73f91f68
trace.h
trace.h
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else #define TRACE(fmt,arg...) ((void) 0) #endif #define ERROR(fmt,arg...) \ fprintf(stderr, "%s:%s:%d: "fmt, program_invocation_short_name, __func__, __LINE__, ##arg) #define FATAL(fmt,arg...) do { \ ER...
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else #define TRACE(fmt,arg...) ((void) 0) #endif #ifdef DEBUG #define ERROR(fmt,arg...) \ fprintf(stderr, "%s:%d: "fmt, __func__, __LINE__, ##arg) #else #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt...
Add __func__, __LINE__ to TRACE if DEBUG, otherwise add progname.
Add __func__, __LINE__ to TRACE if DEBUG, otherwise add progname.
C
lgpl-2.1
TACCProjects/tacc_stats,aaichsmn/tacc_stats,TACCProjects/tacc_stats,rtevans/tacc_stats_old,TACCProjects/tacc_stats,dimm0/tacc_stats,TACC/tacc_stats,TACC/tacc_stats,sdsc/xsede_stats,ubccr/tacc_stats,dimm0/tacc_stats,ubccr/tacc_stats,sdsc/xsede_stats,sdsc/xsede_stats,aaichsmn/tacc_stats,ubccr/tacc_stats,TACC/tacc_stats,u...
a198c3d0393faa1fa9f0e6e917ce980d3638f8df
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2008 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.02.01-k1" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 2 #define QLA_DRIVER_PATCH_VER 1 #define...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2008 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.02.01-k2" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 2 #define QLA_DRIVER_PATCH_VER 1 #define...
Update version number to 8.02.01-k2.
[SCSI] qla2xxx: Update version number to 8.02.01-k2. Signed-off-by: Andrew Vasquez <67840a4977006af7f584bdc4c86d7243c1629cad@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@HansenPartnership.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,Krist...
cf3059a12936f8e92876e56b50bcdb092be70645
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k13"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k14"
Update driver version to 5.02.00-k14
[SCSI] qla4xxx: Update driver version to 5.02.00-k14 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,Krist...
04fedf7ef8260ffbb1bbefc214aae279a62f6973
SSPSolution/SSPSolution/DoorEntity.h
SSPSolution/SSPSolution/DoorEntity.h
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> class DoorEntity : public Entity { private: struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; std::vector<ElementState> m_elementStates; bool...
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> class DoorEntity : public Entity { private: /*struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; std::vector<ElementState> m_elementStates;*/ ...
UPDATE Commented out some test code
UPDATE Commented out some test code
C
apache-2.0
Chringo/SSP,Chringo/SSP
97560dd8e208d7b7fc2262cef135a3cbcaeae2eb
components/libc/mmap/posix_mmap.c
components/libc/mmap/posix_mmap.c
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2017/11/30 Bernard The first version. */ #include <stdint.h> #include <stdio.h> #include <rtthread.h> #include <dfs_posix.h> #include <sys/mman.h> ...
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2017/11/30 Bernard The first version. */ #include <stdint.h> #include <stdio.h> #include <rtthread.h> #include <dfs_posix.h> #include <sys/mman.h> ...
Fix the addr=NULL issue in mmap.
[libc] Fix the addr=NULL issue in mmap.
C
apache-2.0
RT-Thread/rt-thread,gbcwbz/rt-thread,weety/rt-thread,weiyuliang/rt-thread,RT-Thread/rt-thread,RT-Thread/rt-thread,nongxiaoming/rt-thread,geniusgogo/rt-thread,armink/rt-thread,armink/rt-thread,nongxiaoming/rt-thread,AubrCool/rt-thread,RT-Thread/rt-thread,gbcwbz/rt-thread,geniusgogo/rt-thread,hezlog/rt-thread,hezlog/rt-t...
e0ff8228425c0235e4d352460c203d43f6a24a19
util/InputState.h
util/InputState.h
#ifndef INPUTSTATE_H #define INPUTSTATE_H #include <SDL2/SDL.h> #undef main #include <map> class InputState { public: enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN }; InputState(); void readInputState(); bool getKeyState(KeyFunction f); int getAbsoluteMouseX() { return mouse_x; }; int ge...
#ifndef INPUTSTATE_H #define INPUTSTATE_H #include <SDL2/SDL.h> #undef main #include <map> class InputState { public: enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN }; InputState(); void readInputState(); bool getKeyState(KeyFunction f); int getAbsoluteMouseX() { return mouse_x; }; int ge...
Change key state array constness.
Change key state array constness. Fixed for compatibility with upstream SDL2.
C
mit
pstiasny/derpengine,pstiasny/derpengine
7b1b9a38211b3d24d7e546c1f8314e17eea73391
oscl/oscl_base.h
oscl/oscl_base.h
/* ------------------------------------------------------------------ * Copyright (C) 2009 Martin Storsjo * * 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...
/* ------------------------------------------------------------------ * Copyright (C) 2009 Martin Storsjo * * 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...
Use suggested change from Martin in defining OSCL_UNUSED_ARG.
Use suggested change from Martin in defining OSCL_UNUSED_ARG.
C
apache-2.0
Distrotech/opencore-amr,KurentoLegacy/opencore-amr,KurentoLegacy/opencore-amr,VFR-maniac/opencore-amr,BelledonneCommunications/opencore-amr,yxl/opencore-amr-js,lyx2014/-opencore-amr,yxl/opencore-amr-js,VFR-maniac/opencore-amr,BelledonneCommunications/opencore-amr,jiangjianping/opencore-amr,VFR-maniac/opencore-amr,lyx20...
b767e4fe4d8f4ff89dbd4a4c95352511e983162f
src/libcol/include/util/error.h
src/libcol/include/util/error.h
#ifndef ERROR_H #define ERROR_H /* * Note that we include "fmt" in the variadic argument list, because C99 * apparently doesn't allow variadic macros to be invoked without any vargs * parameters. */ #define ERROR(...) var_error(__FILE__, __LINE__, __VA_ARGS__) #define FAIL() simple_error(__FILE__, __...
#ifndef ERROR_H #define ERROR_H /* * Note that we include "fmt" in the variadic argument list, because C99 * apparently doesn't allow variadic macros to be invoked without any vargs * parameters. */ #define ERROR(...) var_error(__FILE__, __LINE__, __VA_ARGS__) #define FAIL() simple_error(__FILE__, __...
Use GCC "noreturn" function attribute.
Use GCC "noreturn" function attribute.
C
mit
bloom-lang/c4,bloom-lang/c4,bloom-lang/c4
017146d8004a683cfb9fef68095a238372ba1743
include/nekit/config.h
include/nekit/config.h
// MIT License // Copyright (c) 2017 Zhuhao Wang // 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, mer...
// MIT License // Copyright (c) 2017 Zhuhao Wang // 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, mer...
Enlarge default buffer size limit
FEAT: Enlarge default buffer size limit
C
mit
zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit
421139c98b8f202d8a3f5c7667cec95271ae0238
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
Add assert fail/success comments to 13/32
Add assert fail/success comments to 13/32
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
5bf537f29920a7a3c9db7792666b3af281f203e4
src/plugins/cpu.c
src/plugins/cpu.c
#include <uv.h> #include <estragon.h> #ifdef __sun #include <sys/pset.h> #include <sys/loadavg.h> #endif static uv_timer_t cpu_timer; void send_cpu_usage(uv_timer_t *timer, int status) { double loadinfo[3]; #ifdef DEBUG printf("cpu usage timer fired, status %d\n", status); #endif #ifdef __sun /* On SunOS, if w...
#include <uv.h> #include <estragon.h> #ifdef __sun #include <sys/pset.h> #include <sys/loadavg.h> #endif static uv_timer_t cpu_timer; void send_cpu_usage(uv_timer_t *timer, int status) { double loadinfo[3]; #ifdef DEBUG printf("cpu usage timer fired, status %d\n", status); #endif #ifdef __sun /* On SunOS, if w...
Use new `estragon_send` API in CPU plugin
[api] Use new `estragon_send` API in CPU plugin
C
mit
mmalecki/forza,opsmezzo/forza,mmalecki/forza,npm/forza,cloudninja-io/libinterposed,mmalecki/forza,opsmezzo/forza,opsmezzo/forza
c5dff4b623492ff9fdb44242b5263df7e637981c
src/plugins/zlib/istream-bzlib.c
src/plugins/zlib/istream-bzlib.c
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gzread BZ2_bzread #de...
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <stdio.h> #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gz...
Include stdio.h in case bzlib.h needs it.
bzlib: Include stdio.h in case bzlib.h needs it. --HG-- branch : HEAD
C
mit
dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot
2624600449a5360f1718fc5ba138daf7d8c04cf9
kernel/arch/x86/serial_console.c
kernel/arch/x86/serial_console.c
#include <kernel/kernel.h> #include <kernel/console.h> #include <arch/ioport.h> #define SERIAL_PORT_IO_BASE 0x3f8 #define REG_DATA (SERIAL_PORT_IO_BASE) #define REG_DLL (SERIAL_PORT_IO_BASE) #define REG_IER (SERIAL_PORT_IO_BASE + 1) #define REG_DLH (SERIAL_PORT_IO_BASE + ...
Add serial port console implementation
Add serial port console implementation
C
mit
krinkinmu/auos,krinkinmu/auos,krinkinmu/auos,krinkinmu/auos
ef0b1d076b6a4a3954358e07f432a3e57b1e0e4e
Classes/APIAFNetworkingHTTPClient.h
Classes/APIAFNetworkingHTTPClient.h
// // APIAFNetworkingHTTPClient.h // APIClient // // Created by Klaas Pieter Annema on 30-08-13. // Copyright (c) 2013 Klaas Pieter Annema. All rights reserved. // #import <Foundation/Foundation.h> #import "AFNetworking.h" #import "APIHTTPClient.h" @interface APIAFNetworkingHTTPClient : NSObject <APIHTTPClient> ...
// // APIAFNetworkingHTTPClient.h // APIClient // // Created by Klaas Pieter Annema on 30-08-13. // Copyright (c) 2013 Klaas Pieter Annema. All rights reserved. // #import <Foundation/Foundation.h> #import <AFNetworking/AFNetworking.h> #import "APIHTTPClient.h" @interface APIAFNetworkingHTTPClient : NSObject <AP...
Use the correct import syntax
Use the correct import syntax
C
mit
klaaspieter/APIClient
fdd95026532a728b5faad191f7485183546cfe3b
include/fruit/impl/unordered_map.h
include/fruit/impl/unordered_map.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 appli...
/* * 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 appli...
Use the old include path for sparsehash to support older versions of sparsehash (still currently used in Ubuntu and Fedora).
Use the old include path for sparsehash to support older versions of sparsehash (still currently used in Ubuntu and Fedora).
C
apache-2.0
d/fruit,google/fruit,google/fruit,google/fruit,d/fruit,d/fruit
64d0405834a9228234f2d3f8b80503d4c7309515
include/matrix_constructors_impl.h
include/matrix_constructors_impl.h
//----------------------------------------------------------------------------- // Constructors //----------------------------------------------------------------------------- template<class T> matrix<T>::matrix():data_(),rows_(0),cols_(0){} template<class T> matrix<T>::matrix( std::size_t rows, std::size_t cols ): ...
//----------------------------------------------------------------------------- // Constructors //----------------------------------------------------------------------------- template<class T> matrix<T>::matrix():data_(),rows_(0),cols_(0){} template<class T> matrix<T>::matrix( std::size_t rows, std::size_t cols ): ...
Add question comment to constructor.
Add question comment to constructor.
C
mit
actinium/cppMatrix,actinium/cppMatrix
5cbfdaeb02fcf303e0b8d00b0ba4a91ba8320f53
wayland/input_device.h
wayland/input_device.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 OZONE_WAYLAND_INPUT_DEVICE_H_ #define OZONE_WAYLAND_INPUT_DEVICE_H_ #include <wayland-client.h> #include "base/basictypes.h" namespace ozonewayl...
// 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 OZONE_WAYLAND_INPUT_DEVICE_H_ #define OZONE_WAYLAND_INPUT_DEVICE_H_ #include <wayland-client.h> #include "base/basictypes.h" namespace ozonewayl...
Make read only functions as const.
Inputs: Make read only functions as const. Adds missing const keyword for Read only functions in WaylandInputDevice.
C
bsd-3-clause
01org/ozone-wayland,hongzhang-yan/ozone-wayland,rakuco/ozone-wayland,baillaw/ozone-wayland,qjia7/ozone-wayland,joone/ozone-wayland,nagineni/ozone-wayland,hongzhang-yan/ozone-wayland,kishansheshagiri/ozone-wayland,darktears/ozone-wayland,kuscsik/ozone-wayland,siteshwar/ozone-wayland,Tarnyko/ozone-wayland,Tarnyko/ozone-w...
1211ce98a12c4990d6d506cbdb9fb5024ad0100a
services/inputaxis.h
services/inputaxis.h
#ifndef INPUT_AXIS_H #define INPUT_AXIS_H #include "../services.h" #include <stdbool.h> typedef struct { bool invert; bool enabled; /* Deadzone */ double negative_deadzone; double positive_deadzone; /* Max/min */ double negative_maximum; double positive_maximum; } axis_config; typedef struct { const char*...
#ifndef INPUT_AXIS_H #define INPUT_AXIS_H #include "../services.h" #include <stdbool.h> typedef struct { bool invert; bool enabled; /* Deadzone */ double negative_deadzone; double positive_deadzone; /* Max/min */ double negative_maximum; double positive_maximum; } axis_config; typedef struct { const char*...
Add new function to header
Add new function to header
C
mit
n00bDooD/geng,n00bDooD/geng,n00bDooD/geng
ebb41c4ea260ab9905c7697648e2d1bb4b3914c8
client.c
client.c
#include <stdio.h> #include <sys/socket.h> #include <netdb.h> #include <string.h> #include <unistd.h> int main(int argc, char *argv[]) { char *host = "127.0.0.1"; int port = 2000; int timeout = 2; int sockfd, n; char buffer[256]; struct sockaddr_in serv_addr; struct hostent *server; ...
#include <stdio.h> #include <sys/socket.h> #include <netdb.h> #include <string.h> #include <unistd.h> int main(int argc, char *argv[]) { char *host = "127.0.0.1"; int port = 2000; int timeout = 2; int sockfd, n; char buffer[256]; struct sockaddr_in serv_addr; struct hostent *server; ...
Fix for Ubuntu 14.04, CentOS should work too
Fix for Ubuntu 14.04, CentOS should work too Assign zero to tv.tv_usec, or it maybe any value. The c version tiemout works on Ubuntu 14.04 after my fix.
C
mit
moret/socket-read-timeout,moret/socket-read-timeout
84ce51804b0bef5931a83fb48a5dbafc1e793443
cc1/tests/test017.c
cc1/tests/test017.c
/* name: TEST017 description: Basic test about pointers and structs output: F1 G9 F1 main { - S2 s1 ( M3 I y M4 I z ) A2 S2 nested S6 s2 ( M8 P p ) A3 S6 v A3 M8 .P A2 'P :P A3 M8 .P @S2 M3 .I #I1 :I A3 M8 .P @S2 M4 .I #I2 :I j L4 A2 M3 .I #I1 =I yI #I1 L4 j L5 A2 M4 .I #I2 =I yI #I2 L5 yI #I0 } */ #line 1 st...
Add basic test about pointer and structs
Add basic test about pointer and structs
C
mit
8l/scc,k0gaMSX/kcc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc
43a917f2aefddfde5c9292fa2fa2267e3fd9751e
common.h
common.h
#pragma once #define pi (3.14159265358979323846) #define abort_on_error(where, error) ({ \ typeof(where) _where = where; \ typeof(error) _error = error; \ \ if(_error) { \ fprintf( \ stderr, \ __FILE__ ":%d: %s error (%#x).\n", \ __LINE__, \ _whe...
#pragma once #include <stdlib.h> #define pi (3.14159265358979323846) #define abort_on_error(where, error) ({ \ typeof(where) _where = where; \ typeof(error) _error = error; \ \ if(_error) { \ fprintf( \ stderr, \ __FILE__ ":%d: %s error (%#x).\n", \ __LINE__...
Fix abort_on_error: Don't forget to exit(-1).
Fix abort_on_error: Don't forget to exit(-1).
C
agpl-3.0
sonetto/lloyd,sonetto/lloyd
ad6cd72787fdee1d56e5589c9bc07df4f5e8b4d8
clangd/FSProvider.h
clangd/FSProvider.h
//===--- FSProvider.h - VFS provider for ClangdServer ------------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- FSProvider.h - VFS provider for ClangdServer ------------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix the qualification of `IntrusiveRefCntPtr` to use `llvm::`.
Fix the qualification of `IntrusiveRefCntPtr` to use `llvm::`. Without this, the code only compiled if the header was included after something introduced the alias from `clang::` to `llvm::` for this type. Any modules build would fail here. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@344225 91177308-0d34-041...
C
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
bd2d4478e5228b3a9c67e7b36ce018afb400ff7d
ionAsset/IUniform.h
ionAsset/IUniform.h
#pragma once #include <ionGL.h> typedef ion::GL::Uniform IUniform; template <typename T> using CUniformValue = ion::GL::UniformValue<T>; template <typename T> using CUniformReference = ion::GL::UniformReference<T>;
#pragma once #include <ionGL.h> typedef ion::GL::Uniform IUniform; template <typename T> using CUniformValue = ion::GL::UniformValue<T>; template <typename T> using CUniformReference = ion::GL::UniformReference<T>; typedef ion::GL::VertexBuffer CVertexBuffer; typedef ion::GL::IndexBuffer CIndexB...
Add typedefs for VertexBuffer, IndexBuffer in GL
Add typedefs for VertexBuffer, IndexBuffer in GL
C
mit
iondune/ionEngine,iondune/ionEngine
fe229791e558fe9156e74d5e0ef3679c1a99fb13
includes/iloglistener.h
includes/iloglistener.h
// Copyright 2016 Airtame #ifndef MANAGEDEVICE_LOGGING_ILOGLISTENER_H_ #define MANAGEDEVICE_LOGGING_ILOGLISTENER_H_ #include <string> // Forward declarations. enum class ELogLevel; class ILogListener { public: virtual ~ILogListener() {} virtual void Notify(const std::string& iLog, ELogLevel iLevel) = 0; }; ...
// Copyright 2016 Pierre Fourgeaud #ifndef PF_ILOGLISTENER_H_ #define PF_ILOGLISTENER_H_ #include <string> // Forward declarations. enum class ELogLevel; /** * @brief The ILogListener class * * Define an interface to implement when creating a new LogListener. * SimpleLogger provide 3 default listeners: Buffer,...
Update ILogListener interface with docs
Update ILogListener interface with docs
C
mit
pierrefourgeaud/SimpleLogger
21c61e46afee3db7179afdb54eb43461d2e7e90b
Runtime/Rendering/ConstantBufferDX11.h
Runtime/Rendering/ConstantBufferDX11.h
#pragma once #include "Rendering/BufferDX11.h" #include "Rendering/ShaderDX11.h" namespace Mile { class MEAPI ConstantBufferDX11 : public BufferDX11 { public: ConstantBufferDX11(RendererDX11* renderer); ~ConstantBufferDX11(); bool Init(unsigned int size); virtual ERenderResourceType ...
#pragma once #include "Rendering/BufferDX11.h" #include "Rendering/ShaderDX11.h" namespace Mile { class MEAPI ConstantBufferDX11 : public BufferDX11 { public: ConstantBufferDX11(RendererDX11* renderer); ~ConstantBufferDX11(); bool Init(unsigned int size); template <typename Buffer> ...
Add template Init method for ConstantBuffer
Add template Init method for ConstantBuffer
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
3502deee1a93e86a97fb22df1cdb512c5a643dd6
test/PCH/functions.c
test/PCH/functions.c
// Test this without pch. // RUN: clang-cc -include %S/functions.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/functions.h && // RUN: clang-cc -include-pch %t -fsyntax-only -verify %s int f0(int x0, int y0, ...) { return x0 + y0; } float *test_f1(int val, double x, double y) { ...
// Test this without pch. // RUN: clang-cc -include %S/functions.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/functions.h && // RUN: clang-cc -include-pch %t -fsyntax-only -verify %s int f0(int x0, int y0, ...) { return x0 + y0; } float *test_f1(int val, double x, double y) { ...
Revert this, we can now avoid error cascades better.
Revert this, we can now avoid error cascades better. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@76691 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
3d8ad86be25865eee842ca5e683ac3f525dc8783
config/config_kmalloc.h
config/config_kmalloc.h
/* SPDX-License-Identifier: BSD-2-Clause */ /* * This is a TEMPLATE. The actual config file is generated by CMake and stored * in <BUILD_DIR>/tilck_gen_headers/. */ #pragma once #include <tilck_gen_headers/config_global.h> /* --------- Boolean config variables --------- */ #cmakedefine01 KMALLOC_FREE_MEM_POISONI...
/* SPDX-License-Identifier: BSD-2-Clause */ /* * This is a TEMPLATE. The actual config file is generated by CMake and stored * in <BUILD_DIR>/tilck_gen_headers/. */ #pragma once #include <tilck_gen_headers/config_global.h> /* --------- Boolean config variables --------- */ #cmakedefine01 KMALLOC_FREE_MEM_POISONI...
Make KMALLOC_FIRST_HEAP_SIZE depend on KERNEL_MAX_SIZE
[config] Make KMALLOC_FIRST_HEAP_SIZE depend on KERNEL_MAX_SIZE
C
bsd-2-clause
vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs
bfcf057787d6ce78c503ce8f7773ea316eae0b13
src/rtmixer.h
src/rtmixer.h
// actions: // // * read from queue // * read from array // * write to queue // * write to array // * stop action (with and/or without time?) // * query xrun stats etc. // timestamp! start, duration (number of samples? unlimited?) // return values: actual start, actual duration (number of samples?) // queue usage: st...
// actions: // // * read from queue // * read from array // * write to queue // * write to array // * stop action (with and/or without time?) // * query xrun stats etc. // timestamp! start, duration (number of samples? unlimited?) // return values: actual start, actual duration (number of samples?) // queue usage: st...
Use const for struct members
Use const for struct members
C
mit
mgeier/python-rtmixer,mgeier/python-rtmixer
5986c9fde186378b26f7a5985c97102feba191e8
KTp/error-dictionary.h
KTp/error-dictionary.h
/* Telepathy error dictionary - usable strings for dbus messages Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.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 Foundat...
/* Telepathy error dictionary - usable strings for dbus messages Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.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 Foundat...
Add documentation to Error Dictionary class
Add documentation to Error Dictionary class Reviewed-by: Martin Klapetek
C
lgpl-2.1
KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,leonhandreke/ktp-common-internals
41ee615c0b08e43dc382bc15600f814ac02abf06
chip/stm32/usb-stm32f3.c
chip/stm32/usb-stm32f3.c
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * STM32F3 Family specific USB functionality */ #include "usb-stm32f3.h" #include "usb_api.h" void usb_connect(void) { usb_board_connect(); ...
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * STM32F3 Family specific USB functionality */ #include "usb-stm32f3.h" #include "usb_api.h" void usb_connect(void) { usb_board_connect(); ...
Fix cut and paste bug for board specific disconnection
USB: Fix cut and paste bug for board specific disconnection Signed-off-by: Anton Staaf <84531b4b964c017023781514a6665b71e84b32bc@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: I8ec4396370b7e3068d29d569b73fddc648e1f76f Reviewed-on: https://chromium-review.googlesource.com/247720 Trybot-Ready: Ant...
C
bsd-3-clause
akappy7/ChromeOS_EC_LED_Diagnostics,fourier49/BIZ_EC,fourier49/BIZ_EC,fourier49/BZ_DEV_EC,coreboot/chrome-ec,md5555/ec,md5555/ec,akappy7/ChromeOS_EC_LED_Diagnostics,eatbyte/chromium-ec,coreboot/chrome-ec,fourier49/BZ_DEV_EC,eatbyte/chromium-ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,eatbyte/chromium-ec,fourier49/BZ_DEV_...
d07295d73267c51bf3d77b97831640db832bacb5
samples/libcurl/callbacks.h
samples/libcurl/callbacks.h
#include <stdio.h> // Those types are needed but not defined or used in libcurl headers. typedef size_t header_callback(char *buffer, size_t size, size_t nitems, void *userdata); typedef size_t write_data_callback(void *buffer, size_t size, size_t nmemb, void *userp); extern void something_using_callback1(header_...
#include <stddef.h> // Those types are needed but not defined or used in libcurl headers. typedef size_t header_callback(char *buffer, size_t size, size_t nitems, void *userdata); typedef size_t write_data_callback(void *buffer, size_t size, size_t nmemb, void *userp);
Remove some hacks from libcurl sample
Remove some hacks from libcurl sample
C
apache-2.0
JetBrains/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-na...
fcb91afaf2823d62453d7c19f66d30bb8dbb7c55
test/PCH/source-manager-stack.c
test/PCH/source-manager-stack.c
// Test that the source manager has the "proper" idea about the include stack // when using PCH. // RUN: echo 'int x;' > %t.prefix.h // RUN: not clang-cc -fsyntax-only -include %t.prefix.h %s 2> %t.diags.no_pch.txt // RUN: clang-cc -emit-pch -o %t.prefix.pch %t.prefix.h // RUN: not clang-cc -fsyntax-only -include-pch ...
Add test case for PR5662.
Add test case for PR5662. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@90264 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,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
0addd9bb7e5fc1bdb38ec1755ac3bd5e8d869a75
src/python/helpers/python_convert_optional.h
src/python/helpers/python_convert_optional.h
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_CONVERT_OPTIONAL_H #define VISTK_PYTHON_HELPERS_PYTHON_CO...
Add boost::optional wrapper for python bindings
Add boost::optional wrapper for python bindings
C
bsd-3-clause
linus-sherrill/sprokit,mathstuf/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,Kitware/sprokit
8a47f7478c3e73f916a13dd3d0b7cd1e140e21e7
src/lib/ecore/Ecore_Str.h
src/lib/ecore/Ecore_Str.h
#ifndef _ECORE_STR_H # define _ECORE_STR_H #ifdef EAPI #undef EAPI #endif #ifdef WIN32 # ifdef BUILDING_DLL # define EAPI __declspec(dllexport) # else # define EAPI __declspec(dllimport) # endif #else # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else # define EAPI...
#ifndef _ECORE_STR_H # define _ECORE_STR_H #ifdef EAPI #undef EAPI #endif #ifdef WIN32 # ifdef BUILDING_DLL # define EAPI __declspec(dllexport) # else # define EAPI __declspec(dllimport) # endif #else # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else # define EAPI...
Fix doxygen comments for new header.
Fix doxygen comments for new header. git-svn-id: 70cf712206e5b8426a8d7451e052914a94f8fa22@27891 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
mit
OpenInkpot-archive/ecore,OpenInkpot-archive/ecore,OpenInkpot-archive/ecore
00d1ca91bb5bb8530e9a9a3b9790ea8a4eec7305
core/gluonvarianttypes.h
core/gluonvarianttypes.h
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 the License, or (...
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 the License, or (...
Add Quaternion to variant types, makes Q_PROPERTY support it
Add Quaternion to variant types, makes Q_PROPERTY support it
C
lgpl-2.1
cgaebel/gluon,KDE/gluon,cgaebel/gluon,pranavrc/example-gluon,cgaebel/gluon,pranavrc/example-gluon,pranavrc/example-gluon,cgaebel/gluon,KDE/gluon,pranavrc/example-gluon,KDE/gluon,KDE/gluon
a62eaa2f7447d930db84f966986736d30ef522bb
src/block/serpent/serpent.h
src/block/serpent/serpent.h
/* * Serpent * (C) 1999-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_SERPENT_H__ #define BOTAN_SERPENT_H__ #include <botan/block_cipher.h> namespace Botan { /** * Serpent, an AES finalist */ class BOTAN_DLL Serpent : public BlockCipher { public: void encrypt_n(co...
/* * Serpent * (C) 1999-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_SERPENT_H__ #define BOTAN_SERPENT_H__ #include <botan/block_cipher.h> namespace Botan { /** * Serpent, an AES finalist */ class BOTAN_DLL Serpent : public BlockCipher { public: void encrypt_n(co...
Make Serpent's key_schedule and actual round keys private. Add protected accessor functions for get and set. Set is needed by the x86 version since it implements the key schedule directly.
Make Serpent's key_schedule and actual round keys private. Add protected accessor functions for get and set. Set is needed by the x86 version since it implements the key schedule directly.
C
bsd-2-clause
randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,Rohde-S...
edd722e38b883236c9f214d5df309110500b3529
test/Sema/attr-noreturn.c
test/Sema/attr-noreturn.c
// RUN: clang-cc -verify -fsyntax-only %s static void (*fp0)(void) __attribute__((noreturn)); static void __attribute__((noreturn)) f0(void) { fatal(); } // expected-warning {{function declared 'noreturn' should not return}} // On K&R int f1() __attribute__((noreturn)); int g0 __attribute__((noreturn)); // expect...
// RUN: clang -cc1 -verify -fsyntax-only %s static void (*fp0)(void) __attribute__((noreturn)); static void __attribute__((noreturn)) f0(void) { fatal(); } // expected-warning {{function declared 'noreturn' should not return}} // On K&R int f1() __attribute__((noreturn)); int g0 __attribute__((noreturn)); // expe...
Add testcase for recent checkin.
Add testcase for recent checkin. Patch by Chip Davis. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@91436 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-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-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
1cdd41d0d2ab5e112d347ec5f14383b5f5ba6034
kmer_util.h
kmer_util.h
#ifndef KMER_UTIL_H #define KMER_UTIL_H #include <assert.h> #include "logging_util.h" // Largest odd kmer that can be held in a uint64_t #define MAX_KMER 31 #define DEFAULT_KMER 21 #ifndef num2nuc # ifndef NUM2NUC_STR # define NUM2NUC_STR "ACGTN" # endif # define num2nuc(x) NUM2NUC_STR[(uint8_t)x] #endif #ifdef __cp...
#ifndef KMER_UTIL_H #define KMER_UTIL_H #include <assert.h> #include "logging_util.h" // Largest odd kmer that can be held in a uint64_t #define MAX_KMER 31 #define DEFAULT_KMER 21 #ifndef num2nuc # ifndef NUM2NUC_STR # define NUM2NUC_STR "ACGTN" # endif # define num2nuc(x) NUM2NUC_STR[(uint8_t)x] #endif #ifdef __cp...
Move kmer functionality from kmei to dlib.
Move kmer functionality from kmei to dlib.
C
mit
noseatbelts/dlib,noseatbelts/dlib
88b1dfa1c40df5f49daabb122392c64ea21d0154
src/unit_VEHICLE/models/generic/Generic_FuncDriver.h
src/unit_VEHICLE/models/generic/Generic_FuncDriver.h
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Add a generic driver model.
Add a generic driver model.
C
bsd-3-clause
jcmadsen/chrono,projectchrono/chrono,Milad-Rakhsha/chrono,armanpazouki/chrono,tjolsen/chrono,amelmquist/chrono,andrewseidl/chrono,tjolsen/chrono,tjolsen/chrono,Bryan-Peterson/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,amelmquist/chro...
5b6d50ae693acb0b6e001bf39100c44cdda4ad63
pkg/fizhi/fizhi_SHP.h
pkg/fizhi/fizhi_SHP.h
C $Header$ C $Name$ C The physics state uses the dynamics dimensions in the horizontal C and the land dimensions in the horizontal for turbulence variables c c Secret Hiding Place - Use to compute gridalt correction term diagnostics c ------------------------------------------------------------------------ ...
Add new common block to compute some diagnostics when needed
Add new common block to compute some diagnostics when needed
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
0fa6366ed15f48b3ec227987f21f339180fb4936
webrtc/base/checks.h
webrtc/base/checks.h
/* * Copyright 2006 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
/* * Copyright 2006 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros
Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros R=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/16079004 git-svn-id: 917f5d3ca488f358c4d40eaec14422cf392ccec9@6701 4adac7df-926f-26a2-2b94-8c16560cd09d
C
bsd-3-clause
mwgoldsmith/ilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,mwgoldsmith/ilbc,TimothyGu/libilbc,mwgoldsmith/libilbc,ShiftMediaProject/libilbc,mwgoldsmith/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,mwgoldsmith/ilbc,TimothyGu/libilbc,mwgoldsmith/libilbc,mwgoldsmith/ilb...
b2982d63745aa6222ca3ef00d1042b874ba50307
evmjit/libevmjit/Utils.h
evmjit/libevmjit/Utils.h
#pragma once #include <iostream> // The same as assert, but expression is always evaluated and result returned #define CHECK(expr) (assert(expr), expr) #if !defined(NDEBUG) // Debug namespace dev { namespace evmjit { std::ostream& getLogStream(char const* _channel); } } #define DLOG(CHANNEL) ::dev::evmjit::getLo...
#pragma once #include <iostream> // The same as assert, but expression is always evaluated and result returned #define CHECK(expr) (assert(expr), expr) #if !defined(NDEBUG) // Debug namespace dev { namespace evmjit { std::ostream& getLogStream(char const* _channel); } } #define DLOG(CHANNEL) ::dev::evmjit::getLo...
Reimplement no-op version of DLOG to avoid C++ compiler warning
Reimplement no-op version of DLOG to avoid C++ compiler warning
C
mit
vaporry/cpp-ethereum,karek314/cpp-ethereum,expanse-project/cpp-expanse,programonauta/webthree-umbrella,expanse-org/cpp-expanse,PaulGrey30/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,joeldo/cpp-ethereum,LefterisJP/cpp-ethereum,d-das/cpp-ethereum,smartbitcoin/cpp-ethereum,d-das/cpp-ethereum,Sorceror32/go-get--u...
b56013dda5371aa32a634bc59878f754b537f874
test/CFrontend/2004-03-07-BitfieldCrash.c
test/CFrontend/2004-03-07-BitfieldCrash.c
// RUN: %llvmgcc -S %s -o /dev/null /* * XFAIL: linux */ struct s { unsigned long long u33: 33; unsigned long long u40: 40; }; struct s a = { 1, 2}; int foo() { return a.u40; }
// RUN: %llvmgcc -S %s -o /dev/null /* * XFAIL: * */ struct s { unsigned long long u33: 33; unsigned long long u40: 40; }; struct s a = { 1, 2}; int foo() { return a.u40; }
Test fails on all platforms, not just linux
Test fails on all platforms, not just linux git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@19405 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,l...
2dd927c6610bb09ec315409d2973ed505f5e4cc7
lib/ReaderWriter/PECOFF/PDBPass.h
lib/ReaderWriter/PECOFF/PDBPass.h
//===- lib/ReaderWriter/PECOFF/PDBPass.h ----------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- lib/ReaderWriter/PECOFF/PDBPass.h ----------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Use SafelyCloseFileDescriptor instead of close.
Use SafelyCloseFileDescriptor instead of close. Opening a file using openFileForWrite and closing it using close was asymmetric. It also had a subtle portability problem (details are described in the commit message for r219189). git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@222802 91177308-0d34-0410-b5e6-96231...
C
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
c03ed8c4aa935e2490178b52fbaa73675137f626
tests/amd64/wait4_WNOHANG/wait4_WNOHANG.c
tests/amd64/wait4_WNOHANG/wait4_WNOHANG.c
static int parent_main(pid_t child_pid) { pid_t pid; int status; pid = wait4(child_pid, &status, WNOHANG, NULL); if (pid != 0) return (1); return (0); } static void signal_handler(int sig) { } int main(int argc, const char *argv[]) { struct sigaction act; struct timespec t; pid_t child_pid; int retval; ...
static int parent_main(pid_t child_pid) { pid_t pid; int status; pid = wait4(child_pid, &status, WNOHANG, NULL); if (pid != 0) return (1); return (0); } int main(int argc, const char *argv[]) { pid_t child_pid; int retval; child_pid = fork(); switch (child_pid) { case -1: return (18); case 0: for ...
Simplify the test for wait4(2) with WNOHANG.
Simplify the test for wait4(2) with WNOHANG.
C
mit
SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2
a78e1809fe4e6276c50d192e1bb5dc94ac84f626
3RVX/Controllers/Volume/VolumeController.h
3RVX/Controllers/Volume/VolumeController.h
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once class VolumeTransformation; class VolumeController { public: struct DeviceInfo { std::wstring name; std::wstring id; }; /// <summary> /// Retrieves the cu...
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once class VolumeTransformation; class VolumeController { public: struct DeviceInfo { std::wstring name; std::wstring id; }; /// <summary> /// Retrieves the cu...
Use proper return type X-(
Use proper return type X-(
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
a78cf22e966d824ff4234bdf39aaf27dedec8eb5
src/ArduinoDataPacket.h
src/ArduinoDataPacket.h
/** * Project * # # # ###### ###### * # # # # # # # # * # # # # # # # # * ### # # ###### ###### * # # ####### # # # # * # # # # # # # # * # # # # # # # # * * Copyright (c) 2014, Projec...
Add Arduino Data packet header.
Add Arduino Data packet header.
C
bsd-3-clause
dublet/KARR,dublet/KARR,dublet/KARR
adca044ede25200548c3b2b4dbdcf8e1ddc40959
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.49f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.50f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
Change version number to 1.50
Change version number to 1.50
C
apache-2.0
ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW
f2f989b081da91d67646aeaeb9b0483d3586dae2
EasyImagy/EasyImagy.h
EasyImagy/EasyImagy.h
#import <UIKit/UIKit.h> //! Project version number for EasyImagy. FOUNDATION_EXPORT double EasyImagyVersionNumber; //! Project version string for EasyImagy. FOUNDATION_EXPORT const unsigned char EasyImagyVersionString[]; // In this header, you should import all the public headers of your framework using statements l...
#import <Foundation/Foundation.h> //! Project version number for EasyImagy. FOUNDATION_EXPORT double EasyImagyVersionNumber; //! Project version string for EasyImagy. FOUNDATION_EXPORT const unsigned char EasyImagyVersionString[]; // In this header, you should import all the public headers of your framework using st...
Replace unnecessary import of UIKit with Foundation
Replace unnecessary import of UIKit with Foundation
C
mit
koher/EasyImagy
11236637a5b66c166e266522d0c3b077ce084dc9
tomviz/PresetDialog.h
tomviz/PresetDialog.h
/* This source file is part of the Tomviz project, https://tomviz.org/. It is released under the 3-Clause BSD License, see "LICENSE". */ #ifndef tomvizPresetDialog_h #define tomvizPresetDialog_h #include <QDialog> #include <QScopedPointer> class QTableView; class vtkSMProxy; namespace Ui { class PresetDialog; } ...
/* This source file is part of the Tomviz project, https://tomviz.org/. It is released under the 3-Clause BSD License, see "LICENSE". */ #ifndef tomvizPresetDialog_h #define tomvizPresetDialog_h #include <QDialog> #include <QScopedPointer> class QTableView; class vtkSMProxy; namespace Ui { class PresetDialog; } ...
Move destructor to be below constructor
Move destructor to be below constructor Signed-off-by: Marcus D. Hanwell <cf7042e2e8eee958b5bcde1ae2cbefef82efc184@kitware.com>
C
bsd-3-clause
OpenChemistry/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz
f0e213597e9f2563d11e571c05768f8241b46386
tests/regression/36-octapron/20-traces-even-more-rpb.c
tests/regression/36-octapron/20-traces-even-more-rpb.c
// SKIP PARAM: --sets ana.activated[+] octApron #include <pthread.h> #include <assert.h> int g = 17; // matches write in t_fun int h = 14; // matches write in t_fun pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { int t; pthread_mutex_lock(&A);...
Add relational traces even-more-rpb example
Add relational traces even-more-rpb example
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
6c3ebd4526d5b89084af8af1af8b2d23438360d8
sys/alpha/include/bwx.h
sys/alpha/include/bwx.h
/*- * Copyright (c) 1998 Doug Rabson * 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 conditi...
Add macros for byte/word sized load and store instructions.
Add macros for byte/word sized load and store instructions.
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
6bbc09533e28e0912ac2b1683e3d03cb26ce9fa0
ui/aura/aura_switches.h
ui/aura/aura_switches.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_AURA_AURA_SWITCHES_H_ #define UI_AURA_AURA_SWITCHES_H_ #pragma once namespace switches { extern const char kAuraHostWindowSize[]; extern ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_AURA_AURA_SWITCHES_H_ #define UI_AURA_AURA_SWITCHES_H_ #pragma once #include "ui/aura/aura_export.h" namespace switches { AURA_EXPORT ex...
Fix shared library build for aura.
Fix shared library build for aura. TBR=ben@chromium.org,derat@chromium.org R=ben@chromium.org,derat@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8438039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@108299 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,keishi/chromium,Chilledheart/chromium,krieger-od/nwjs_chromium.src,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,PeterWangIntel/chro...
cccb2ea810b5f7a6d9e5c246274e630987583f23
multiply_by_diagonal.c
multiply_by_diagonal.c
void multiply_by_diagonal(const int rows, const int cols, double* restrict diagonal, double* restrict matrix) { /* * Multiply a matrix by a diagonal matrix (represented as a flat array * of n values). The diagonal structure is exploited (so that we use * n^2 ...
REFACTOR removed duplicates and created own file for this
REFACTOR removed duplicates and created own file for this
C
bsd-3-clause
VT-ICAM/ArgyrisPack,VT-ICAM/ArgyrisPack,VT-ICAM/ArgyrisPack
b267698e0377126299950113cb864c3d995f32dc
FBTweak/FBTweak+Dictionary.h
FBTweak/FBTweak+Dictionary.h
// // FBTweak+Dictionary.h // FBTweak // // Created by John McIntosh on 11/5/14. // Copyright (c) 2014 Facebook. All rights reserved. // #import <FBTweak/FBTweak.h> /** Implementation works by storing the dictionary in the tweak's `stepValue`. */ @interface FBTweak (Dictionary) @property (nonatomic, copy, read...
// // FBTweak+Dictionary.h // FBTweak // // Created by John McIntosh on 11/5/14. // Copyright (c) 2014 Facebook. All rights reserved. // #import "FBTweak.h" /** Implementation works by storing the dictionary in the tweak's `stepValue`. */ @interface FBTweak (Dictionary) @property (nonatomic, copy, readonly) NS...
Update syntax for import statement
Update syntax for import statement
C
bsd-3-clause
dedelost/Tweaks,MakrisHuang/Tweaks,1yvT0s/Tweaks,1yvT0s/Tweaks,sgl0v/Tweaks,MrWooJ/Tweaks,eyeem/Tweaks,Kingside/Tweaks,programming086/Tweaks,MrWooJ/Tweaks,eyeem/Tweaks,Kingside/Tweaks,DanielAsher/Tweaks,eyeem/Tweaks,dedelost/Tweaks,cuppi/Tweaks,Uberchord/Tweaks,DanielAsher/Tweaks,sgl0v/Tweaks,adamdahan/Tweaks,1yvT0s/Tw...
acb699bec196566a5dba364b97b83ae28a9b1a80
gibbs.c
gibbs.c
#include "nb_simp.c" struct arrayProb* gibbsC_shim(struct arrayProb* topic_prior_b, struct arrayProb* word_prior_c, struct arrayNat* z_d, struct arrayNat* w_e, struct arrayNat* doc_f, unsigned int docUpdate_g) { struct arrayProb* res = (...
#include "nb_simp.c" struct arrayProb* gibbsC_shim(struct arrayProb* topic_prior_b, struct arrayProb* word_prior_c, struct arrayNat* z_d, struct arrayNat* w_e, struct arrayNat* doc_f, unsigned int docUpdate_g) { struct arrayProb* res = (...
Fix size error in malloc call
Fix size error in malloc call
C
bsd-3-clause
zaxtax/naive_bayes,zaxtax/naive_bayes,zaxtax/naive_bayes,zaxtax/naive_bayes
f5a798a2aa7fcf68d684c3dc58d9efaabe83b390
Headers/Public/MLMediaLibrary.h
Headers/Public/MLMediaLibrary.h
// // MLMediaLibrary.h // MobileMediaLibraryKit // // Created by Pierre d'Herbemont on 7/14/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import <CoreData/CoreData.h> @interface MLMediaLibrary : NSObject { NSManagedObjectContext *_managedObjectContext; NSManagedObjectModel *_managedO...
// // MLMediaLibrary.h // MobileMediaLibraryKit // // Created by Pierre d'Herbemont on 7/14/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import <CoreData/CoreData.h> @interface MLMediaLibrary : NSObject { NSManagedObjectContext *_managedObjectContext; NSManagedObjectModel *_managedO...
Revert "Adding a public method to be able to update the database"
Revert "Adding a public method to be able to update the database" This reverts commit 0c6bfc6ec7f63d468b0222c00ab1e31d69c62d40. Conflicts: Sources/MLMediaLibrary.m
C
lgpl-2.1
TheHungryBu/MediaLibraryKit,TheHungryBu/MediaLibraryKit,TheHungryBu/MediaLibraryKit,larrytin/MediaLibraryKit,TheHungryBu/MediaLibraryKit
0997dbb61cacad042c452b37e03d4de5a0ed82bb
content/common/child_process_messages.h
content/common/child_process_messages.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Common IPC messages used for child processes. // Multiply-included message file, hence no include guard. #include "googleurl/src/gurl.h" #include ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Common IPC messages used for child processes. // Multiply-included message file, hence no include guard. #include "googleurl/src/gurl.h" #include ...
Add newline at end of file
Add newline at end of file git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@78227 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,dednal/chromium.src,jaruba/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,jaruba/chromium.src,jar...
4d203821876f5e4e87c75417224e79035ecf0641
src/session/manager.h
src/session/manager.h
/* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * This file is part o...
/* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * This file is part o...
Add session files to session doc group
Add session files to session doc group
C
lgpl-2.1
waysome/waysome,waysome/waysome
a20f753e2585ef887f7242e7bd8863836df65715
8/platform.h
8/platform.h
#if defined(__APPLE__) && defined(__MACH__) /* for OSX */ # define Fprefix "_" #else /* Default to linux */ # define Fprefix "" #endif #define Assembler "as --32 -g -o %s -"
#if defined(__APPLE__) && defined(__MACH__) /* for OSX */ # define Assembler "as -arch i386 -g -o %s -" # define Fprefix "_" #else /* Default to linux */ # define Assembler "as --32 -g -o %s -" # define Fprefix "" #endif
Use the appropriate assembler for OSX.
Use the appropriate assembler for OSX.
C
mit
8l/myrddin,oridb/mc,oridb/mc,8l/myrddin,oridb/mc,oridb/mc
fa741677fbe2bd4f5ba40268e2418cf7420f5e98
SSPSolution/SSPSolution/DoorEntity.h
SSPSolution/SSPSolution/DoorEntity.h
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> class DoorEntity : public Entity { private: struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; std::vector<ElementState> m_elementStates; bool...
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> class DoorEntity : public Entity { private: struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; std::vector<ElementState> m_elementStates; bool...
UPDATE Door rotation standard of 90 degrees
UPDATE Door rotation standard of 90 degrees
C
apache-2.0
Chringo/SSP,Chringo/SSP
3ab057f7b9e5f98210eabd53165d74282b5a6bdb
test/PCH/modified-header-error.c
test/PCH/modified-header-error.c
// RUN: mkdir -p %t.dir // RUN: echo '#include "header2.h"' > %t.dir/header1.h // RUN: echo > %t.dir/header2.h // RUN: cp %s %t.dir/t.c // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch // RUN: echo >> %t.dir/header2.h // RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s...
// RUN: mkdir -p %t.dir // RUN: echo '#include "header2.h"' > %t.dir/header1.h // RUN: echo > %t.dir/header2.h // RUN: cp %s %t.dir/t.c // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch // RUN: echo >> %t.dir/header2.h // RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s...
Disable on Windows, for real.
Disable on Windows, for real. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@143027 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,apple/swift-clang,apple/swift-cl...
8b30c206f7da701fa5c609c1100c3957ae22c916
src/Vector3.h
src/Vector3.h
#pragma once #include <math.h> struct Vector3 { union { float v[3]; struct { float x; float y; float z; }; struct { float azimuth; float pitch; float roll; }; }; Vector3() { x = 0; ...
#pragma once #include <math.h> struct Vector3 { union { float v[3]; struct { float x; float y; float z; }; struct { union { float azimuth; float yaw; }; float pitch; ...
Allow both yaw and azimuth
Allow both yaw and azimuth
C
mit
loopj/i2c-sensor-hal,loopj/i2c-sensor-hal
3e7ab39853701277f637eed91630b4b152212d26
src/slurp.c
src/slurp.c
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fclose(file); return...
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> #include <strings.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fcl...
Fix read_all and return content without segment fault
Fix read_all and return content without segment fault
C
isc
matthargett/cgreen,gardenia/cgreen,matthargett/cgreen,cgreen-devs/cgreen,gardenia/cgreen,gardenia/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,matthargett/cgreen,thoni56/cgreen,gardenia/cgreen,matthargett/cgreen,ykaliuta/cgreen,thoni56/cgreen,cgreen-devs/cgreen,thoni56/cgreen,thoni56/cgreen,ykaliuta/cgreen,ykaliuta/cgr...
6719e546217bdc012ed0b1853032987c1d4e7a49
src/daemon/serversock.h
src/daemon/serversock.h
/** * tapcfg - A cross-platform configuration utility for TAP driver * Copyright (C) 2008 Juho Vähä-Herttua * * 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 * versio...
Add missing header from last commit
Add missing header from last commit
C
lgpl-2.1
juhovh/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,juhovh/tapcfg,juhovh/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg
abdcf820d40c063e8542291cfbf51a6eb7e28253
usespace/daemon-one.c
usespace/daemon-one.c
#include <signal.h> #include <unistd.h> #include <stdlib.h> void spawn_again(int signum) { (void) signum; /* unused */ pid_t pid = fork(); if (pid == 0) { setsid(); return; } exit(EXIT_SUCCESS); } int main(int argc, char **argv) { struct sigaction new_action = { 0 }; new_action.sa_handler = &spawn_again; ...
#include <signal.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <sys/shm.h> #define NUMBER_OF_THE_BEAST 666 struct shared { pid_t pid; }; static struct shared *shared; void spawn_again(int signum) { (void) signum; /* unused */ pid_t pid = fork(); if (pid == 0) { /* signalize change of...
Add basic support for shared memory
userspace: Add basic support for shared memory Basic communication protocol between daemons.
C
bsd-3-clause
ClosedHouse/contest,ClosedHouse/contest,ClosedHouse/contest
50e626531255c21434a9680e8c9986edb1ae90f4
tests/noreturn.c
tests/noreturn.c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "noreturn.h" // Because assert_fail is marked as noreturn, the call to it is not followed // by another instruction in this function. // This test ensures that "thisFunctionWontReturn is on the dumped stack. int thisFunctionWontReturn(int x) { if ...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "noreturn.h" // Because assert_fail is marked as noreturn, the call to it is not followed // by another instruction in this function. // This test ensures that "thisFunctionWontReturn is on the dumped stack. __attribute__((noinline, weak)) // avoid in...
Make tests work in gcc11/clang
Make tests work in gcc11/clang When inlined, we lose our stackframe for our trampoline function in this test - disallow the optimisations that break the test.
C
bsd-2-clause
peadar/pstack,peadar/pstack,peadar/pstack,peadar/pstack
cd0f72316db95b941ab54a682a7687dbbd83f0a5
test/main.c
test/main.c
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" #include <stdio.h> int main(int argc, char** argv) { if (argc < 2) { printf("err\n"); return -1; } cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result result = cgltf_parse_file(&options, argv[1], &data); if (result == cgltf_result_succes...
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" #include <stdio.h> int main(int argc, char** argv) { if (argc < 2) { printf("err\n"); return -1; } cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result result = cgltf_parse_file(&options, argv[1], &data); if (result == cgltf_result_succes...
Add validation to test program
Add validation to test program This makes sure we exercise this code during CI for all test models.
C
mit
jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf
70fd50533e75e7da1cc691b9da8e47af3d84ba3d
src/brpc/server_node.h
src/brpc/server_node.h
// Copyright (c) 2014 Baidu, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
Move ServerNode into separate file
Move ServerNode into separate file
C
apache-2.0
brpc/brpc,brpc/brpc,brpc/brpc,brpc/brpc,brpc/brpc
6ea1de571f78c28e304b7c9e496e98754fed8cbc
Numerics/src/NonSmoothSolvers/MCP/MCP_driver.c
Numerics/src/NonSmoothSolvers/MCP/MCP_driver.c
/* Siconos-Numerics, Copyright INRIA 2005-2011. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a 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 Foun...
Fix lower/uppercase file name stuff. Please remember Macos users and do not change filename from upper to lowercase ...
Fix lower/uppercase file name stuff. Please remember Macos users and do not change filename from upper to lowercase ...
C
apache-2.0
fperignon/siconos,siconos/siconos,siconos/siconos-deb,fperignon/siconos,fperignon/siconos,fperignon/siconos,siconos/siconos-deb,bremond/siconos,radarsat1/siconos,bremond/siconos,radarsat1/siconos,bremond/siconos,siconos/siconos,bremond/siconos,radarsat1/siconos,radarsat1/siconos,siconos/siconos-deb,siconos/siconos-deb,...
9531b2a558971e61047019ad4eaa9ed0830442bd
apps/sensors/main.c
apps/sensors/main.c
#include <firestorm.h> #include <isl29035.h> #include <stdio.h> #include <stdbool.h> void print_intensity(int intensity) { printf("Intensity: %d\n", intensity); } void intensity_cb(int intensity, int unused1, int unused2, void* ud) { print_intensity(intensity); } void temp_callback(int temp_value, int err, int u...
#include <firestorm.h> #include <isl29035.h> #include <stdio.h> #include <stdbool.h> void print_intensity(int intensity) { printf("Intensity: %d\n", intensity); } void intensity_cb(int intensity, int unused1, int unused2, void* ud) { print_intensity(intensity); } void temp_callback(int temp_value, int err, int u...
Remove blink functionality from "sensors" app
Remove blink functionality from "sensors" app Now that we can run multiple apps simultaneously, it's easier to test things if the sensors app doesn't clobber the blink app.
C
apache-2.0
google/tock-on-titan,google/tock-on-titan,google/tock-on-titan
e5fc7d47e00c9d375a320b97e19790715c6e8104
liblick/lick.h
liblick/lick.h
/** * @file * @brief A convenience header * * A header which includes all headers needed for a front-end */ #include "boot-loader.h" #include "drives.h" #include "install.h" #include "lickdir.h" #include "llist.h" #include "menu.h" #include "system-info.h" #include "utils.h"
/** * @file * @brief A convenience header * * A header which includes all headers needed for a front-end */ #ifdef __cplusplus extern "C" { #endif #include "boot-loader.h" #include "drives.h" #include "install.h" #include "lickdir.h" #include "llist.h" #include "menu.h" #include "system-info.h" #include "utils.h...
Add `extern "C"' to convenience headers
Add `extern "C"' to convenience headers
C
mit
noryb009/lick,noryb009/lick,noryb009/lick
d53bc3437f941cf01bf709ddd8e9c394db095b7a
libm/s_isnan.c
libm/s_isnan.c
/* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. ...
/* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. ...
Add isnan weak alias to __isnan
isnan: Add isnan weak alias to __isnan * libm/s_isnan.c: Add isnan weak alias. Signed-off-by: Mickaël Guêné <fd4c850767532186e170673aca49b5c51d48c53c@st.com> Signed-off-by: Christophe Lyon <0ec1b8ee85d9250d253c392c5d5101068ac5d5d3@st.com>
C
lgpl-2.1
kraj/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng
a99df4d6c91366304dcf55b986d555115e3cc6a6
aimp_dotnet/AIMPPlugin.h
aimp_dotnet/AIMPPlugin.h
#pragma once #include "Services\MenuManager\ServiceMenuManager.h" #include "InternalLogger.h" namespace AIMP { namespace SDK { using namespace System; using namespace AIMP::SDK::Interfaces; public ref class AimpPlugin abstract : public AimpPluginBase { public: AimpPlugin() { } property IAimp...
#pragma once #include "Services\MenuManager\ServiceMenuManager.h" #include "InternalLogger.h" namespace AIMP { namespace SDK { using namespace System; using namespace AIMP::SDK::Interfaces; public ref class AimpPlugin abstract : public AimpPluginBase { public: AimpPlugin() { } property IAimp...
Fix AimpPlugin.AimpCore property which was never initialized.
Fix AimpPlugin.AimpCore property which was never initialized. Remove the _aimpCore field and use Player instead.
C
apache-2.0
martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet
8aba5772afe0e409e2e6d52131433b0a79188f3a
include/response.h
include/response.h
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" namespace cpr { class Response { public: Response(const long& status_code, const std::string& text, const Header& header, const Url& url, const double& elapsed) : ...
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" namespace cpr { class Response { public: Response() = default; Response(const long& status_code, const std::string& text, const Header& header, const Url& url, const d...
Put the default constructor first
Put the default constructor first
C
mit
whoshuu/cpr,SuperV1234/cpr,SuperV1234/cpr,msuvajac/cpr,skystrife/cpr,skystrife/cpr,whoshuu/cpr,msuvajac/cpr,whoshuu/cpr,SuperV1234/cpr,msuvajac/cpr,skystrife/cpr
572e987700fc8c155853dba9b1f192d999caa083
lib/utilities/utils.h
lib/utilities/utils.h
/*- * Copyright (c) 1992, 1993, 1994 Henry Spencer. * Copyright (c) 1992, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Henry Spencer. * * Redistribution and use in source and binary forms, with or without * m...
Add smyrna to main graphviz tree
Add smyrna to main graphviz tree
C
epl-1.0
MjAbuz/graphviz,ellson/graphviz,jho1965us/graphviz,BMJHayward/graphviz,pixelglow/graphviz,ellson/graphviz,jho1965us/graphviz,pixelglow/graphviz,kbrock/graphviz,tkelman/graphviz,MjAbuz/graphviz,kbrock/graphviz,BMJHayward/graphviz,tkelman/graphviz,ellson/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,kbro...
1b4d49cbf1b05997cd7fe468c06cf78a2a90af43
modules/seed-module.h
modules/seed-module.h
#ifndef _SEED_MODULE_H_ #define _SEED_MODULE_H_ #include "../libseed/seed.h" // TODO: Move [example sqlite canvas Multiprocessing // os sandbox dbus libxml cairo] // towards utilization of this header. // Check that the required number of arguments were passed into a seed callback. // If this is no...
#ifndef _SEED_MODULE_H_ #define _SEED_MODULE_H_ #include "../libseed/seed.h" // TODO: Move [example sqlite canvas Multiprocessing // os sandbox dbus libxml cairo] // towards utilization of this header. // Check that the required number of arguments were passed into a seed callback. // If this is no...
Change wording of argument count check
[modules] Change wording of argument count check
C
lgpl-2.1
danilocesar/seed,danilocesar/seed,danilocesar/seed,danilocesar/seed,danilocesar/seed
ac5d12bb0cdc8cf909ab0d711cbc2a370b1eece2
test/CodeGen/mips-inline-asm-abi.c
test/CodeGen/mips-inline-asm-abi.c
// REQUIRES: mips-registered-target // RUN: %clang_cc1 -triple mips-linux-gnu -emit-obj -o - %s | \ // RUN: llvm-readobj -h - | FileCheck %s // CHECK: EF_MIPS_ABI_O32 __asm__( "bar:\n" " nop\n" ); void foo() {}
Add test case to check ABI flag emissions in case of inline assembler
[mips] Add test case to check ABI flag emissions in case of inline assembler Follow up to r247546. The test case reproduces the problem fixed by this commit. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@247548 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
4ec209a4c7e1d9c0903f454c5aa3c8e2ed19edb0
cmd/smyrna/topviewdefs.h
cmd/smyrna/topviewdefs.h
#ifndef TOPVIEWDEFS_H #define TOPVIEWDEFS_H #include "smyrnadefs.h" #include "gui.h" #include "tvnodes.h" #include "glcompset.h" #endif
/* 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
MjAbuz/graphviz,kbrock/graphviz,pixelglow/graphviz,kbrock/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,kbrock/graphviz,kbrock/graphviz,MjAbuz/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,pixelglow/graphviz,BMJHayward/graphviz,BMJHayward/gra...
6854cea3b6c5179fcf84b29194bb70c65aae82e8
core/vulkan/vk_virtual_swapchain/cc/platform.h
core/vulkan/vk_virtual_swapchain/cc/platform.h
/* * Copyright (C) 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * Copyright (C) 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Fix clang-format with different clang-format version
Fix clang-format with different clang-format version
C
apache-2.0
google/agi,google/agi,pmuetschard/gapid,Qining/gapid,pmuetschard/gapid,Qining/gapid,pmuetschard/gapid,Qining/gapid,pmuetschard/gapid,pmuetschard/gapid,google/gapid,google/agi,google/agi,google/gapid,Qining/gapid,google/gapid,google/gapid,google/agi,google/agi,pmuetschard/gapid,google/agi,google/gapid,Qining/gapid,googl...
98aabdc63f8ef285aadcfff35e582bba69d70bac
SocksLib/protocol/Socks5UDPRequestMessage.h
SocksLib/protocol/Socks5UDPRequestMessage.h
#ifndef SOCKS5UDPREQUESTMESSAGE_H #define SOCKS5UDPREQUESTMESSAGE_H #include <QHostAddress> #include "SocksProtocolMessage.h" class Socks5UDPRequestMessage : public SocksProtocolMessage { public: Socks5UDPRequestMessage(QHostAddress dst, quint16 dstPort, QByteArray data, quint8 fragID=0); Socks5UDPRequestMes...
#ifndef SOCKS5UDPREQUESTMESSAGE_H #define SOCKS5UDPREQUESTMESSAGE_H #include <QHostAddress> #include "SocksProtocolMessage.h" class Socks5UDPRequestMessage : public SocksProtocolMessage { public: Socks5UDPRequestMessage(QHostAddress dst, quint16 dstPort, QByteArray data, quint8 fragID=0); Socks5UDPRequestMes...
Fix warning about initialization order (GCC/Clang, -Wreorder)
Fix warning about initialization order (GCC/Clang, -Wreorder)
C
bsd-2-clause
blochbergermax/Qt-Socks-Server,raptorswing/Qt-Socks-Server,blochberger/Qt-Socks-Server,blochberger/Qt-Socks-Server,raptorswing/Qt-Socks-Server,blochbergermax/Qt-Socks-Server
195c94360f726702b4a9a2290f02db2cd547d903
UefiCpuPkg/Include/Register/Msr.h
UefiCpuPkg/Include/Register/Msr.h
/** @file MSR Definitions. Provides defines for Machine Specific Registers(MSR) indexes. Data structures are provided for MSRs that contain one or more bit fields. If the MSR value returned is a single 32-bit or 64-bit value, then a data structure is not provided for that MSR. Copyright (c) 2016,...
Add top level MSR include file
UefiCpuPkg/Include: Add top level MSR include file Add top level MSR include file that includes the Architecural MSR include file and all family specific MSR files from the Msr subdirectory Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3, December 2015, Chapter 35 Model-Specific-Registers (M...
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
99c06cff63c4dc661b5cffc5a80f79327269684a
c/anagrams.c
c/anagrams.c
#include <stdlib.h> #include <stdio.h> #include <string.h> void swap(char *i, char *j) { char saved = *i; *i = *j; *j = saved; } void generate_permutations(char* a, int n) { if (n == 0) { printf("%s\n", a); } else { for (int i = 0; i < n; i++) { generate_permutations(a,...
#include <stdlib.h> #include <stdio.h> #include <string.h> void swap(char *i, char *j) { char saved = *i; *i = *j; *j = saved; } void generate_permutations(char* a, int n) { if (n == 0) { printf("%s\n", a); } else { for (int i = 0; i < n; i++) { generate_permutations(a,...
Make the error message consistent with all of the other languages
Make the error message consistent with all of the other languages
C
mit
rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,...