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
8b9c56f917399fd11e05f0561c095c275035c095
config.h
config.h
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 /* * It is somehow beneficial if this size is 32 bit aligned. */ #define MAX_MESSAGE_SIZE 512 #define WRITE_BUFFER_CHUNK 512 #define MAX_WRITE_BUFFER_SIZE 10 * WRITE_BUFFER_CHUNK /* Linux specific configs */ #define MAX_...
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 /* * It is somehow beneficial if this size is 32 bit aligned. */ #define MAX_MESSAGE_SIZE 512 #define WRITE_BUFFER_CHUNK 512 #define MAX_WRITE_BUFFER_SIZE (10 * (WRITE_BUFFER_CHUNK)) /* Linux specific configs */ #define ...
Use some paranthesis around macro parameters.
Use some paranthesis around macro parameters.
C
mit
mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet
b28d2f877b3c419bb7643a1eadef4ea28057b1e7
docs/examples/applications/list_all_groups.c
docs/examples/applications/list_all_groups.c
#include <opensync/opensync.h> #include <opensync/opensync-group.h> int main(int argc, char *argv[]) { OSyncList *groups, *g; int i = 0; osync_bool couldloadgroups; OSyncGroup *group = NULL; OSyncGroupEnv *groupenv = NULL; groupenv = osync_group_env_new(NULL); /* load groups from default dir */ couldlo...
#include <opensync/opensync.h> #include <opensync/opensync-group.h> int main(int argc, char *argv[]) { OSyncList *groups, *g; int i = 0; osync_bool couldloadgroups; OSyncGroup *group = NULL; OSyncGroupEnv *groupenv = NULL; groupenv = osync_group_env_new(NULL); /* load groups from default dir */ couldlo...
Fix potential memory leak - freeing the newly created OSyncList was missing
Fix potential memory leak - freeing the newly created OSyncList was missing git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@5736 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e
C
lgpl-2.1
luizluca/opensync-luizluca,luizluca/opensync-luizluca
d21808b5823bdf53fc969019969f700573a8eb69
CefSharp.BrowserSubprocess.Core/Messaging/EvaluateScriptDelegate.h
CefSharp.BrowserSubprocess.Core/Messaging/EvaluateScriptDelegate.h
// Copyright 2010-2015 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "../CefSharp.Core/Internals/Messaging/ProcessMessageDelegate.h" namespace CefSharp { class CefAppUnmanagedWrappe...
// Copyright 2010-2015 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "../CefSharp.Core/Internals/Messaging/ProcessMessageDelegate.h" namespace CefSharp { class CefAppUnmanagedWrappe...
Rename variable to be more .net like
Rename variable to be more .net like
C
bsd-3-clause
Haraguroicha/CefSharp,ITGlobal/CefSharp,jamespearce2006/CefSharp,NumbersInternational/CefSharp,zhangjingpu/CefSharp,VioletLife/CefSharp,illfang/CefSharp,windygu/CefSharp,battewr/CefSharp,joshvera/CefSharp,battewr/CefSharp,Haraguroicha/CefSharp,ITGlobal/CefSharp,windygu/CefSharp,jamespearce2006/CefSharp,VioletLife/CefSh...
a4db1a0e0a897b2b82793b8a8f944370ac42b52f
tests/regression/51-threadjoins/05-assume-unknown.c
tests/regression/51-threadjoins/05-assume-unknown.c
//PARAM: --set ana.activated[+] threadJoins #include <pthread.h> #include <assert.h> int g = 0; void *t_fun(void *arg) { g++; // RACE! return NULL; } int main() { pthread_t id, id2; pthread_create(&id, NULL, t_fun, NULL); __goblint_assume_join(id2); // joining unknown thread ID, shouldn't make joined set ...
Add assume join test with unknown thread ID
Add assume join test with unknown thread ID
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
f117facb5ade615965bdd76a870659fe1f62f302
test/Analysis/uninit-vals-ps-region.c
test/Analysis/uninit-vals-ps-region.c
// RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; }; struct s global; void g(int); void f4() { int a; if (global.data == 0) a = 3; if (global.data == 0) g(a); // no-warning }
// RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; }; struct s global; void g(int); void f4() { int a; if (global.data == 0) a = 3; if (global.data == 0) // The true branch is infeasible. g(a); // no-warning }
Add comment to test case for documentation.
Add comment to test case for documentation. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60521 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
5322ef2006cc93ad76140ff742cd96e74c1ec09b
compat/bswap.h
compat/bswap.h
/* * Let's make sure we always have a sane definition for ntohl()/htonl(). * Some libraries define those as a function call, just to perform byte * shifting, bringing significant overhead to what should be a simple * operation. */ /* * Default version that the compiler ought to optimize properly with * constant...
/* * Let's make sure we always have a sane definition for ntohl()/htonl(). * Some libraries define those as a function call, just to perform byte * shifting, bringing significant overhead to what should be a simple * operation. */ /* * Default version that the compiler ought to optimize properly with * constant...
Fix some printf format warnings
Fix some printf format warnings commit 51ea551 ("make sure byte swapping is optimal for git" 2009-08-18) introduced a "sane definition for ntohl()/htonl()" for use on some GNU C platforms. Unfortunately, for some of these platforms, this results in the introduction of a problem which is essentially the reverse of a pr...
C
mit
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
2c1de29d687dc782897f0e566080cf5d9678893c
Sources/cllvm/shim.h
Sources/cllvm/shim.h
#define _GNU_SOURCE #define __STDC_CONSTANT_MACROS #define __STDC_FORMAT_MACROS #define __STDC_LIMIT_MACROS #include <llvm-c/Analysis.h> #include <llvm-c/BitReader.h> #include <llvm-c/BitWriter.h> #include <llvm-c/Core.h> #include <llvm-c/DebugInfo.h> #include <llvm-c/Disassembler.h> #include <llvm-c/ErrorHandling.h> ...
#define _GNU_SOURCE #define __STDC_CONSTANT_MACROS #define __STDC_FORMAT_MACROS #define __STDC_LIMIT_MACROS #include <llvm-c/Analysis.h> #include <llvm-c/BitReader.h> #include <llvm-c/BitWriter.h> #include <llvm-c/Core.h> #include <llvm-c/DebugInfo.h> #include <llvm-c/Disassembler.h> #include <llvm-c/ErrorHandling.h> ...
Prepare for LLVM 7.0 migrating some utility passes
Prepare for LLVM 7.0 migrating some utility passes
C
mit
trill-lang/LLVMSwift
4f6d59a7ad30a4e27be1d3db20f39ad718bfb67a
src/vm/moar/ops/perl6_ops.c
src/vm/moar/ops/perl6_ops.c
#define MVM_SHARED 1 #include "moar.h" /* Initializes the Perl 6 extension ops. */ static void p6init(MVMThreadContext *tc) { } /* Registers the extops with MoarVM. */ void Rakudo_ops_init(MVMThreadContext *tc) { MVM_ext_register_extop(tc, "p6init", p6init, 0, NULL); }
#define MVM_SHARED 1 #include "moar.h" /* Initializes the Perl 6 extension ops. */ static void p6init(MVMThreadContext *tc) { } /* Registers the extops with MoarVM. */ MVM_DLL_EXPORT void Rakudo_ops_init(MVMThreadContext *tc) { MVM_ext_register_extop(tc, "p6init", p6init, 0, NULL); }
Make sure to export extops init symbol.
Make sure to export extops init symbol.
C
artistic-2.0
Gnouc/rakudo,teodozjan/rakudo,tbrowder/rakudo,sergot/rakudo,nunorc/rakudo,ugexe/rakudo,ab5tract/rakudo,salortiz/rakudo,tony-o/rakudo,zostay/rakudo,MasterDuke17/rakudo,azawawi/rakudo,cygx/rakudo,labster/rakudo,cognominal/rakudo,skids/rakudo,labster/rakudo,sjn/rakudo,tony-o/rakudo,sergot/rakudo,ungrim97/rakudo,samcv/raku...
f679a986df5514bb42e001a5afd149f839ebed03
test/Sema/return-noreturn.c
test/Sema/return-noreturn.c
// RUN: clang-cc %s -fsyntax-only -verify -fblocks -Wmissing-noreturn int j; void test1() { // expected-warning {{function could be attribute 'noreturn'}} ^ (void) { while (1) { } }(); // expected-warning {{block could be attribute 'noreturn'}} ^ (void) { if (j) while (1) { } }(); while (1) { } } void test2() {...
// RUN: clang-cc %s -fsyntax-only -verify -fblocks -Wmissing-noreturn int j; void test1() { // expected-warning {{function could be attribute 'noreturn'}} ^ (void) { while (1) { } }(); // expected-warning {{block could be attribute 'noreturn'}} ^ (void) { if (j) while (1) { } }(); while (1) { } } void test2() {...
Add two more test cases for attribute 'noreturn'.
Add two more test cases for attribute 'noreturn'. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@82841 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,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-cl...
d833601615d09c98fdc629e9b07490ffc218ff7d
bottleopener/platforms.h
bottleopener/platforms.h
#pragma once //#define __PLATFORM_CARRIOTS__ 1 //#define __PLATFORM_INITIALSTATE__ 1 #define __PLATFORM_SHIFTR__ 1 #define __PLATFORM_THINGSPEAK__ 1
#pragma once #define __PLATFORM_CARRIOTS__ 1 //#define __PLATFORM_INITIALSTATE__ 1 //#define __PLATFORM_SHIFTR__ 1 //#define __PLATFORM_THINGSPEAK__ 1
Change platform selection to Carriots
Change platform selection to Carriots
C
mit
Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot
00aac489636d56fcbe90874fa18e26c617d2d26d
3RVX/HotkeyInfo.h
3RVX/HotkeyInfo.h
#pragma once #include <map> #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, EjectDrive, EjectLatestDrive, MediaKey, RunApp, Settings, Exit, }...
#pragma once #include <map> #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, EjectDrive, EjectLatestDrive, MediaKey, RunApp, Settings, Exit, }...
Add documentation and ensure parameters are unsigned
Add documentation and ensure parameters are unsigned
C
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX
eed9cdf420ef882a796d9f8e9a233ded25c9becb
tests/rtp/codec-discovery.c
tests/rtp/codec-discovery.c
#include <gst/gst.h> #include <gst/farsight/fs-codec.h> #include "fs-rtp-discover-codecs.h" int main (int argc, char **argv) { GList *elements = NULL; GError *error = NULL; gst_init (&argc, &argv); g_debug ("AUDIO STARTING!!"); elements = load_codecs (FS_MEDIA_TYPE_AUDIO, &error); if (error) g_...
#include <gst/gst.h> #include <gst/farsight/fs-codec.h> #include "fs-rtp-discover-codecs.h" int main (int argc, char **argv) { GList *elements = NULL; GError *error = NULL; gst_init (&argc, &argv); g_debug ("AUDIO STARTING!!"); elements = fs_rtp_blueprints_get (FS_MEDIA_TYPE_AUDIO, &error); if (err...
Use the new function names for the codec discovery tests
Use the new function names for the codec discovery tests
C
lgpl-2.1
tieto/farstream,tieto/farstream,pexip/farstream,ahmedammar/skype_farsight2,pexip/farstream,tieto/farstream,shadeslayer/farstream,pexip/farstream,ahmedammar/skype_farsight2,kakaroto/farstream,ahmedammar/skype_farsight2,pexip/farstream,tieto/farstream,kakaroto/farstream,ahmedammar/skype_farsight2,shadeslayer/farstream,ka...
6fd88d81d55e1199bab54aedc186e01dda4dbc2a
libpatlms/include/patlms/type/exception/detail/date_parse_exception.h
libpatlms/include/patlms/type/exception/detail/date_parse_exception.h
#ifndef INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #define INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #include <patlms/type/exception/exception.h> namespace type { namespace exception { namespace detail { class DateParseException : public interface::Exception { inline char const* what() c...
#ifndef INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #define INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #include <patlms/type/exception/exception.h> namespace type { namespace exception { namespace detail { class DateParseException : public interface::Exception { inline char const* what() c...
Remove dot from exception message
Remove dot from exception message
C
mit
chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas
87474f57f90f8b312f1cce96152f7d24aa7f3321
ietf/rtp7587.h
ietf/rtp7587.h
/* * RTP Payload Format for the Opus Speech and Audio Codec */ #ifndef __BITSTREAM_IETF_RTP7587_H__ # define __BITSTREAM_IETF_RTP7587_H__ #define RTP_7587_CLOCKRATE 48000 #endif /* !__BITSTREAM_IETF_RTP7587_H__ */
Add Opus RTP payload format header
Add Opus RTP payload format header
C
mit
kierank/bitstream,gfto/bitstream,gfto/bitstream,theambient/bitstream_c,theambient/bitstream_c,kierank/bitstream
c6f1f85bf3a1c1e52ff1114ae05e04b82213f186
tests/regression/36-octapron/22-traces-write-centered-vs-meet-mutex.c
tests/regression/36-octapron/22-traces-write-centered-vs-meet-mutex.c
// SKIP PARAM: --sets ana.activated[+] octApron #include <pthread.h> #include <assert.h> int g = 0; int h = 0; int i = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; // h <= g pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; // h == g pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { int x, y...
Add relational traces write vs mutex-meet example
Add relational traces write vs mutex-meet example
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
269c892039f901b97057614b664e72df31c2c597
src/driver_control/dc_dump.c
src/driver_control/dc_dump.c
void dc_dump() { static int prev_l = 0, prev_r = 0; if (!prev_l && vexRT[Btn7L]) dump_set(-80); if (!prev_r && vexRT[Btn7R]) dump_set(80); if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R])) dump_set(0); prev_l = vexRT[Btn7L]; prev_r = vexRT[Btn7R]; }
void dc_dump() { // TODO: Check direction and change to U and D static int prev_l = 0, prev_r = 0; if (!prev_l && vexRT[Btn7L]) dump_set(-127); if (!prev_r && vexRT[Btn7R]) dump_set(127); if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R])) dump_set(0); prev_l = v...
Change dump power to 127
Change dump power to 127
C
mit
qsctr/vex-4194b-2016
81ba4f0afa96aa863e254f8fc124a2a7096ca5dc
src/include/ccn/sockcreate.h
src/include/ccn/sockcreate.h
/* * sockcreate.h * Copyright (C) 2009 Palo Alto Research Center, Inc. All rights reserved. */ struct sockaddr_storage; struct sockaddr; /** * Holds a pair of socket file descriptors. * * Some platfoms/modes of operations require separate sockets for sending * and receiving, so we accomodate that with this pai...
Introduce header for doing socket setup (useful for multicast).
Introduce header for doing socket setup (useful for multicast).
C
lgpl-2.1
cawka/ndnx,svartika/ccnx,cawka/ndnx,cawka/ndnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,svartika/ccnx,cawka/ndnx,ebollens/ccnmp,svartika/ccnx,ebollens/ccnmp,ebollens/ccnmp,svartika/ccnx,svartika/ccnx,svartika/ccnx
7d024fbf8348d0e5979c51641a5eec857a0c01e0
iOS/PlayPlan/Main/MainViewController.h
iOS/PlayPlan/Main/MainViewController.h
// // ViewController.h // PlayPlan // // Created by Zeacone on 15/10/25. // Copyright © 2015年 Zeacone. All rights reserved. // #import <UIKit/UIKit.h> #import <Accelerate/Accelerate.h> #import "PlayPlan.h" #import "SideMenu.h" @interface MainViewController : UIViewController <UITableViewDelegate, UITableViewDataS...
// // ViewController.h // PlayPlan // // Created by Zeacone on 15/10/25. // Copyright © 2015年 Zeacone. All rights reserved. // #import <UIKit/UIKit.h> #import <Accelerate/Accelerate.h> #import "PlayPlan.h" #import "SideMenu.h" @class MainViewController; @protocol MainDelegate <NSObject> - (void)dismissViewContr...
Add delegate for main view controller.
Add delegate for main view controller.
C
mit
Zeacone/PlayPlan,Zeacone/PlayPlan
3e26416dfc0cbfe6db4d07fb0564300ab538a3cc
folly/io/async/ssl/OpenSSLTransportCertificate.h
folly/io/async/ssl/OpenSSLTransportCertificate.h
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
Add static helper to extract X509 from cert
Add static helper to extract X509 from cert Summary: Since callsites wanting an X509 from an AsyncTransportCertificate will have to perform a dynamic cast to an OpenSSLTransportCertificiate, we might as well abstract that away into a static helper. This makes it potentially a bit easier to change implementation detai...
C
apache-2.0
facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly
dc429dd18745437590ab54bb6041490b86bfb543
source/Pictus/imagecache_fileentry.h
source/Pictus/imagecache_fileentry.h
#ifndef PICTUS_IMAGECACHE_FILEENTRY_H #define PICTUS_IMAGECACHE_FILEENTRY_H #include "illa/image.h" #include "orz/types.h" #include <boost/date_time.hpp> #if _WIN32 #define ENABLE_CREATED_TIME #endif namespace Img { namespace Internal { class FileEntry { public: Img::Image::Ptr Image(); const std::stri...
#ifndef PICTUS_IMAGECACHE_FILEENTRY_H #define PICTUS_IMAGECACHE_FILEENTRY_H #include "illa/image.h" #include "orz/types.h" #include <boost/date_time.hpp> #if _WIN32 #define ENABLE_CREATED_TIME #endif namespace Img { namespace Internal { class FileEntry { public: Img::Image::Ptr Image(); const std::stri...
Use correct data type for file size
Use correct data type for file size
C
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
47d66020e838b170d10e4e081c8592d2ec3816c4
test_case.h
test_case.h
#ifndef TEST_CASE_H #define TEST_CASE_H namespace fs_testing { class test_case { public: virtual ~test_case() {}; virtual int setup() = 0; virtual int run() = 0; virtual int check_test() = 0; }; typedef test_case* create_t(); typedef void destroy_t(test_case*); } // namespace fs_testing #endif
#ifndef TEST_CASE_H #define TEST_CASE_H namespace fs_testing { class test_case { public: virtual ~test_case() {}; virtual int setup() = 0; virtual int run() = 0; virtual int check_test() = 0; }; typedef test_case* test_create_t(); typedef void test_destroy_t(test_case*); } // namespace fs_testing #endif
Modify to work with dynamic class loader class.
Modify to work with dynamic class loader class.
C
apache-2.0
utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey
ed7d196ea8ad39186c5fedd21e3a3c135027bc01
master/types.h
master/types.h
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exce...
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exce...
Add new member in MODBUSMasterStatus
Add new member in MODBUSMasterStatus
C
mit
Jacajack/modlib
472c3832f55fc92d866aaafe1ff78e6c548c1bd5
core/editline/src/rlcurses.h
core/editline/src/rlcurses.h
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Fix for solaris: declare tigetnum
Fix for solaris: declare tigetnum git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@30238 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root
f2dc5111e65e46a2f7f34fc0117d015749558ec9
TDTChocolate/FoundationAdditions/NSProcessInfo+TDTEnvironmentDetection.h
TDTChocolate/FoundationAdditions/NSProcessInfo+TDTEnvironmentDetection.h
#import <Foundation/Foundation.h> @interface NSProcessInfo (TDTEnvironmentDetection) /** Determine if the current process is running inside a unit test context. Use case: When running unit tests on iOS, it is not necessary to fully initialize the application. The following check can be used to return early in th...
#import <Foundation/Foundation.h> @interface NSProcessInfo (TDTEnvironmentDetection) /** Determine if the current process is running inside a unit test context. Use case: When running unit tests on iOS, it is not necessary to fully initialize the application. The following check can be used to return early in th...
Update method name in documentation
Update method name in documentation
C
bsd-3-clause
talk-to/Chocolate,talk-to/Chocolate
ac9a5b3f4fb6037e3c75440a22cdda23776bd053
extensions/ringopengl/ring_opengl21.c
extensions/ringopengl/ring_opengl21.c
#include "ring.h" /* OpenGL 2.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_glAccum) { if ( RING_API_PARACOUNT != 2 ) { RING_API_ERROR(RING_API_MISS2PARA); return ; } if ( ! RING_API_ISNUMBER(1) ) { RING_API_ERROR(RING_AP...
#include "ring.h" /* OpenGL 2.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_glAccum) { if ( RING_API_PARACOUNT != 2 ) { RING_API_ERROR(RING_API_MISS2PARA); return ; } if ( ! RING_API_ISNUMBER(1) ) { RING_API_ERROR(RING_AP...
Update RingOpenGL - Add Function (Source Code) : void glActiveTexture(GLenum texture)
Update RingOpenGL - Add Function (Source Code) : void glActiveTexture(GLenum texture)
C
mit
ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring
9e2cb080cae3cf4d0df9ac48ea342daa3590bca9
include/dynamicsJRLJapan/GeometricData.h
include/dynamicsJRLJapan/GeometricData.h
/*! \file GeometricData.h Geometric data for robots when available. Copyright (c) 2010 @author Olivier Stasse JRL-Japan, CNRS/AIST All rights reserved. Please see License.txt for more informations on the license related to this software. */ #ifndef _DYNAMICS_JRL_JAPAN_GEOMETRIC_DATA_H_ #define _...
Add reading of geometrical parts.
Add reading of geometrical parts. Not yet doing something useful with it. GeometricData will store the geometric information. We are moving slowly to openvrml...
C
isc
jrl-umi3218/jrl-dynamics,jrl-umi3218/jrl-dynamics
043f57e09b031bc53b4e2b0837f2d272da8717b5
include/canvas/renderer/pipeline_builder.h
include/canvas/renderer/pipeline_builder.h
#pragma once #include <nucleus/optional.h> #include "canvas/renderer/pipeline.h" #include "canvas/renderer/vertex_definition.h" #include "canvas/utils/shader_source.h" namespace ca { class Renderer; class PipelineBuilder { public: explicit PipelineBuilder(Renderer* renderer); PipelineBuilder& attribute(nu::St...
#pragma once #include <nucleus/optional.hpp> #include "canvas/renderer/pipeline.h" #include "canvas/renderer/vertex_definition.h" #include "canvas/utils/shader_source.h" namespace ca { class Renderer; class PipelineBuilder { public: explicit PipelineBuilder(Renderer* renderer); PipelineBuilder& attribute(nu::...
Fix compilation error with improved Optional.
Fix compilation error with improved Optional.
C
mit
tiaanl/canvas,tiaanl/canvas,tiaanl/canvas
e9fbbe52f18826d5e44aaf596a59439cab4f4c60
test/CodeGen/2008-07-31-asm-labels.c
test/CodeGen/2008-07-31-asm-labels.c
// RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // RUN: not grep 'g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // <rdr://6116729> vo...
// RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // RUN: not grep '@g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // <rdr://6116729> v...
Fix asm label testcase flaw
Fix asm label testcase flaw - Testcase attempts to (not) grep 'g0' in output to ensure asm symbol is properly renamed, but g0 is too generic and can be part of the module's path in LLVM IR output. - Changed to grep '@g0', which is what the proper global symbol name would be if not using asm. git-svn-id: ffe6687...
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
978e37fa01132c6378622931651da7926ef4c344
efisame.c
efisame.c
#include <efivar.h> #include <stdio.h> #include <stdlib.h> int main() { efi_guid_t guid = EFI_GLOBAL_GUID; const char* name = "BootCurrent"; uint8_t *data; size_t data_size; uint32_t attr; int res = efi_get_variable(guid, name, &data, &data_size, &attr); if (res < 0) { perror("efi_get_variable");...
Add sample code to get efivar
Add sample code to get efivar
C
mit
dtzWill/efi-same
e0a8fa29f6868596c9153775e17bbe1fed219835
tests/regression/02-base/33-assert-infinite-loop.c
tests/regression/02-base/33-assert-infinite-loop.c
// PARAM: --sets solver td3 --enable ana.int.interval --disable ana.int.def_exc --set ana.activated "['base']" // This is a pattern we saw in some examples for SVCOMP, where instead of the assert(0) there was a call to verifier error. // Because of the demand-driven nature of our solvers, we never looked at the code in...
Add example containing infinite loop with assert
Add example containing infinite loop with assert This is a pattern we saw in some examples for SVCOMP, where instead of the assert(0) there was a call to verifier error. Because of the demand-driven nature of our solvers, we never looked at the code inside fail since there is no edge from the loop to the endpoint of f...
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
60b9d099416283d5f13f19fc19a5e7c20fe012e2
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); // Modifying methods void post(TaskId, Serialized...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Modifying methods v...
Modify the instance getter of DataStore to public
Modify the instance getter of DataStore to public
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
ee4c2a98030ca0aae12a474b3ebde34d5a55c53d
libevmjit-cpp/JitVM.h
libevmjit-cpp/JitVM.h
#pragma once #include <libevm/VMFace.h> #include <evmjit/libevmjit/ExecutionEngine.h> namespace dev { namespace eth { class JitVM: public VMFace { public: virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp = {}, uint64_t _steps = (uint64_t)-1) override final; private: jit::Runtime...
#pragma once #include <libevm/VMFace.h> #include <evmjit/libevmjit/ExecutionEngine.h> namespace dev { namespace eth { class JitVM: public VMFace { public: virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp, uint64_t _steps) override final; private: jit::RuntimeData m_data; jit::E...
Change the way execution results are collected.
Change the way execution results are collected. Changes handling ExecutionResult by Executive. From now execution results are collected on if a storage for results (ExecutionResult) is provided to an Executiove instance up front. This change allow better output management for calls - VM interface improved.
C
mit
ethcore/evmjit,debris/evmjit,ethcore/evmjit,debris/evmjit
42f453c38a1dd6c14aaf9cd655034d258c9ae931
lib/ext/digest/defs.h
lib/ext/digest/defs.h
/* -*- C -*- * $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $ */ #ifndef DIGEST_DEFS_H #define DIGEST_DEFS_H #include "ruby.h" #include <sys/types.h> #include <sys/cdefs.h> /* * #if defined(HAVE_SYS_CDEFS_H) * # include <sys/cdefs.h> * #endif * #if !defined(__BEGIN_DECLS) * # define __BEGIN_DECLS * # defi...
/* -*- C -*- * $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $ */ #ifndef DIGEST_DEFS_H #define DIGEST_DEFS_H #include "ruby.h" #include <sys/types.h> #include <sys/cdefs.h> /* * #if defined(HAVE_SYS_CDEFS_H) * # include <sys/cdefs.h> * #endif * #if !defined(__BEGIN_DECLS) * # define __BEGIN_DECLS * # defi...
Fix Digest failures on OSX PPC (big endian) systems
Fix Digest failures on OSX PPC (big endian) systems - add some tests to defs.h to check for the existence of the __BIG_ENDIAN__ macro which is available on POSIX systems. If it is defined, we define the WORDS_BIGENDIAN macro which is tested by the digest/**/*.c files to activate special code for byte reordering ...
C
bsd-3-clause
heftig/rubinius,mlarraz/rubinius,sferik/rubinius,lgierth/rubinius,jemc/rubinius,kachick/rubinius,travis-repos/rubinius,pH14/rubinius,jemc/rubinius,Wirachmat/rubinius,ngpestelos/rubinius,slawosz/rubinius,Azizou/rubinius,travis-repos/rubinius,pH14/rubinius,digitalextremist/rubinius,digitalextremist/rubinius,jemc/rubinius...
74de5774f6ac0458a72e7dac54df6b014a05490a
core/src/platform.h
core/src/platform.h
#pragma once #ifdef PLATFORM_ANDROID struct _JNIEnv; typedef _JNIEnv JNIEnv; class _jobject; typedef _jobject* jobject; void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager); #endif #if (defined PLATFORM_IOS) && (defined __OBJC__) #import "ViewController.h" void setViewController(ViewController* _controll...
#pragma once #ifdef PLATFORM_ANDROID struct _JNIEnv; typedef _JNIEnv JNIEnv; class _jobject; typedef _jobject* jobject; void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager); #endif #if (defined PLATFORM_IOS) && (defined __OBJC__) #import "ViewController.h" void setViewController(ViewController* _controll...
Add headers for setting and getting continuous rendering state
Add headers for setting and getting continuous rendering state
C
mit
tangrams/tangram-es,xvilan/tangram-es,cleeus/tangram-es,cleeus/tangram-es,hjanetzek/tangram-es,karimnaaji/tangram-es,hjanetzek/tangram-es,xvilan/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,karimnaaji/tangr...
e86ec93def569ec100bcbca7e9f1952e64a0851d
inc/libutils/io/system_log.h
inc/libutils/io/system_log.h
/* * system_log.h * * Author: Ming Tsang * Copyright (c) 2014 Ming Tsang * Refer to LICENSE for details */ #pragma once #include "libutils/io/logger.h" #include "libutils/misc/singleton.h" namespace libutils { namespace io { /** * The default system logger */ template<typename CharT> class SystemLog : publi...
/* * system_log.h * * Author: Ming Tsang * Copyright (c) 2014 Ming Tsang * Refer to LICENSE for details */ #pragma once #include "libutils/misc/singleton.h" namespace libutils { namespace io { template<typename T> class Logger; } } namespace libutils { namespace io { /** * The default system logger */ te...
Include logger.h later to prevent using SystemLog before definition
Include logger.h later to prevent using SystemLog before definition
C
mit
nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils
768df6b3adad4557b81749e18c06c56c0a0c53fb
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
Add GTMKeychain.h to umbrella header
Add GTMKeychain.h to umbrella header This is required for Xcode 12.5 and Swift Package Manager. Verified locally that this fix resolves the issue.
C
apache-2.0
google/GTMAppAuth,google/GTMAppAuth
d11d5a161003ccb024927fff5c620eb7515716fc
source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h
source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h
//===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
Fix compilation for MinGW, remove redundant class name on inline member
[LLDB] Fix compilation for MinGW, remove redundant class name on inline member This fixes build errors like these: NativeRegisterContextWindows.h:22:33: error: extra qualification on member 'NativeRegisterContextWindows' NativeRegisterContextWindows::NativeRegisterContextWindows( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ...
C
apache-2.0
llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb
8c1f6397bf58de0676cd2ef0a59d2cd0debd3c60
lib/src/models/post-filter.h
lib/src/models/post-filter.h
#ifndef POST_FILTER_H #define POST_FILTER_H #include <QString> #include <QStringList> #include <QMap> #include "loader/token.h" class PostFilter { public: static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters); static QStringList blacklisted(const QMap<QString, Token> &tokens,...
#ifndef POST_FILTER_H #define POST_FILTER_H #include <QString> #include <QStringList> #include <QMap> #include "loader/token.h" class PostFilter { public: static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters); static QStringList blacklisted(const QMap<QString, Token> &tokens,...
Fix tests broken by new PostFilter class
Fix tests broken by new PostFilter class
C
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
83c438405367324e00e15d39f7ee82e2f467f2f6
config.def.h
config.def.h
/* See LICENSE file for copyright and license details. */ /* Notification, remove DNOTIFY in config.mk if you don't want it */ static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */ static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */ /* * This is the array which...
/* See LICENSE file for copyright and license details. */ /* Notification, remove DNOTIFY in config.mk if you don't want it */ static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */ static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */ /* * This is the array which...
Make a small grammar fix
Make a small grammar fix
C
isc
pickfire/spt,pickfire/spt
a7634a1e5a46e1cbcef577a2cb850cdf00ad63bc
features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h
features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h
/* * Copyright (c) 2015-2017 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * 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/LICE...
/* * Copyright (c) 2015-2017 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * 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/LICE...
Include ns_types.h before mbed_trace.h in Nanomesh
Include ns_types.h before mbed_trace.h in Nanomesh
C
apache-2.0
andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed
63a539999d8b712c5f975d400c33be20944bde23
src/x86/Gregs-x86.c
src/x86/Gregs-x86.c
/* libunwind - a platform-independent unwind library Copyright (C) 2002 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
Add a debug statement so accesses to bad register numbers can be seen with debugging enabled.
(x86_access_reg): Add a debug statement so accesses to bad register numbers can be seen with debugging enabled. (Logical change 1.81)
C
mit
zliu2014/libunwind-tilegx,bo-on-software/libunwind,pathscale/libunwind,atanasyan/libunwind,adsharma/libunwind,fdoray/libunwind,djwatson/libunwind,atanasyan/libunwind,androidarmv6/android_external_libunwind,frida/libunwind,dreal-deps/libunwind,android-ia/platform_external_libunwind,CyanogenMod/android_external_libunwind...
49d8436a2b84d7bd90fc76c17b723ad5c89772a7
net/flip/flip_bitmasks.h
net/flip/flip_bitmasks.h
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_FLIP_FLIP_BITMASKS_H_ #define NET_FLIP_FLIP_BITMASKS_H_ namespace flip { const int kStreamIdMask = 0x7fffffff; // StreamId mask from th...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_FLIP_FLIP_BITMASKS_H_ #define NET_FLIP_FLIP_BITMASKS_H_ namespace flip { const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mas...
Fix signed vs unsigned issue
linux: Fix signed vs unsigned issue Review URL: http://codereview.chromium.org/297015 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@30099 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,dednal/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,fujunwei/c...
e32e63bf018f24cfe6dbd0f2ab0ccad785e1d045
Source/Library/Object/HCIsNil.h
Source/Library/Object/HCIsNil.h
// // OCHamcrest - HCIsNil.h // Copyright 2011 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid // #import <OCHamcrest/HCBaseMatcher.h> /** Is the value @c nil? @b Factory: @ref nilValue, @ref notNilValue @ingroup object_matchers */ @interface HCIsNil : HCBaseMatcher + (id)isNil; @end #pr...
// // OCHamcrest - HCIsNil.h // Copyright 2011 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid // #import <OCHamcrest/HCBaseMatcher.h> @interface HCIsNil : HCBaseMatcher + (id)isNil; @end OBJC_EXPORT id<HCMatcher> HC_nilValue(); /** Matches if the value is @c nil. In the event of a name cla...
Simplify docs for nilValue / notNilValue
Simplify docs for nilValue / notNilValue
C
bsd-2-clause
hamcrest/OCHamcrest,nschum/OCHamcrest,klundberg/OCHamcrest,klundberg/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest,nschum/OCHamcrest,nschum/OCHamcrest
36e2af43dfed86736ee3f33cae7f32d51d5aeff4
include/libsvc/packetqueue.h
include/libsvc/packetqueue.h
#ifndef _PACKETQUEUE_H #define _PACKETQUEUE_H 1 #include <libsvc/thread.h> #include <libsvc/transport.h> #include <pthread.h> #include <stdlib.h> #include <stdint.h> typedef struct pktbuf_s { uint8_t pkt[4096]; } pktbuf; typedef struct packetqueue_s { thread super; pthread_mutexattr_t matt...
#ifndef _PACKETQUEUE_H #define _PACKETQUEUE_H 1 #include <libsvc/thread.h> #include <libsvc/transport.h> #include <pthread.h> #include <stdlib.h> #include <stdint.h> typedef struct pktbuf_s { uint8_t pkt[4096]; struct sockaddr_storage addr; } pktbuf; typedef struct packetqueue_s { threa...
Extend the packet ringbuffer to have address stamps
Extend the packet ringbuffer to have address stamps
C
apache-2.0
CloudVPS/opticon,CloudVPS/opticon,CloudVPS/opticon
d56d7adb525d0fb1c4516567d400ae13f2b93013
src/win/util.h
src/win/util.h
/* MIT License Copyright (c) 2017 Eren Okka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
/* MIT License Copyright (c) 2017 Eren Okka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
Add smart pointer for COM interfaces
Add smart pointer for COM interfaces
C
mit
erengy/anisthesia
74976f231130b843f555a8f73df18ffb4d89639e
test/CodeGen/debug-info-line2.c
test/CodeGen/debug-info-line2.c
// RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s // Radar 9199234 int bar(); int foo(int i) { int j = 0; if (i) { j = bar(); //CHECK: store i32 //CHECK-NOT: br label %{{%[a-zA-Z0-9\.]+}}, !dbg } else { j = bar() + 2; } return j; }
// RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s // Radar 9199234 int bar(); int foo(int i) { int j = 0; if (i) { j = bar(); } else { //CHECK: store i32 %add //CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg j = bar() + 2; } return j; }
Fix regexp for this test to properly check.
Fix regexp for this test to properly check. Patch by Eli Bendersky. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@160385 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
98330bd7030626759102845a0467ed2c71f26c30
documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.h
documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.h
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vdslib/container/searchresult.h> #include <vespa/documentapi/messagebus/messages/visitor.h> namespace documentapi { class SearchResultMessage : public VisitorMessage, ...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "visitor.h" #include <vespa/vdslib/container/searchresult.h> namespace documentapi { class SearchResultMessage : public VisitorMessage, public vdslib::Se...
Add the overrides and you are backin business.
Add the overrides and you are backin business.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
24049967c5cc379e34a8e1cd714d472949464300
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.50f; // 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.51f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
Increment version number from 1.50b to 1.51
Increment version number from 1.50b to 1.51
C
apache-2.0
ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW
653b614d7cd51871fa3f63bbbab9e05b83ba0437
Nimble/Nimble.h
Nimble/Nimble.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
#import <Foundation/Foundation.h> #import <Nimble/NMBExceptionCapture.h> #import <Nimble/DSL.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
Revert "Remove public headers from umbrella header"
Revert "Remove public headers from umbrella header" This reverts commit 7ab1093ffdf6adb66df1bf0799cfdbf34f136521.
C
apache-2.0
AnthonyMDev/Nimble,DanielAsher/Nimble,mishimay/Nimble,mishimay/Nimble,jeffh/Nimble,DanielAsher/Nimble,AnthonyMDev/Nimble,phatblat/Nimble,abbeycode/Nimble,DanielAsher/Nimble,phatblat/Nimble,dgdosen/Nimble,twobitlabs/Nimble,abbeycode/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,dgdos...
6f470d631baf6f5a9d30e49ef67593a12e7d7faa
adm/cmake/TKernel/Precompiled.h
adm/cmake/TKernel/Precompiled.h
#pragma once #include <string> #include <iostream> #include <math.h> #include "Standard.hxx" #include "Standard_PrimitiveTypes.hxx" #include "Standard_Stream.hxx" #include "Standard_Failure.hxx" #include "Standard_Transient.hxx" #ifdef USE_STL_STREAM #include <sstream> #else /* USE_STL_STREAM */ #ifdef WNT #include ...
#pragma once #include <string> #include <iostream> #include <math.h> #include "Standard.hxx" #include "Standard_PrimitiveTypes.hxx" #include "Standard_Stream.hxx" #include "Standard_Failure.hxx" #include "Standard_Transient.hxx"
Remove obsolete includes in TKernel precompiled
Remove obsolete includes in TKernel precompiled
C
lgpl-2.1
finetjul/oce,heartvalve/oce,heartvalve/oce,Tridify/oce,BenoitPerrot/oce,tpaviot/oce,tpaviot/oce,EvgeneOskin/oce,EvgeneOskin/oce,finetjul/oce,heartvalve/oce,finetjul/oce,finetjul/oce,Tridify/oce,EvgeneOskin/oce,Tridify/oce,BenoitPerrot/oce,BenoitPerrot/oce,finetjul/oce,Tridify/oce,tpaviot/oce,tpaviot/oce,heartvalve/oce,...
3da07a7bd126f9f2344c14858b61dcabbd2cf101
IntelFrameworkModulePkg/Include/Guid/DataHubProducer.h
IntelFrameworkModulePkg/Include/Guid/DataHubProducer.h
/** @file DataHubProducer.h include all GUID definition for producer Copyright (c) 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full te...
Move some datahub producer GUID from IntelFrameworkPkg to IntelFrameworkModulePkg.
Move some datahub producer GUID from IntelFrameworkPkg to IntelFrameworkModulePkg. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@3654 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
5b8d378c0bc0da49812eb880e40f6de5844d7d70
Sources/Core/Transformer/OCATransformer.h
Sources/Core/Transformer/OCATransformer.h
// // OCATransformer.h // Objective-Chain // // Created by Martin Kiss on 31.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // #import "OCATransformer+Base.h" #import "OCATransformer+Nil.h" #import "OCATransformer+Predefined.h"
// // OCATransformer.h // Objective-Chain // // Created by Martin Kiss on 31.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // #import "OCATransformer+Base.h" #import "OCATransformer+Predefined.h"
Fix import of removed file
Fix import of removed file
C
mit
iMartinKiss/Objective-Chain,Tricertops/Objective-Chain
a39acef2a0cad730bfa8317dc98c733212b2afb0
include/libk/kmem.h
include/libk/kmem.h
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <libk/kabort.h> #define KHEAP_PHYS_ROOT ((void*)0x100000) //#define KHEAP_PHYS_END ((void*)0xc1000000) #define KHEAP_END_SENTINEL (NULL) #define KHEAP_BLOCK_SLOP 32 struct kheap_metadata { size_t size; ...
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <arch/x86/memlayout.h> #include <libk/kabort.h> // KHEAP_PHYS_ROOT is defined in memlayout.h because it is architecture // specific. #define KHEAP_END_SENTINEL (NULL) #define KHEAP_BLOCK_SLOP 32 struct khea...
Move KHEAP macros into memlayout.h
Move KHEAP macros into memlayout.h We should try to make this file architecture agnostic
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth
94123219bfd5f9e688764a2125d36f206bf89704
src/include/libpq/be-fsstubs.h
src/include/libpq/be-fsstubs.h
/*------------------------------------------------------------------------- * * be-fsstubs.h-- * * * * Copyright (c) 1994, Regents of the University of California * * $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $ * *------------------------------------------------------------------------- */ ...
/*------------------------------------------------------------------------- * * be-fsstubs.h-- * * * * Copyright (c) 1994, Regents of the University of California * * $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $ * *------------------------------------------------------------------------- */ #...
Rename LOread() and LOwrite() to be lower case to allow use in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere.
Rename LOread() and LOwrite() to be lower case to allow use in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere.
C
mpl-2.0
kmjungersen/PostgresXL,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,Chibin/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,royc1/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,zeroae/postgres-xl,janebeckman/gpdb,50wu/gpdb,jmcatamney/gpdb,edespino/gpdb,randomtask1155/gpdb,rvs/gpdb,royc1/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,lintzc/gpdb,postmind-ne...
ebd65d48956d3a55fa5281f4cf5b5ee14172aae0
tests/regression/02-base/88-strings.c
tests/regression/02-base/88-strings.c
#include <assert.h> #include <stdlib.h> int main(){ char* str = "Hello"; char* str2 = "Hello"; char* str3 = "hi"; char* str4 = "other string"; // Unknown since the there may be multiple copies of the same string __goblint_check(str != str2); // UNKNOWN! __goblint_check(str == str); __...
#include <assert.h> #include <stdlib.h> int main(){ char* str = "Hello"; char* str2 = "Hello"; char* str3 = "hi"; char* str4 = "other string"; // Unknown since the there may be multiple copies of the same string __goblint_check(str != str2); // UNKNOWN! __goblint_check(str == str); __...
Add checks to regression tests that unknown pointers and string pointers may be equal
Add checks to regression tests that unknown pointers and string pointers may be equal
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
6a7fdeffa49b5c52c8d3aadd09838eb028aa16ef
src/opts/SkBlitRow_opts_SSE4.h
src/opts/SkBlitRow_opts_SSE4.h
/* * Copyright 2014 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBlitRow_opts_SSE4_DEFINED #define SkBlitRow_opts_SSE4_DEFINED #include "SkBlitRow.h" /* Check if we are able to build assembly code, GCC/AT&T s...
/* * Copyright 2014 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBlitRow_opts_SSE4_DEFINED #define SkBlitRow_opts_SSE4_DEFINED #include "SkBlitRow.h" /* Check if we are able to build assembly code, GCC/AT&T s...
Disable assembly code in MemorySanitizer builds.
Disable assembly code in MemorySanitizer builds. MemorySanitizer is an unitialized memory use detector which is used in Chromium, and does not presently support assembly code. BUG=chromium:344505, chromium:373739 R=mtklein@google.com Review URL: https://codereview.chromium.org/367973005
C
bsd-3-clause
OptiPop/external_chromium_org_third_party_skia,HalCanary/skia-hc,YUPlayGodDev/platform_external_skia,PAC-ROM/android_external_skia,invisiblek/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,scroggo/skia,Infinitive-OS/platform_external_skia,amyvmiwei/skia,MyAOSP/external_chromium_org_third_party_s...
612b95ba94af1bf3a2459dcec6a578c381374dc9
inc/types.h
inc/types.h
#pragma once #include <Eigen/Dense> namespace model { #if BICYCLE_USE_DOUBLE_PRECISION_REAL using real_t = double; #else using real_t = float; #endif } // namespace model
#pragma once namespace model { #if BICYCLE_USE_DOUBLE_PRECISION_REAL using real_t = double; #else using real_t = float; #endif } // namespace model
Remove Eigen/Dense include in type header
Remove Eigen/Dense include in type header
C
bsd-2-clause
oliverlee/bicycle,oliverlee/bicycle
75dc6c7cb879d0018893baf6ba6b49d1f16e1b92
unpack-trees.h
unpack-trees.h
#ifndef UNPACK_TREES_H #define UNPACK_TREES_H #define MAX_UNPACK_TREES 8 struct unpack_trees_options; typedef int (*merge_fn_t)(struct cache_entry **src, struct unpack_trees_options *options); struct unpack_trees_options { int reset; int merge; int update; int index_only; int nontrivial_merge; int trivial_m...
#ifndef UNPACK_TREES_H #define UNPACK_TREES_H #define MAX_UNPACK_TREES 8 struct unpack_trees_options; typedef int (*merge_fn_t)(struct cache_entry **src, struct unpack_trees_options *options); struct unpack_trees_options { unsigned int reset:1, merge:1, update:1, index_only:1, nontriv...
Make unpack_trees_options bit flags actual bitfields
Make unpack_trees_options bit flags actual bitfields Instead of wasting space with whole integers for a single bit. Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org> Signed-off-by: Junio C Hamano <a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com>
C
mit
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
4478bc737ca39f5f7d1db4488a5aa2c0d8a793d2
scripts/reference-citation/URLcheck.c
scripts/reference-citation/URLcheck.c
reference(citation): URLcheck If [ $$stopFileNameCheck = 1 ] Exit Script [ ] End If If [ Filter ( reference::fileName ; "?" ) = "?" or Filter ( reference::fileName ; "#" ) = "#" or Filter ( reference::fileName ; ";" ) = ";" or Filter ( reference::fileName ; ":" ) = ":" ] Show Custom Dialog [ Message: "These special charact...
reference(citation): URLcheck If [ $$stopFileNameCheck = 1 ] Exit Script [ ] End If If [ Filter ( reference::fileName ; "?" ) = "?" or Filter ( reference::fileName ; "#" ) = "#" or Filter ( reference::fileName ; ";" ) = ";" or Filter ( reference::fileName ; "/" ) = "/" or Filter ( reference::fileName ; ":" ) = ":" ] Show Cu...
Add slash = / to warning message
Add slash = / to warning message Add slash = / to warning message for file name character that prevent library from opening them.
C
apache-2.0
HelpGiveThanks/Library,HelpGiveThanks/Library
0e02d81608e0054a79b3760dc0af526df43f71e0
Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h
Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h
// // ApptentiveConversationMetadataItem.h // Apptentive // // Created by Frank Schmitt on 2/20/17. // Copyright © 2017 Apptentive, Inc. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, ApptentiveConversationState) { ApptentiveConversationStateNone = 0, ApptentiveConversation...
// // ApptentiveConversationMetadataItem.h // Apptentive // // Created by Frank Schmitt on 2/20/17. // Copyright © 2017 Apptentive, Inc. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, ApptentiveConversationState) { ApptentiveConversationStateUndefined = 0, ApptentiveConvers...
Update name of null state to match Android
Update name of null state to match Android
C
bsd-3-clause
apptentive/apptentive-ios,apptentive/apptentive-ios,apptentive/apptentive-ios
9f49055456049bdff41f61231553d29573fac184
test/Analysis/uninit-vals-ps.c
test/Analysis/uninit-vals-ps.c
// RUN: clang -checker-simple -verify %s struct FPRec { void (*my_func)(int * x); }; int bar(int x); int f1_a(struct FPRec* foo) { int x; (*foo->my_func)(&x); return bar(x)+1; // no-warning } int f1_b() { int x; return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}} ...
// RUN: clang -checker-simple -verify %s && // RUN: clang -checker-simple -analyzer-store-region -verify %s struct FPRec { void (*my_func)(int * x); }; int bar(int x); int f1_a(struct FPRec* foo) { int x; (*foo->my_func)(&x); return bar(x)+1; // no-warning } int f1_b() { int x; return bar(x)+1; // ex...
Enable test file for 'region store' in addition to basic store.
Enable test file for 'region store' in addition to basic store. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59762 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
bcc883fed382acb90216a8158f6bf62329581194
src/include/port/i386_solaris.h
src/include/port/i386_solaris.h
# define USE_POSIX_TIME # define USE_POSIX_SIGNALS # define NO_EMPTY_STMTS # define SYSV_DIRENT # define HAS_TEST_AND_SET typedef unsigned char slock_t; #include <sys/isa_defs.h> #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif #ifndef PDP_ENDIAN ...
# define USE_POSIX_TIME # define USE_POSIX_SIGNALS # define NO_EMPTY_STMTS # define SYSV_DIRENT # define HAS_TEST_AND_SET typedef unsigned char slock_t; #include <sys/isa_defs.h> #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif #ifndef PDP_ENDIAN ...
Remove HAVE_USAGE because it is no longer used.
Remove HAVE_USAGE because it is no longer used.
C
apache-2.0
Chibin/gpdb,lintzc/gpdb,zaksoup/gpdb,randomtask1155/gpdb,adam8157/gpdb,Chibin/gpdb,CraigHarris/gpdb,Quikling/gpdb,tangp3/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,jmcatamney/gpdb,yazun/postgres-xl,rvs/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,tangp3/gpdb,chrishajas/gpdb,Chibin/gpdb,kaknikhil/gpdb,...
3973eb1a7833ac3e96ff7738ef72b6bd6ce42685
examples/debug-trans-socket/duk_trans_socket.h
examples/debug-trans-socket/duk_trans_socket.h
#if !defined(DUK_TRANS_SOCKET_H_INCLUDED) #define DUK_TRANS_SOCKET_H_INCLUDED #include "duktape.h" void duk_trans_socket_init(void); void duk_trans_socket_finish(void); void duk_trans_socket_waitconn(void); duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, duk_size_t length); duk_size_t duk_trans_socket_...
#if !defined(DUK_TRANS_SOCKET_H_INCLUDED) #define DUK_TRANS_SOCKET_H_INCLUDED #include "duktape.h" #if defined(__cplusplus) extern "C" { #endif void duk_trans_socket_init(void); void duk_trans_socket_finish(void); void duk_trans_socket_waitconn(void); duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, du...
Enable C++ support for socket debug transport
Enable C++ support for socket debug transport
C
mit
svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape
e42dbed53ae145bd1b9b88c1903f0360904fea4e
include/llvm/Intrinsics.h
include/llvm/Intrinsics.h
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------...
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------...
Add a programatic interface to intrinsic names.
Add a programatic interface to intrinsic names. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27107 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/ll...
794450b5b7c744273aa1c8c6c920523a1f7b3801
src/mfast/json/json.h
src/mfast/json/json.h
#ifndef JSON_H_H4Q7QTC4 #define JSON_H_H4Q7QTC4 #include "mfast_json_export.h" #include "mfast.h" #include <iostream> namespace mfast { namespace json { MFAST_JSON_EXPORT bool encode(std::ostream& os, const ::mfast::aggregate_cref& msg, ...
#ifndef JSON_H_H4Q7QTC4 #define JSON_H_H4Q7QTC4 #include "mfast_json_export.h" #include "mfast.h" #include <iostream> namespace mfast { namespace json { MFAST_JSON_EXPORT bool encode(std::ostream& os, const ::mfast::aggregate_cref& msg, ...
Fix a JSON sequence encode bug
Fix a JSON sequence encode bug
C
bsd-3-clause
cuavas/mFAST,objectcomputing/mFAST,cuavas/mFAST,cuavas/mFAST,objectcomputing/mFAST
24652d16f84e4fd605aaffdd5112a606be6c8074
lib/Target/PowerPC/PPCMachineFunctionInfo.h
lib/Target/PowerPC/PPCMachineFunctionInfo.h
//===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file was developed by James M. Laskey and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
//===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file was developed by James M. Laskey and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
Add newline at end of file.
Add newline at end of file. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@31902 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,...
207820e858122666cbaa69801532258e5bfa6bce
ext/rubygame/rubygame_shared.h
ext/rubygame/rubygame_shared.h
/* * Rubygame -- Ruby code and bindings to SDL to facilitate game creation * Copyright (C) 2004-2007 John Croisant * * 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 * versi...
/* * Rubygame -- Ruby code and bindings to SDL to facilitate game creation * Copyright (C) 2004-2007 John Croisant * * 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 * versi...
Fix type conflict with min/max in shared.
Fix type conflict with min/max in shared.
C
lgpl-2.1
singpolyma/rubygame,rubygame/rubygame,Dami-coding/rubygame,singpolyma/rubygame,firstval/rubygame
affce21f6503652363251b264dc23d66e0994926
common_audio/signal_processing/cross_correlation.c
common_audio/signal_processing/cross_correlation.c
/* * Copyright (c) 2012 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) 2012 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 a cast again, after it was shown to worsen Windows perf.
Remove a cast again, after it was shown to worsen Windows perf. This will hurt Linux x64 perf, but we think that's a compiler bug and we're willing to take the hit for the better clarity of the code sans cast as well as the better Windows perf. Hopefully eventually the compiler will improve. BUG=504813 TEST=none TBR...
C
bsd-3-clause
Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,jchavanton/webrtc,Alkalyne/webrtctrunk,sippet/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,jchavanton/webrtc,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,jchavanton/webrtc,aleonliao/webrtc-trunk,sippet/...
4cdfad72c529d88b152318b8b713db521fe9e366
serializer.h
serializer.h
#ifndef SERIALIZER_H #define SERIALIZER_H #include <vector> #include <cstdint> #include <string> #include <algorithm> class Serializer { public: /** \brief Serialization of standard integer values */ void serialize( std::uint32_t value ) { serializeInteger( value ); } ...
Add helper class for serializing the data
Add helper class for serializing the data
C
bsd-3-clause
cinode/cpptestapp,cinode/cpptestapp
17aaf98c7a1db77947e28da9c407a094c2fcd64f
src/kernel.c
src/kernel.c
#include <rose/interrupts.h> #include <rose/screen.h> #include <rose/serial.h> #include <rose/memory.h> extern void protected_mode_start(void); extern char end[]; void kmain(void) { interrupts_disable(); screen_clear(); memory_init_gdt(); interrupts_init(); protected_mode_start(); serial_init...
#include <rose/console.h> #include <rose/interrupts.h> #include <rose/screen.h> #include <rose/serial.h> #include <rose/memory.h> extern void protected_mode_start(void); extern char end[]; void kmain(void) { interrupts_disable(); screen_clear(); memory_init_gdt(); interrupts_init(); protected_mod...
Write hello message to console
Write hello message to console
C
mit
hoelzro/rose-kernel,hoelzro/rose-kernel
6c4710ca4fa04771c6d5d9422781430fc8f0ede6
str/lstrip.c
str/lstrip.c
/* str/lstrip.c - Strip whitespace from the left of a string * Copyright (C) 2001 Bruce Guenter <bruceg@em.ca> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
/* str/lstrip.c - Strip whitespace from the left of a string * Copyright (C) 2001 Bruce Guenter <bruceg@em.ca> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
Use memmove instead of memcpy due to the fact that the strings will be overlapping.
Use memmove instead of memcpy due to the fact that the strings will be overlapping.
C
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
b5cb1f3cbf4cf94304c931419bd707ca6e60edcf
Wikipedia/Code/WMFProxyServer.h
Wikipedia/Code/WMFProxyServer.h
#import <Foundation/Foundation.h> @interface WMFProxyServer : NSObject @property (nonatomic, readonly, getter=isRunning) BOOL running; - (void)start; + (WMFProxyServer *)sharedProxyServer; - (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's serv...
#import <Foundation/Foundation.h> @interface WMFProxyServer : NSObject @property (nonatomic, readonly, getter=isRunning) BOOL running; - (void)start; + (WMFProxyServer *)sharedProxyServer; - (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's serv...
Add link to comment for api proxy method.
Add link to comment for api proxy method.
C
mit
montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wik...
3f6c9bff6c30791a0c7188733658aaf879ab86a1
tests/full_semantic_errors.c
tests/full_semantic_errors.c
int global_a; struct foo { // redefinition in struct declaration int a; int a; float b; }; // redefinition of foo struct foo { float a; int b; }; // redefinition in function arguments int a_func(int a, int a) { return 1; } int func(int c, int d, float f) { int b = 1; float test_arr...
int global_a; struct foo { // redefinition in struct declaration int a; int a; float b; }; // redefinition of foo struct foo { float a; int b; }; // redefinition in function arguments int a_func(int a, int a) { return 1; } int func(int c, int d, float f) { int b = 1; float test_arr...
Add illegal member access and undefined function name error.
Add illegal member access and undefined function name error.
C
mit
RyanWangGit/scc
42f0093f5f5ed7d30b77b927966cb64025889811
config.h
config.h
#ifndef CONFIG #define CONFIG #define VERSION 179 //try to keep this in sync. //SavvyCAN will complain if you connect a GVRET board with a revision //less than this number. #define CURRENT_GVRET_VER 334 #endif // CONFIG
#ifndef CONFIG #define CONFIG #define VERSION 180 //try to keep this in sync. //SavvyCAN will complain if you connect a GVRET board with a revision //less than this number. #define CURRENT_GVRET_VER 343 #endif // CONFIG
Update requested GVRET version to 343 which is where stable support for M2 and CANDue2.2 are found.
Update requested GVRET version to 343 which is where stable support for M2 and CANDue2.2 are found.
C
mit
collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN
400b6fb7262eacbafb8ad6878af9a2e9839d0889
test/get-compositor.c
test/get-compositor.c
#include <X11/X.h> #include <X11/Xatom.h> #include <X11/Xlib.h> #include <stdio.h> int main() { Display *display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "Could not connect to $DISPLAY.\n"); return 1; } char buf[32]; snprintf(buf, sizeof(buf), "_NET_WM_CM_S%d", (int)DefaultScreen(...
Add a simple tool to print the window ID of a currently running compositor.
Add a simple tool to print the window ID of a currently running compositor. Possibly interesting use: xprop -id `./get-compositor`.
C
apache-2.0
google/xsecurelock,google/xsecurelock
7711fe4d9cfcb73bc5b4b58ec2120f1863400f6b
test2/casts/rm_qual.c
test2/casts/rm_qual.c
// RUN: %check %s struct A { int i; }; int f(const void *p) { struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const) struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/ (void)a; (void)b; }
// RUN: %check %s struct A { int i; }; void take(void *); int f(const void *p) { struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const) struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/ (void)a; (void)b; const char c = 5; take(&c); // CHECK: warning: implicit ...
Add another case to qualifier-removal test
Add another case to qualifier-removal test
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
f1dc5b21241d0b16bb62f8ede6990476f87466d9
src/main.h
src/main.h
#pragma once #include <unistd.h> #include <algorithm> #include <cstdarg> #include <exception> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <queue> #include <set> #include <sstream> #include <string> #include <thread> #include <tuple> #include <unordered_map> #incl...
#pragma once #include <unistd.h> #include <algorithm> #include <cstdarg> #include <exception> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <mutex> #include <queue> #include <set> #include <sstream> #include <string> #include <thread> #include <tuple> #include <uno...
Add <mutex> to the list of includes
Add <mutex> to the list of includes
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
79e7b91e87e8fa1c68785aa95e4c9ec090e75768
src/asm/riscv-sbi.h
src/asm/riscv-sbi.h
// // riscv-sbi.h // #ifndef riscv_sbi_h #define riscv_sbi_h #ifdef __cplusplus extern "C" { #endif const char* sbi_get_config(void); size_t sbi_hart_id(void); int sbi_send_ipi(size_t hart_id); bool sbi_clear_ipi(void); void sbi_shutdown(void); int sbi_console_putchar(uint8_t ch); int sbi_console_getchar(void); voi...
Add Supervisor Binary Interface (SBI) header
Add Supervisor Binary Interface (SBI) header
C
mit
rv8-io/rv8,rv8-io/rv8,rv8-io/rv8
71a62fbfeaef46dc5cd7030e61a5b2014fbb6cb6
test/Frontend/ir-support.c
test/Frontend/ir-support.c
// Test that we can consume LLVM IR/bitcode in the frontend and produce // identical output to a standard compilation. // Reference output: // RUN: %clang_cc1 -S -o %t.s %s // LLVM bitcode: // RUN: %clang_cc1 -emit-llvm-bc -o %t.bc %s // RUN: %clang_cc1 -S -o - %t.bc > %t.bc.s // RUN: diff %t.s %t.bc.s // LLVM IR so...
Add test coverage for .bc input in the frontend
Add test coverage for .bc input in the frontend Test that we can consume LLVM bitcode and additionally check that it produces the same output as a direct compilation. The feature is crashy and has gone untested until now, but we might as well provide some coverage as long as it remains in tree. Also test LL source i...
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
4be94c72d54a91d5b47b8b7fc5949160fd78c9d2
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 2 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 1 #define CLIENT_VERSION_BUILD 0 // Convert...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 2 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 2 #define CLIENT_VERSION_BUILD 0 // Convert...
Set version for upcoming bugfix release
Set version for upcoming bugfix release
C
mit
spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre
4c52274889c8c24e347890fa97f0b1518b80cdad
tests/strlenso.c
tests/strlenso.c
#include <stdio.h> #include <dlfcn.h> #include <unistd.h> #include <sys/types.h> #include <dirent.h> static void *dl; size_t (*orig_strlen)(const char *); __attribute__((constructor)) void stub(void) { dl = dlopen("/lib/libc.so.6", RTLD_LAZY | RTLD_GLOBAL); orig_strlen = dlsym(dl, "strlen"); } size_t strlen(con...
Add test strlen so for hijacking apache's strlen
Add test strlen so for hijacking apache's strlen
C
bsd-2-clause
sigma-random/libhijack,sigma-random/libhijack,SoldierX/libhijack
f6890fe5dbf709d7edc28413f8250f0077d2f006
RISCOS/Modules/getpath_riscos.c
RISCOS/Modules/getpath_riscos.c
#include "Python.h" #include "osdefs.h" static char *prefix,*exec_prefix,*progpath,*module_search_path=0; static void calculate_path() { char *pypath=getenv("Python$Path"); if(pypath) { module_search_path=malloc(strlen(pypath)+1); if (module_search_path) sprintf(module_search_path,"%s",pypath); else {...
#include "Python.h" #include "osdefs.h" static char *prefix, *exec_prefix, *progpath, *module_search_path=NULL; static void calculate_path() { char *pypath = getenv("Python$Path"); if (pypath) { int pathlen = strlen(pypath); module_search_path = malloc(pathlen + 1); if (module_search_path) strncpy(module...
Use strncpy() instead of sprintf() in calculate_path().
Use strncpy() instead of sprintf() in calculate_path(). Also reformat calculate_path() using the standard format.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
2855f6de3836d6e6c1ee7846851bc27930824d2b
src/event.h
src/event.h
#define JLOG LOG #define HLOG(D_msg) JLOG("HNDL: " << D_msg) enum class EventType { Trigger, Disconnect }; inline std::string toString(EventType type) { switch (type) { case EventType::Trigger: return "trigger"; case EventType::Disconnect: return "disconnect"; ...
#define JLOG LOG #define HLOG(D_msg) JLOG("HNDL: " << D_msg) enum class EventType { Trigger, Disconnect }; inline std::string toString(EventType type) { switch (type) { case EventType::Trigger: return "trigger"; case EventType::Disconnect: return "disconnect"; ...
Add handlers to the common list
Add handlers to the common list
C
apache-2.0
gridem/DAVE
db02329581ccd65614b1d81c9b121debb1e8e22e
src/fake-lock-screen-pattern.h
src/fake-lock-screen-pattern.h
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_ #define _FAKE_LOCK_SCREEN_PATTERN_H_ #include <gtk/gtk.h> #if !GTK_CHECK_VERSION(3, 0, 0) typedef struct { gdouble red; gdouble green; gdouble blue; gdouble alpha; } GdkRGBA; #endif typedef struct _FakeLockOption { void *module; gchar *real; gchar *dummy; } FakeLock...
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_ #define _FAKE_LOCK_SCREEN_PATTERN_H_ #include <gtk/gtk.h> #if !GTK_CHECK_VERSION(3, 0, 0) typedef struct { gdouble red; gdouble green; gdouble blue; gdouble alpha; } GdkRGBA; #endif typedef struct _FakeLockOption { void *module; gchar *real; gchar *dummy; } FakeLock...
Add enum to distinct pattern
Add enum to distinct pattern
C
mit
kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern
11c7bdb4e410102af298943526a48fffa9a9eb19
src/include/strdup.h
src/include/strdup.h
/* This is the prototype for the strdup() function which is distributed with Postgres. That strdup() is only needed on those systems that don't already have strdup() in their system libraries. The Postgres strdup() is in src/utils/strdup.c. */ extern char *strdup(char const *);
/* This is the prototype for the strdup() function which is distributed with Postgres. That strdup() is only needed on those systems that don't already have strdup() in their system libraries. The Postgres strdup() is in src/port/strdup.c. */ extern char *strdup(char const *);
Fix an obsolete file path mentioned in a comment.
Fix an obsolete file path mentioned in a comment.
C
mpl-2.0
techdragon/Postgres-XL,ovr/postgres-xl,kmjungersen/PostgresXL,techdragon/Postgres-XL,adam8157/gpdb,zeroae/postgres-xl,oberstet/postgres-xl,rubikloud/gpdb,yazun/postgres-xl,janebeckman/gpdb,lintzc/gpdb,edespino/gpdb,cjcjameson/gpdb,chrishajas/gpdb,edespino/gpdb,royc1/gpdb,rvs/gpdb,snaga/postgres-xl,lisakowen/gpdb,CraigH...
5a3d7873993eb4c6f4e4d650e2b46b0d403fecd3
kernel/core/main.c
kernel/core/main.c
#include <truth/panic.h> #include <truth/cpu.h> #include <truth/types.h> #include <truth/log.h> #include <truth/slab.h> #include <truth/heap.h> #include <truth/physical_allocator.h> string Logo = str("\n" " _.-.\n" " .-. `) | .-.\n" " _.'`. ....
#include <truth/panic.h> #include <truth/cpu.h> #include <truth/types.h> #include <truth/log.h> #include <truth/slab.h> #include <truth/heap.h> #include <truth/physical_allocator.h> string Logo = str("\n" " _.-.\n" " .-. `) | .-.\n" " _.'`. ....
Print CPU time in splash screen
Print CPU time in splash screen
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth
6aba02ecbbacb85918853ed86fea114138945643
atom/common/common_message_generator.h
atom/common/common_message_generator.h
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. // Multiply-included file, no traditional include guard. #include "atom/common/api/api_messages.h" #include "chrome/common/print_messages.h" #include "chrome/common/tts_messages.h" #i...
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. // Multiply-included file, no traditional include guard. #include "atom/common/api/api_messages.h" #include "chrome/common/print_messages.h" #include "chrome/common/tts_messages.h" #i...
Fix linking problem with IPC::MessageT
Fix linking problem with IPC::MessageT IPC::MessageT<ChromeUtilityHostMsg_ProcessStarted_Meta, std::__1::tuple<>, void>::MessageT(IPC::Routing)
C
mit
Floato/electron,Floato/electron,Floato/electron,Floato/electron,Floato/electron,Floato/electron
8c39774323a9f462dd513032c5d84a43af3d5a89
ActionLog/scripts/specific-action-log/newIssueGroup.c
ActionLog/scripts/specific-action-log/newIssueGroup.c
specific action log: newIssueGroup # Set Variable [ $brainstate; Value:brainstate::_lockBrainstateID ] # Go to Layout [ “IssuesAndObservations Copy” (issue) ] # New Record/Request Set Field [ issue::lock; "location" ] Set Field [ issue::_keyBrainstate; $brainstate ] # Set Variable [ $group; Value:issue::_LockList ] # Go...
specific action log: newIssueGroup # Set Variable [ $brainstate; Value:brainstate::_lockBrainstateID ] # Go to Layout [ “IssuesAndObservations Copy” (issue) ] # New Record/Request Set Field [ issue::lock; "location" ] Set Field [ issue::_keyBrainstate; $brainstate ] # Set Variable [ $group; Value:issue::_LockList ] # Go...
Fix logic loop in script
Fix logic loop in script Fix logic loop in script attached to button [Specific Action Tag 47] so it exists after reaching last item.
C
apache-2.0
HelpGiveThanks/ActionLog,HelpGiveThanks/ActionLog
81ce26a410a2bcd751f40022d78e20c95bf7b60e
test/FrontendC/ARM/inline-asm-multichar.c
test/FrontendC/ARM/inline-asm-multichar.c
// RUN: %llvmgcc -S -march=armv7a %s // XFAIL: * // XTARGET: arm int t1() { static float k = 1.0f; CHECK: call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}" __asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv,m" (k) : "s15"); return 0; }
// RUN: %llvmgcc -S -march=armv7a %s | FileCheck %s // XFAIL: * // XTARGET: arm int t1() { static float k = 1.0f; // CHECK: "flds s15, $0 \0A", "*^Uv,~{s15}" __asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv,m" (k) : "s15"); return 0; }
Fix this test to actually check something and be able to be compiled.
Fix this test to actually check something and be able to be compiled. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@133952 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drive...
b0f2dc244acaf14306add643fc61482f6fe211a9
offset.c
offset.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "crypt.h" #include "accessdata.h" #include "vars.h" static char fileName[] = "ruleDB.dsg"; void main() { // struct staticVar svar; struct staticVar *p; p = malloc(sizeof(struct staticVar)); // p = &svar; // strcpy(svar.s1, "Sarat"); // sva...
Read data from Static File
Read data from Static File Reading data from static file and then displaying the data using pointers
C
apache-2.0
saratsarat7/myTest
9eb00b97c35261d4bcd2f0a6ec66c0ac2cc4d196
compat/compat.h
compat/compat.h
#ifndef COMPAT_H #define COMPAT_H #ifndef HAVE_PLEDGE #include "pledge.h" #endif #ifndef HAVE_STRTONUM #include "strtonum.h" #endif #ifndef timespecsub #define timespecsub(tsp, usp, vsp) \ do { \ (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ i...
#ifndef COMPAT_H #define COMPAT_H #ifndef HAVE_PLEDGE #include "pledge.h" #endif #ifndef HAVE_STRTONUM #include "strtonum.h" #endif /* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */ #ifndef CLOCK_MONOTONIC #define CLOCK_MONOTONIC CLOCK_REALTIME #endif #ifndef timespecsub #define timespecsub(tsp, usp, vsp...
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
C
bsd-2-clause
fcambus/logswan,fcambus/logswan
a9200680ad64099de4fa658e9051ab6e0e058170
src/exercise115.c
src/exercise115.c
/* Exercise 1-15: Rewrite the temperature conversion program of Section 1.2 to * use a function for conversion. */ #include <stdio.h> #include <stdlib.h> float farenheitToCelsius(float farenheit) { return (5.0 / 9.0) * (farenheit - 32.0); } int main(int argc, char **argv) { printf("F\tC\n=============\n"); flo...
Add solution to Exercise 1-15.
Add solution to Exercise 1-15.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
1a8820a34f7405743ce0376d63a66694bfd533af
ports/gtk-webkit/next-gtk-webkit.c
ports/gtk-webkit/next-gtk-webkit.c
/* Copyright © 2018-2019 Atlas Engineer LLC. Use of this file is governed by the license that can be found in LICENSE. */ #include <gtk/gtk.h> #include <stdlib.h> #include "server.h" static void on_name_acquired(GDBusConnection *connection, const gchar *name, gpointer user_data) { g_message("Starting platform port...
/* Copyright © 2018-2019 Atlas Engineer LLC. Use of this file is governed by the license that can be found in LICENSE. */ #include <gtk/gtk.h> #include <stdlib.h> #include "server.h" static void on_name_acquired(GDBusConnection *connection, const gchar *name, gpointer user_data) { g_message("Starting platform port...
Fix crash when hardware acceleration is disabled.
ports/gtk-webkit: Fix crash when hardware acceleration is disabled.
C
bsd-3-clause
jmercouris/NeXT,jmercouris/NeXT
ec2da88354ef61aa2020c666cf6ccf72ac3e619a
JPEGReadWriter2Plugin/Error.c
JPEGReadWriter2Plugin/Error.c
#include <stdio.h> #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2 * error_ptr2; /* * Here's the routine that will replace the standard error_exit method: */ void error...
#include <stdio.h> #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2 * error_ptr2; /* * Here's the routine that will replace the standard error_exit method: */ void error...
Remove nasty character at end of file that prevents compiles
Remove nasty character at end of file that prevents compiles git-svn-id: 5c8b60fcb9320cccfd2f497bdea85b37ac3f2028@72 fa1542d4-bde8-0310-ad64-8ed1123d492a
C
mit
bencoman/pharo-vm,guillep/OzVM,ronsaldo/pharo-vm-lowcode,ronsaldo/pharo-raspberry,peteruhnak/pharo-vm,zecke/old-pharo-vm-sctp,ronsaldo/pharo-raspberry,takano32/pharo-vm,takano32/pharo-vm,ronsaldo/pharo-vm-lowcode,zecke/old-pharo-vm-sctp,philippeback/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,takano32/pharo-vm,zecke...
e4d0eac063b91386fc309c1766149aadaa940449
MKCommons/MKUIThemeProtocol.h
MKCommons/MKUIThemeProtocol.h
// // Created by Michael Kuck on 8/20/14. // Copyright (c) 2014 Michael Kuck. All rights reserved. // #import <Foundation/Foundation.h> //============================================================ //== MKUITheme protocol //============================================================ @protocol MKUIThemeProtocol<NSOb...
// // Created by Michael Kuck on 8/20/14. // Copyright (c) 2014 Michael Kuck. All rights reserved. // #import <Foundation/Foundation.h> //============================================================ //== MKUITheme protocol //============================================================ @protocol MKUIThemeProtocol<NSOb...
Extend UIThemeProtocol with padding/inset sizes
Extend UIThemeProtocol with padding/inset sizes
C
mit
mikumi/mkcommons-obj
9ffc9710fa7d6d3f3f9f4ff2bf7068d7be1bbee9
core/src/util/topologicalSort.h
core/src/util/topologicalSort.h
#pragma once #include <algorithm> #include <unordered_map> #include <utility> #include <vector> /** * Given a list of edges describing a directed acyclic graph, returns a * list of nodes sorted in topological order; that is, if there is a path * from node 'a' to node 'b' in the graph, then 'a' will alway...
Add a topological sort utility file
Add a topological sort utility file
C
mit
cleeus/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,cleeus/tangram-es,cleeus/tangram-es,quitejonny/tangram...
7ea1cb0d03e30bf5fc0880fe2c10ca9f9bd766be
src/flags.c
src/flags.c
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** arguments) {...
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** arguments) {...
Change flag separation from `|` to `,`
Change flag separation from `|` to `,`
C
bsd-2-clause
sourrust/laco
f79ad5f49198dd251501dae66fe5c594842583e8
test/PCH/reloc.c
test/PCH/reloc.c
// RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot `pwd`/libroot `pwd`/libroot/usr/include/reloc.h && // RUN: clang-cc -include-pch %t -isysroot `pwd`/libroot %s -verify // FIXME (test harness can't do this?): not clang-cc -include-pch %t %s #include <reloc.h> int x = 2; // expected-error{{redefinition}} in...
// RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h && // RUN: clang-cc -include-pch %t -isysroot %S/libroot %s -verify && // RUN: not clang-cc -include-pch %t %s #include <reloc.h> int x = 2; // expected-error{{redefinition}} int y = 5; // expected-error{{redefiniti...
Use %S, not `pwd`, and enable a line that *does* work. - Doug, please check.
Use %S, not `pwd`, and enable a line that *does* work. - Doug, please check. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@77778 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
899ee459ef10181a7011be87887fb25e17898e16
test/test-non-bopomofo-IM.c
test/test-non-bopomofo-IM.c
/** * test-non-bopomofo-IM.c * * Copyright (c) 2013 * libchewing Core Team. See ChangeLog for details. * * See the file "COPYING" for information on usage and redistribution * of this file. */ /** * @file test-non-bopomofo-IM.c * @brief Test cases of newly built APIs for non-phonetic IM's. */ #ifdef HA...
Add a file to contain test cases for non-phonetic IM's.
Add a file to contain test cases for non-phonetic IM's.
C
lgpl-2.1
school510587/general_index_libchewing,school510587/general_index_libchewing,school510587/general_index_libchewing,school510587/general_index_libchewing
687d84793938928c192950dd3d0429235c36d59b
test/printstr.c
test/printstr.c
#include <stdio.h> #include <ctype.h> static void printstr(FILE *stream, const char *str) { char c; while ((c = *str++) != '\0') { putc(c, stream); if (isprint(c) && c != '"' && c != '\\') putc(c, stream); else fprintf(stream, "\\x%x", (int) c); } } int mai...
Add string function to test suite
Add string function to test suite Taken from string.c.
C
mit
larmel/c-compiler,larmel/lacc,larmel/c-compiler,larmel/c-compiler,larmel/lacc