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
2a1c4612e6de5784fe2c3bc553e2156b37ab6084
tinynurbs/tinynurbs.h
tinynurbs/tinynurbs.h
/** @file @brief Import the entire library Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "core/basis.h" #include "core/evaluate.h" #include "core/check.h" #include "core/modify.h" #include "geometry/curve.h" #include "geometry/surface.h" #include "io/ob...
Add header for importing entire library
Add header for importing entire library
C
bsd-3-clause
pradeep-pyro/openspline
fd0f406fea93d14c53f056bfcae8f6a6a2952b26
unittests/asm_mocks.c
unittests/asm_mocks.c
// Defining some necessary symbols just to make the linker happy. void kernel_yield() { } void arch_specific_new_task_setup() { } void arch_specific_free_task() { }
#include <common/basic_defs.h> // Defining some necessary symbols just to make the linker happy. void *kernel_initial_stack = NULL; void kernel_yield() { NOT_REACHED(); } void arch_specific_new_task_setup() { NOT_REACHED(); } void arch_specific_free_task() { NOT_REACHED(); } void switch_to_initial_kernel_stack() { ...
Fix build error (missing mocks)
[gtests] Fix build error (missing mocks)
C
bsd-2-clause
vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs
f90fdb4570d97e7970ec72e0715a5924ab1da95c
include/ygo/data/CardData.h
include/ygo/data/CardData.h
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { std::string name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbilit...
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { std::string name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbilit...
Add text to static card data
Add text to static card data
C
mit
DeonPoncini/ygodata
34438e0e5eb32764691044269b8f3557f8c39668
FreeRTOS/src/select.c
FreeRTOS/src/select.c
#include "sys/select.h" #include "bits/mac_esp8266.h" #include <stdio.h> #include "usart.h" int select(SOCKET nfds, fd_set *__readfds, fd_set *__writefds, fd_set *__exceptfds, struct timeval *__timeout) { SOCKET i; int c; c = 0; /* Go through interested sockets. */ for(i = SOCKET_BASE; i < nfds; i++) { if(...
#include "sys/select.h" #include "bits/mac_esp8266.h" #include <stdio.h> #include "usart.h" int select(SOCKET nfds, fd_set *__readfds, fd_set *__writefds, fd_set *__exceptfds, struct timeval *__timeout) { SOCKET i; /* Count the ready socket. */ int count; count = 0; /* Go through interested sockets. */ for(...
Change the variable name for more meaningful.
Change the variable name for more meaningful.
C
bsd-3-clause
starnight/MicroHttpServer,starnight/MicroHttpServer,starnight/MicroHttpServer,starnight/MicroHttpServer
ca888bf0223ab22b94b47dc9efca522e595b1d6a
opensync/plugin/opensync_plugin_connection_internals.h
opensync/plugin/opensync_plugin_connection_internals.h
/* * libopensync - A synchronization framework * Copyright (C) 2008 Daniel Gollub <dgollub@suse.de> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the ...
Add missing file from previous commit.
Add missing file from previous commit. git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@4287 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e
C
lgpl-2.1
ianmartin/opensync,ianmartin/opensync
d1b04ae45801d4c87302f40692ef8c191fb64197
UnixPkg/Include/Guid/UnixSystemConfig.h
UnixPkg/Include/Guid/UnixSystemConfig.h
/**@file Setup Variable data structure for Unix platform. Copyright (c) 2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of th...
/**@file Setup Variable data structure for Unix platform. Copyright (c) 2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of th...
Fix typo in data structure
Fix typo in data structure git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@7589 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
3699f58d3f06fee8b4b0e096f32b699c518d9baf
C++/sorting/bubblesort.h
C++/sorting/bubblesort.h
#include <iostream> #include <vector> #include <stdlib.h> template <typename T> void swap(T& a, T& b) { T tmp = b; b = a; a = tmp; } template <typename T> void bubblesort(T& vec) { auto f = vec.begin(); auto s = vec.begin(); ++s; bool swapped = false; while (s != vec.end()) { if (...
#include <iostream> #include <vector> #include <stdlib.h> template <typename T> void swap(T& a, T& b) { T tmp = b; b = a; a = tmp; } template <typename T> T bubblesort(T& vec) { auto f = vec.begin(); auto s = vec.begin(); ++s; bool swapped = false; while (s != vec.end()) { if (*f ...
Return the sorted object as well as sort it in-place
Bubblesort: Return the sorted object as well as sort it in-place
C
bsd-3-clause
AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure
85799a4d918cd22717b02ca26b67f959f29e9664
Graphics/DrawableInterface.h
Graphics/DrawableInterface.h
#pragma once #include <SFML/Graphics.hpp> class DrawableInterface { public: virtual ~DrawableInterface() {} virtual void draw(sf::RenderWindow *window) = 0; };
Add graphics module and drawable interface
Add graphics module and drawable interface
C
mit
alobo/ev
19b614ac69a19e6e7fc7ff48fa80594cf47d63d7
STEER/AliMisAligner.h
STEER/AliMisAligner.h
#ifndef ALI_MISALIGNER_H #define ALI_MISALIGNER_H #include "TObject.h" #include "TString.h" #include "AliCDBMetaData.h" class TClonesArray; class AliCDBManager; // Base class for creating a TClonesArray of simulated misalignment objects // for a given subdetector of type ideal,residual or full // class AliMisAligne...
#ifndef ALI_MISALIGNER_H #define ALI_MISALIGNER_H #include "TObject.h" #include "TString.h" #include "AliCDBMetaData.h" class TClonesArray; class AliCDBManager; // Base class for creating a TClonesArray of simulated misalignment objects // for a given subdetector of type ideal,residual or full // class AliMisAligne...
Allow methods called inside MakeAlObjsArray to modify data members
Allow methods called inside MakeAlObjsArray to modify data members
C
bsd-3-clause
shahor02/AliRoot,ecalvovi/AliRoot,shahor02/AliRoot,coppedis/AliRoot,jgrosseo/AliRoot,jgrosseo/AliRoot,miranov25/AliRoot,jgrosseo/AliRoot,ecalvovi/AliRoot,shahor02/AliRoot,alisw/AliRoot,mkrzewic/AliRoot,alisw/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,jgrosseo/AliRoot,jg...
f5cf45ab37c8c4771681a2bfb85194e48086026e
src/debug.h
src/debug.h
#ifndef __DEBUG_H #define __DEBUG_H #ifdef DEBUG extern bool debug; extern bool debug_z; #define DBG if (debug) #define MSG(x) DBG msg x #else #define DBG if (0) #define MSG(x) #endif #if defined(DEBUG) || defined(PRECON) #define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__) #else #define PRECO...
#ifndef __DEBUG_H #define __DEBUG_H #ifdef DEBUG extern bool debug; extern bool debug_z; #define DBG if (debug) #define MSG(x) DBG tlog x #else #define DBG if (0) #define MSG(x) #endif #if defined(DEBUG) || defined(PRECON) #define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__) #else #define PREC...
Use tlog for MSG reports.
Use tlog for MSG reports.
C
lgpl-2.1
dicej/icewm,dicej/icewm,dicej/icewm,dicej/icewm
4e0d6d864d3632a820d8bf3dd89ff333b9bbd34d
src/revwalk.h
src/revwalk.h
#ifndef INCLUDE_revwalk_h__ #define INCLUDE_revwalk_h__ #include "git/common.h" #include "git/revwalk.h" struct git_revpool { git_odb *db; git_commit_list iterator; git_commit *(*next_commit)(git_commit_list *); git_commit_list roots; git_revpool_table *commits; unsigned walking:1; unsigned char sorting; };...
#ifndef INCLUDE_revwalk_h__ #define INCLUDE_revwalk_h__ #include "git/common.h" #include "git/revwalk.h" struct git_revpool { git_odb *db; git_commit_list iterator; git_commit *(*next_commit)(git_commit_list *); git_commit_list roots; git_revpool_table *commits; unsigned walking:1; unsigned int sorting; }; ...
Fix an "conversion, loss of data" compiler warning
msvc: Fix an "conversion, loss of data" compiler warning In particular, the compiler issues the following warning: src/revwalk.c(61) : warning C4244: '=' : conversion from \ 'unsigned int' to 'unsigned char', possible loss of data In order to suppress the warning, we change the type of the sorting "enum"...
C
lgpl-2.1
jflesch/libgit2-mariadb,Tousiph/Demo1,since2014/libgit2,saurabhsuniljain/libgit2,chiayolin/libgit2,Tousiph/Demo1,mhp/libgit2,leoyanggit/libgit2,mingyaaaa/libgit2,sim0629/libgit2,sim0629/libgit2,jamieleecool/ptest,zodiac/libgit2.js,Aorjoa/libgit2_maked_lib,dleehr/libgit2,mrksrm/Mingijura,Corillian/libgit2,raybrad/libit2...
02a17c281d68aa9ba0d951f70ab1716a72d7b4b1
src/vast/query/parser/skipper.h
src/vast/query/parser/skipper.h
#ifndef VAST_QUERY_PARSER_SKIPPER_H #define VAST_QUERY_PARSER_SKIPPER_H #include <boost/spirit/include/qi.hpp> namespace vast { namespace query { namespace parser { namespace qi = boost::spirit::qi; namespace ascii = boost::spirit::ascii; template <typename Iterator> struct skipper : qi::grammar<Iterator> { ski...
#ifndef VAST_QUERY_PARSER_SKIPPER_H #define VAST_QUERY_PARSER_SKIPPER_H #include <boost/spirit/include/qi.hpp> namespace vast { namespace query { namespace parser { namespace qi = boost::spirit::qi; namespace ascii = boost::spirit::ascii; template <typename Iterator> struct skipper : qi::grammar<Iterator> { ski...
Fix skip grammar of query parser.
Fix skip grammar of query parser.
C
bsd-3-clause
mavam/vast,mavam/vast,pmos69/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,pmos69/vast,pmos69/vast,pmos69/vast
7351b1e11f4806d4a6c1ee30253f28aab3f8ab2a
slave/stypes.h
slave/stypes.h
#define _SLAVETYPES #include <inttypes.h> //Declarations for slave types typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Response frame content } MODBUSResponseStatus; //Type containing information about frame that is set up at slave side typedef struct...
#define _SLAVETYPES #include <inttypes.h> //Declarations for slave types typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Response frame content } MODBUSResponseStatus; //Type containing information about frame that is set up at slave side typedef struct...
Add coil variables to type definitions
Add coil variables to type definitions
C
mit
Jacajack/modlib
197a1ec9be32f0fa4e4ea2d16a3a00b905c90489
Common/Categories/MITAdditions.h
Common/Categories/MITAdditions.h
#ifndef MIT_Mobile_MITAdditions_h #define MIT_Mobile_MITAdditions_h #import "Foundations+MITAdditions.h" #import "UIKit+MITAdditions.h" #import "CoreLocation+MITAdditions.h" #import "UIImage+Resize.h" #import "NSDateFormatter+RelativeString.h" #import "MFMailComposeController+RFC2368.h" #import "NSData+MGTwitterBase64...
#ifndef MIT_Mobile_MITAdditions_h #define MIT_Mobile_MITAdditions_h #import "Foundation+MITAdditions.h" #import "UIKit+MITAdditions.h" #import "CoreLocation+MITAdditions.h" #import "UIImage+Resize.h" #import "NSDateFormatter+RelativeString.h" #import "MFMailComposeViewController+RFC2368.h" #import "NSData+MGTwitterBas...
Fix up the header names as several are not correct
Fix up the header names as several are not correct
C
lgpl-2.1
MIT-Mobile/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS
0bb89c0109968d4b0344c5bb21dc7413c35235ae
A/01/09/task1.c
A/01/09/task1.c
#include <stdio.h> #include <string.h> long hash(char*); int main() { char word[200]; fgets(word, 201, stdin); printf("%ld", hash(word)); return 0; } long hash(char *word) { long result = 42; int length = strlen(word); for (int i = 0; i < length; i++) { re...
Add Task 01 for Homework 01
Add Task 01 for Homework 01
C
mit
elsys/po-homework
5c71f0153eec740762d04835396676944f16c8cc
auparse/socktypetab.h
auparse/socktypetab.h
/* socktypetab.h -- * Copyright 2012 Red Hat Inc., Durham, North Carolina. * All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lic...
Add some interpretations to ausearch for syscall parameters
Add some interpretations to ausearch for syscall parameters git-svn-id: b2ed898cf2cd3316b62ee1cc50465f4560571194@673 03a675c2-f56d-4096-908f-63dba836b7e4
C
lgpl-2.1
yubo/audit,yubo/audit,yubo/audit,yubo/audit,yubo/audit
af495684820a0f34bbccfefb3bce784c3dc6b327
ReactCommon/fabric/components/image/ImageComponentDescriptor.h
ReactCommon/fabric/components/image/ImageComponentDescriptor.h
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <fabric/components/image/ImageShadowNode.h> #include <fabric/core/ConcreteComponentDescriptor.h> #include <fabric...
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <fabric/components/image/ImageShadowNode.h> #include <fabric/core/ConcreteComponentDescriptor.h> #include <fabric...
Implement the update of props in the MountingManager layer
Implement the update of props in the MountingManager layer Summary: This diff implements the update of props in Fabric C++. The props values are passed to java in a ReadableMap and they are integrated into the current implementation of ViewManagers. In the fututre we will replace the ReadableMap for typed objects. Re...
C
bsd-3-clause
exponent/react-native,pandiaraj44/react-native,hammerandchisel/react-native,hammerandchisel/react-native,myntra/react-native,javache/react-native,pandiaraj44/react-native,hammerandchisel/react-native,hoangpham95/react-native,facebook/react-native,javache/react-native,hammerandchisel/react-native,hoangpham95/react-nativ...
87b5f56bd4f5454659956bf1034849a60c463714
tests/sv-comp/observer/path_nofun_true-unreach-call.c
tests/sv-comp/observer/path_nofun_true-unreach-call.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else { x = 1; y = 0; } // if (!(x + y == 1)) if (x + y != 1) __VERIFIER_e...
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else { x = 1; y = 0; } // if (!(x + y == 1)) if (x + y != 1) __VERIFIER_e...
Fix trier -> def_exc in observer test comment
Fix trier -> def_exc in observer test comment
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
d2a403e1c27fb66ba879ec42af7ee50c35accb1a
tests/execute/0125-fundcl.c
tests/execute/0125-fundcl.c
int f(int a), g(int a), a; int main() { return f(1) - g(1); } int f(int a) { return a; } int g(int a) { return a; }
Add test for function declarations
[tests] Add test for function declarations This test is intended for mixing several function definitions and variables in the same declaration list.
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
9abc56ec060ec6366878a829fa9554cde28e8925
Settings/Tab.h
Settings/Tab.h
#pragma once #include <Windows.h> #include <vector> class UIContext; /// <summary> /// Abstract class that encapsulates functionality for dealing with /// property sheet pages (tabs). /// </summary> class Tab { public: Tab(); ~Tab(); /// <summary>Processes messages sent to the tab page.</summary> vir...
#pragma once #include <Windows.h> #include <vector> #include "Control.h" class UIContext; /// <summary> /// Abstract class that encapsulates functionality for dealing with /// property sheet pages (tabs). /// </summary> class Tab { public: Tab(); ~Tab(); /// <summary>Processes messages sent to the tab p...
Add vector to keep track of controls
Add vector to keep track of controls
C
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX
823c535f2169b755a77a413d5f957e9457c22cb3
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.06.00.12-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 6 #define QLA_DRIVER_PATCH_VER 0 #defi...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.07.00.02-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 7 #define QLA_DRIVER_PATCH_VER 0 #defi...
Update the driver version to 8.07.00.02-k.
[SCSI] qla2xxx: Update the driver version to 8.07.00.02-k. Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com> Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
b4769c3116f24df1dd2a045b177a03df66e23ac3
src/shared/timeout-glib.c
src/shared/timeout-glib.c
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2014 Intel Corporation. All rights reserved. * * * 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 ...
Add timeout handling with Glib support
shared: Add timeout handling with Glib support
C
lgpl-2.1
silent-snowman/bluez,mapfau/bluez,ComputeCycles/bluez,pkarasev3/bluez,pkarasev3/bluez,ComputeCycles/bluez,silent-snowman/bluez,ComputeCycles/bluez,mapfau/bluez,ComputeCycles/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,pkarasev3/bl...
335d26b27d238cca9b4447a46d187d4c6f573d3a
ports/stm32/boards/STM32L476DISC/bdev.c
ports/stm32/boards/STM32L476DISC/bdev.c
#include "storage.h" // External SPI flash uses standard SPI interface const mp_soft_spi_obj_t soft_spi_bus = { .delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY, .polarity = 0, .phase = 0, .sck = MICROPY_HW_SPIFLASH_SCK, .mosi = MICROPY_HW_SPIFLASH_MOSI, .miso = MICROPY_HW_SPIFLASH_MISO, }; const m...
#include "storage.h" // External SPI flash uses standard SPI interface STATIC const mp_soft_spi_obj_t soft_spi_bus = { .delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY, .polarity = 0, .phase = 0, .sck = MICROPY_HW_SPIFLASH_SCK, .mosi = MICROPY_HW_SPIFLASH_MOSI, .miso = MICROPY_HW_SPIFLASH_MISO, }; ...
Update SPI flash config for cache change.
stm32/boards/STM32L476DISC: Update SPI flash config for cache change.
C
mit
pozetroninc/micropython,MrSurly/micropython,pramasoul/micropython,henriknelson/micropython,pfalcon/micropython,adafruit/circuitpython,bvernoux/micropython,pfalcon/micropython,MrSurly/micropython,bvernoux/micropython,pozetroninc/micropython,henriknelson/micropython,swegener/micropython,pozetroninc/micropython,tralamazza...
9eb0c374b3459264d3180f59f033cf9490c0e1ea
src/platform/posix/memory.c
src/platform/posix/memory.c
/* Copyright (c) 2013-2014 Jeffrey Pfau * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <mgba-util/memory.h> #include <sys/mman.h> void* anonymousMem...
/* Copyright (c) 2013-2014 Jeffrey Pfau * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <mgba-util/memory.h> #ifndef DISABLE_ANON_MMAP #ifdef __SANITI...
Disable mmap allocator when running under address sanitizer
Util: Disable mmap allocator when running under address sanitizer
C
mpl-2.0
Iniquitatis/mgba,libretro/mgba,libretro/mgba,libretro/mgba,Iniquitatis/mgba,mgba-emu/mgba,mgba-emu/mgba,libretro/mgba,libretro/mgba,mgba-emu/mgba,mgba-emu/mgba,Iniquitatis/mgba,Iniquitatis/mgba
7ee90d0d9ecd6010bb6c7ad252d04b32f07877d5
include/clang/Basic/TypeTraits.h
include/clang/Basic/TypeTraits.h
//===--- TypeTraits.h - C++ Type Traits Support Enumerations ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- TypeTraits.h - C++ Type Traits Support Enumerations ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix compile error: comma at end of enumerator list.
Fix compile error: comma at end of enumerator list. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@121075 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
f6640d28e09979825b63abb619da29bf17ca4819
test/CodeGen/ubsan-null.c
test/CodeGen/ubsan-null.c
// RUN: %clang_cc1 -fsanitize=null -emit-llvm %s -o - | FileCheck %s struct A { int a[2]; int b; }; // CHECK-LABEL: @f1 int *f1() { // CHECK-NOT: __ubsan_handle_type_mismatch // CHECK: ret // CHECK-SAME: getelementptr inbounds (%struct.A, %struct.A* null, i32 0, i32 1) return &((struct A *)0)->b; } // CHECK-LA...
// RUN: %clang_cc1 -fsanitize=null -emit-llvm %s -o - | FileCheck %s struct A { int a[2]; int b; }; // CHECK-LABEL: @f1 int *f1() { // CHECK-NOT: __ubsan_handle_type_mismatch // CHECK: ret // CHECK-SAME: getelementptr inbounds (%struct.A, %struct.A* null, i32 0, i32 1) return &((struct A *)0)->b; }
Make a test compatible with r300508
[ubsan] Make a test compatible with r300508
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
ad6183dabea44cf5ca64139e9ebd4cb93bc8c4cd
src/doc.h
src/doc.h
/// \mainpage CG_Labs — Documentation /// /// /// \tableofcontents /// /// /// \section intro Introduction /// /// Here you can find the documentation for the source code used in the courses /// <a href="https://cs.lth.se/edaf80/">EDAF80</a> and /// <a href="https://cs.lth.se/edan35/">EDAN35</a> given at Lund Universit...
Add content to the landing page
Doc: Add content to the landing page
C
unlicense
LUGGPublic/CG_Labs,LUGGPublic/CG_Labs
787fde3532ce508e9c1bad24e0edfcfe969615aa
sticks.c
sticks.c
#include <stdio.h> typedef struct { int hands[2][2]; int turn; } Sticks; void sticks_create(Sticks *sticks) { sticks->hands[0][0] = 1; sticks->hands[0][1] = 1; sticks->hands[1][0] = 1; sticks->hands[1][1] = 1; sticks->turn = 0; } void sticks_play(Sticks *sticks, int actor, int target) { ...
#include <stdio.h> typedef struct { int hands[2][2]; int turn; } Sticks; void sticks_create(Sticks *sticks) { sticks->hands[0][0] = 1; sticks->hands[0][1] = 1; sticks->hands[1][0] = 1; sticks->hands[1][1] = 1; sticks->turn = 0; } void sticks_play(Sticks *sticks, int x, int y) { sticks...
Rename actor/target to x/y to allow for shifting
Rename actor/target to x/y to allow for shifting
C
mit
tysonzero/c-ann
69bee79575bfe1ef4b213fd962cc0aaeb66e7b28
wizard-basic-runtime/main.c
wizard-basic-runtime/main.c
#include <stdio.h> typedef enum ValueType { NULL_VALUE, NUMBER, ARRAY, STRUCTURE } ValueType; typedef double Number; struct Value; typedef struct Value* Array; typedef struct ArrayData { size_t size; Array array; } ArrayData; typedef struct StructureData { char* name; void* structure; } StructureData; typ...
#include <stdio.h> typedef enum ValueType { NULL_VALUE, NUMBER, ARRAY, STRUCTURE } ValueType; typedef double Number; struct Value; typedef struct Value* Array; typedef struct ArrayData { size_t size; Array array; } ArrayData; typedef struct StructureData { char* name; void* structure; } StructureData; typ...
Add runtime types creating function.
Add runtime types creating function.
C
mit
thewizardplusplus/wizard-basic-3,thewizardplusplus/wizard-basic-3
475fa537796c6bc7939de4fc4bd1ce3a0be7aee6
lib/libc/include/libc_private.h
lib/libc/include/libc_private.h
/* * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice...
Add a private header file for libc/libc_r/libpthread to contain definitions for things like locking etc.
Add a private header file for libc/libc_r/libpthread to contain definitions for things like locking etc.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
da91d0278e5790d212cfc0748238e711cb150af9
Modules/getbuildinfo.c
Modules/getbuildinfo.c
#include <stdio.h> #ifndef DATE #ifdef __DATE__ #define DATE __DATE__ #else #define DATE "xx/xx/xx" #endif #endif #ifndef TIME #ifdef __TIME__ #define TIME __TIME__ #else #define TIME "xx:xx:xx" #endif #endif #ifndef BUILD #define BUILD 0 #endif const char * Py_GetBuildInfo() { static char buildinfo[40]; sprintf...
#include "config.h" #include <stdio.h> #ifndef DATE #ifdef __DATE__ #define DATE __DATE__ #else #define DATE "xx/xx/xx" #endif #endif #ifndef TIME #ifdef __TIME__ #define TIME __TIME__ #else #define TIME "xx:xx:xx" #endif #endif #ifndef BUILD #define BUILD 0 #endif const char * Py_GetBuildInfo() { static char bu...
Include config.h so it can define const away for K&R.
Include config.h so it can define const away for K&R.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
030077869192bb6474149d4e8a6fec6c07084f0d
VisualPractice/types.h
VisualPractice/types.h
#ifndef TE_TYPES_H #define TE_TYPES_H namespace te { struct Vector2f { float x; float y; Vector2f(float x, float y); Vector2f operator+(Vector2f o); Vector2f operator-(Vector2f o); }; struct Vector2i { int x; int y; Vector2i(int x, i...
#ifndef TE_TYPES_H #define TE_TYPES_H namespace te { struct Vector2f { float x; float y; Vector2f(float x = 0, float y = 0); Vector2f operator+(Vector2f o); Vector2f operator-(Vector2f o); }; struct Vector2i { int x; int y; Vector2i(...
Add default constructors to vectors
Add default constructors to vectors
C
mit
evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine
e704bfde67fdb6c736e133d4cdaf25af6a58c6ea
DCTOAuth/DCTOAuthAccount.h
DCTOAuth/DCTOAuthAccount.h
// // DCTOAuthAccount.h // DTOAuth // // Created by Daniel Tull on 09.07.2010. // Copyright 2010 Daniel Tull. All rights reserved. // #import <Foundation/Foundation.h> @interface DCTOAuthAccount : NSObject + (DCTOAuthAccount *)OAuthAccountWithType:(NSString *)type requestTokenURL:(NSURL *)requestTokenURL...
// // DCTOAuthAccount.h // DTOAuth // // Created by Daniel Tull on 09.07.2010. // Copyright 2010 Daniel Tull. All rights reserved. // #import <Foundation/Foundation.h> @interface DCTOAuthAccount : NSObject + (DCTOAuthAccount *)OAuthAccountWithType:(NSString *)type requestTokenURL:(NSURL *)requestTokenURL...
Comment out this method, it does nothing right now
Comment out this method, it does nothing right now
C
bsd-3-clause
danielctull/DCTAuth,danielctull/DCTAuth
0a4405ba53d70b4955e3ef1a2624a2d967b32e7c
libkleo/libkleo_export.h
libkleo/libkleo_export.h
/* This file is part of the KDE project Copyright (C) 2007 David Faure <faure@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or...
/* This file is part of the KDE project Copyright (C) 2007 David Faure <faure@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or...
Fix typo MAKE_KLEO_LIB not MAKE_LIBKLEO_LIB and make it more coherent with other export files
Fix typo MAKE_KLEO_LIB not MAKE_LIBKLEO_LIB and make it more coherent with other export files svn path=/trunk/KDE/kdepim/libkleo/; revision=674385
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
fe174f601a9730f2161f8586b66519a71bfe8e45
phong-su.c
phong-su.c
/* * A simple setuid binary that runs /usr/bin/phong.py */ #include <sys/types.h> #include <unistd.h> #ifndef PHONG_PATH #define PHONG_PATH "/usr/bin/phong.py" #endif int main(int argc, char** argv) { int i; char **newArgv; newArgv = calloc (sizeof (char*), argc+1); newArgv[0] = strdup (PHONG_PATH); newA...
/* * A simple setuid binary that runs /usr/bin/phong.py */ #include <sys/types.h> #include <unistd.h> #ifndef PHONG_PATH #define PHONG_PATH "/usr/bin/phong.py" #endif int main(int argc, char** argv) { int i; char **newArgv; newArgv = calloc (sizeof (char*), argc+1); newArgv[0] = strdup (PHONG_PATH); newA...
Swap euid and uid in sudo helper
Swap euid and uid in sudo helper
C
agpl-3.0
phrobo/phong,phrobo/phong
784a5edc4bc7d9d7c9b4119c8d5e4c52962cf1c4
ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h
ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h
#define MICROPY_HW_BOARD_NAME "Adafruit KB2040" #define MICROPY_HW_MCU_NAME "rp2040" #define MICROPY_HW_NEOPIXEL (&pin_GPIO17) #define DEFAULT_I2C_BUS_SDA (&pin_GPIO12) #define DEFAULT_I2C_BUS_SCL (&pin_GPIO13) #define DEFAULT_UART_BUS_TX (&pin_GPIO0) #define DEFAULT_UART_BUS_RX (&pin_GPIO1)
#define MICROPY_HW_BOARD_NAME "Adafruit KB2040" #define MICROPY_HW_MCU_NAME "rp2040" #define MICROPY_HW_NEOPIXEL (&pin_GPIO17) #define DEFAULT_I2C_BUS_SDA (&pin_GPIO12) #define DEFAULT_I2C_BUS_SCL (&pin_GPIO13) #define DEFAULT_UART_BUS_TX (&pin_GPIO0) #define DEFAULT_UART_BUS_RX (&pin_GPIO1) #define DEFAULT_SPI_BUS...
Define default SPI pins on kb2040
Define default SPI pins on kb2040 Fixes #5875
C
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
ef2d72f6dfe59851aacc9fc0de4a743393b7615c
src/config.h
src/config.h
/* * StatZone 1.0.1 * Copyright (c) 2012-2020, Frederic Cambus * https://www.statdns.com * * Created: 2012-02-13 * Last Updated: 2019-01-03 * * StatZone is released under the BSD 2-Clause license * See LICENSE file for details. */ #ifndef CONFIG_H #define CONFIG_H #define VERSION "StatZone 1.0.1" #define L...
/* * StatZone 1.0.1 * Copyright (c) 2012-2020, Frederic Cambus * https://www.statdns.com * * Created: 2012-02-13 * Last Updated: 2019-01-03 * * StatZone is released under the BSD 2-Clause license * See LICENSE file for details. */ #ifndef CONFIG_H #define CONFIG_H #define VERSION "StatZone 1.0.1" #define L...
Remove now useless runtime member from the results structure.
Remove now useless runtime member from the results structure.
C
bsd-2-clause
fcambus/statzone
1503426b0b2601c518da973c3a023f65e925f6c7
lib/Macros.h
lib/Macros.h
#ifndef __MACROS_H #define __MACROS_H #define LINE_MAX_LEN 1024 #define SPC_ERR -1 #define SPC_OK 0 #endif
Define common MACROS in macros.h
Define common MACROS in macros.h
C
apache-2.0
dannylsl/SPCleaner
7a7251c3693e01b85109856d00c9d455d60ca84b
src/broker.h
src/broker.h
#ifndef BROKER_H_ #define BROKER_H_ #include <map> #include <string> #include <zmq.hpp> #include "client.h" #include "topic.h" #include "message.h" class Broker { public: Broker(std::string bind, std::string private_key) : bind_(bind), private_key_(private_key) {} void main_loop(); private: ...
#ifndef BROKER_H_ #define BROKER_H_ #include <unordered_map> #include <string> #include <zmq.hpp> #include "client.h" #include "topic.h" #include "message.h" class Broker { public: Broker(std::string bind, std::string private_key) : bind_(bind), private_key_(private_key) {} void main_loop(); pri...
Use unordered_map rather than map
Use unordered_map rather than map `unordered_map` containers are faster than map containers to access individual elements by their key, although they are generally less efficient for range iteration through a subset of their elements. http://www.cplusplus.com/reference/unordered_map/unordered_map/...
C
apache-2.0
puppetlabs/mc0d,puppetlabs/mc0d
356293bc7ee39e1bb78bd159187664ffa8d45d1a
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k16"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k17"
Update driver version to 5.02.00-k17
[SCSI] qla4xxx: Update driver version to 5.02.00-k17 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program...
6b278656f26707d410778d42cd6f789b5c53c41b
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k6"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k7"
Update driver version to 5.02.00-k7
[SCSI] qla4xxx: Update driver version to 5.02.00-k7 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <91e2c378bdc9ac58358cd03ebb6c74f7db9aa049@parallels.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program...
a664f6516a1d90147c84d64eaacea8d799b00e83
src/Renamer.h
src/Renamer.h
#pragma once #include <map> #include <string> #include "ClassFile.h" using namespace std; struct SourceId { bool isMethod; // otherwise, field string className; string name; bool operator < (SourceId const& other) const { if(isMethod < other.isMethod) return true; if(className < other.class...
#pragma once #include <map> #include <string> #include "ClassFile.h" using namespace std; struct SourceId { bool isMethod; // otherwise, field string className; string name; bool operator < (SourceId const& other) const { if(isMethod < other.isMethod) return true; if(isMethod > other.isMeth...
Fix implementation of '<' operator
Fix implementation of '<' operator
C
agpl-3.0
Ace17/jaremap,Ace17/jaremap,Ace17/jaremap,Ace17/jaremap
44591595ecc956d5e92064ae41b01014509cfa00
common/thread/thread_posix.h
common/thread/thread_posix.h
#ifndef THREAD_POSIX_H #define THREAD_POSIX_H struct ThreadState { pthread_t td_; static void start(pthread_key_t key, Thread *td) { pthread_t self = pthread_self(); td->state_->td_ = self; int rv = pthread_setspecific(key, td); if (rv == -1) { ERROR("/thread/state/start") << "Could not set thread-loc...
Add missed file in previous revision.
Add missed file in previous revision. git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@605 4068ffdb-0463-0410-8185-8cc71e3bd399
C
bsd-2-clause
diegows/wanproxy,splbio/wanproxy,splbio/wanproxy,splbio/wanproxy,diegows/wanproxy,diegows/wanproxy
2908999b320714a97fe5223d0f51237554392e48
framework/Source/GPUImageFilterPipeline.h
framework/Source/GPUImageFilterPipeline.h
#import <Foundation/Foundation.h> #import "GPUImageFilter.h" @interface GPUImageFilterPipeline : NSObject @property (strong) NSMutableArray *filters; @property (strong) GPUImageOutput *input; @property (strong) id <GPUImageInput> output; - (id) initWithOrderedFilters:(NSArray*) filters input:(GPUImageOutput*)input ...
#import <Foundation/Foundation.h> #import "GPUImageFilter.h" @interface GPUImageFilterPipeline : NSObject @property (strong) NSMutableArray *filters; @property (strong) GPUImageOutput *input; @property (strong) id <GPUImageInput> output; - (id) initWithOrderedFilters:(NSArray*) filters input:(GPUImageOutput*)input ...
Make pipeline work for CGImage processing (missed out the header file)
Bugfix: Make pipeline work for CGImage processing (missed out the header file)
C
bsd-3-clause
HSFGitHub/GPUImage,stelabouras/GPUImage,Creolophus/GPUImage,Kevin775263419/GPUImage,jimydotorg/GGGPUImage,StratAguilar/GPUImage,tuo/GPUImage,3drobotics/GPUImage,yshiga/GPUImage,geowarsong/GPUImage,Matzo/GPUImage,rromanchuk/GPUImage,hgl888/GPUImage,mingming1986/GPUImage,BradLarson/GPUImage,ozetadev/GPUImage,powerhome/GP...
d2ebdda3f26a149dffac466d734eaf783b53d6d9
pkg/exf/exf_ad_check_lev4_dir.h
pkg/exf/exf_ad_check_lev4_dir.h
#ifdef ALLOW_EXF CADJ STORE StoreForcing1 = tapelev4, key = ilev_4 CADJ STORE StoreForcing2 = tapelev4, key = ilev_4 CADJ STORE StoreCTRLS1 = tapelev4, key = ilev_4 # ifdef ALLOW_HFLUX_CONTROL CADJ STORE xx_hflux0 = tapelev4, key = ilev_4 CADJ STORE xx_hflux1 = tapelev4, key = ilev_4 # endif # ifde...
#ifdef ALLOW_EXF CADJ STORE StoreEXF1 = tapelev4, key = ilev_4 CADJ STORE StoreEXF2 = tapelev4, key = ilev_4 CADJ STORE StoreCTRLS1 = tapelev4, key = ilev_4 # ifdef ALLOW_HFLUX_CONTROL CADJ STORE xx_hflux0 = tapelev4, key = ilev_4 CADJ STORE xx_hflux1 = tapelev4, key = ilev_4 # endif # ifde...
Fix store field for tapelev4 (rarely used).
Fix store field for tapelev4 (rarely used).
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
0dc9990c39043e77c3097cba0d1d26ecd02338c1
engine/mesh.h
engine/mesh.h
#ifndef __ENGINE_MESH_H__ #define __ENGINE_MESH_H__ #include "std/types.h" #include "gfx/vector3d.h" typedef struct Triangle { uint16_t p1, p2, p3; } TriangleT; typedef struct IndexArray { uint16_t count; uint16_t *index; } IndexArrayT; typedef struct IndexMap { IndexArrayT *vertex; uint16_t *indices; } I...
#ifndef __ENGINE_MESH_H__ #define __ENGINE_MESH_H__ #include "std/types.h" #include "gfx/vector3d.h" typedef struct Triangle { uint16_t p1, p2, p3; } TriangleT; typedef struct IndexArray { uint16_t count; uint16_t *index; } IndexArrayT; typedef struct IndexMap { IndexArrayT *vertex; uint16_t *indices; } I...
Add some comments about expected purpose.
Add some comments about expected purpose.
C
artistic-2.0
cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene
72727bfb04499b60ca8ed91398fbabf0d88fe4cf
include/parrot/string_primitives.h
include/parrot/string_primitives.h
/* string_funcs.h * Copyright (C) 2001-2003, The Perl Foundation. * SVN Info * $Id$ * Overview: * This is the api header for the string subsystem * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_STRING_PRIMITIVES_H_GUARD #define PARROT_STRING_PRIMITIVES_H_GU...
/* string_funcs.h * Copyright (C) 2001-2003, The Perl Foundation. * SVN Info * $Id$ * Overview: * This is the api header for the string subsystem * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_STRING_PRIMITIVES_H_GUARD #define PARROT_STRING_PRIMITIVES_H_GU...
Fix the build on Win32 by making linkage of various symbols consistent again.
Fix the build on Win32 by making linkage of various symbols consistent again. git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@18778 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
C
artistic-2.0
ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot
9ad48db6031885c38137fcd3ba919b061e272b10
test/FrontendC/redef-ext-inline.c
test/FrontendC/redef-ext-inline.c
// RUN: %llvmgcc -S %s -o - // rdar://7208839 extern inline int f1 (void) {return 1;} int f3 (void) {return f1();} int f1 (void) {return 0;}
Add a test case for r81431.
Add a test case for r81431. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@81432 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,...
134480cb1b2270251aa12e87fff32ec391d8d8f6
test/CFrontend/2003-08-18-StructAsValue.c
test/CFrontend/2003-08-18-StructAsValue.c
typedef struct { int op; } event_t; event_t test(int X) { event_t foo, bar; return X ? foo : bar; }
typedef struct { int op; } event_t; event_t test(int X) { event_t foo = { 1 }, bar = { 2 }; return X ? foo : bar; }
Make the testcase more interesting
Make the testcase more interesting git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@7961 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/...
9854b0bc628fd7b8cce8459629ad8df1f042bc7e
testmud/mud/home/Text/sys/verb/ooc/quit.c
testmud/mud/home/Text/sys/verb/ooc/quit.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Remove user from mobile list when disinhabiting
Remove user from mobile list when disinhabiting
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
6ac45b405fd7f929d73eb03395f713d8667b2941
include/nstl.h
include/nstl.h
/*! * Master header of the nstl library. * * @author Louis Dionne */ #ifndef NSTL_H #define NSTL_H #include <nstl/operator.h> #include <nstl/type.h> #include <nstl/primitive.h> #include <nstl/pair.h> #include <nstl/algorithm.h> #include <nstl/vector.h> #endif /* !NSTL_H */
/*! * Master header of the nstl library. * * @author Louis Dionne */ #ifndef NSTL_H #define NSTL_H #include <nstl/algorithm.h> #include <nstl/operator.h> #include <nstl/pair.h> #include <nstl/primitive.h> #include <nstl/type.h> #include <nstl/vector.h> #endif /* !NSTL_H */
Reorder the includes of the master include in alphabetical order.
Reorder the includes of the master include in alphabetical order.
C
mit
ldionne/nstl,ldionne/nstl
4db6dd114fde94aac12d4a2f01ca23032cc8cc61
ARAnalyticalProvider.h
ARAnalyticalProvider.h
@class UINavigationController, UIViewController; @interface ARAnalyticalProvider : NSObject /// Init - (id)initWithIdentifier:(NSString *)identifier; /// Set a per user property - (void)identifyUserWithID:(NSString *)userID andEmailAddress:(NSString *)email; - (void)setUserProperty:(NSString *)property toValue:(NSStr...
@class UINavigationController, UIViewController; @interface ARAnalyticalProvider : NSObject /// Init - (id)initWithIdentifier:(NSString *)identifier; /// Set a per user property - (void)identifyUserWithID:(NSString *)userID andEmailAddress:(NSString *)email; - (void)setUserProperty:(NSString *)property toValue:(NSStr...
Document local persisted logging API.
Document local persisted logging API.
C
mit
ed-at-work/ARAnalytics,ashfurrow/ARAnalytics,sgtsquiggs/ARAnalytics,sp3esu/ARAnalytics,AlexanderBabchenko/ARAnalytics,orta/ARAnalytics,levigroker/ARAnalytics,arbesfeld/ARAnalytics,segiddins/ARAnalytics,sodastsai/ARAnalytics,HelloZhu/ARAnalytics,indiegogo/ARAnalytics,KBvsMJ/ARAnalytics,wzs/ARAnalytics,ftvs/ARAnalytics,i...
939663cc8143eefe4446241af24628fb1d0957c6
ext/bindex/cruby.c
ext/bindex/cruby.c
#include "bindex.h" VALUE bx_mBindex; static VALUE bx_current_bindings(VALUE self) { return current_bindings(); } static VALUE bx_exc_set_backtrace(VALUE self, VALUE bt) { /* rb_check_backtrace can raise an exception, if the input arguments are not * to its likings. Set the bindings afterwards, so we don't wa...
#include "bindex.h" VALUE bx_mBindex; static VALUE bx_current_bindings(VALUE self) { return current_bindings(); } static VALUE bx_exc_set_backtrace(VALUE self, VALUE bt) { /* rb_check_backtrace can raise an exception, if the input arguments are not * to its likings. Set the bindings afterwards, so we don't wa...
Clean unused argument in bx_exc_bindings
CRuby: Clean unused argument in bx_exc_bindings
C
mit
gsamokovarov/bindex,gsamokovarov/bindex,gsamokovarov/bindex
7d0c8651ffc96bf8d1f08b1a482105514301e16b
Code/RestKit.h
Code/RestKit.h
// // RestKit.h // RestKit // // Created by Blake Watters on 2/19/10. // Copyright (c) 2009-2012 RestKit. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // //...
// // RestKit.h // RestKit // // Created by Blake Watters on 2/19/10. // Copyright (c) 2009-2012 RestKit. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // //...
Add global __RESTKIT__ define for aiding conditional compilation
Add global __RESTKIT__ define for aiding conditional compilation
C
apache-2.0
mavericksunny/RestKit,loverbabyz/RestKit,braindata/RestKit,timbodeit/RestKit,caamorales/RestKit,oligriffiths/RestKit,agworld/RestKit,LiuShulong/RestKit,imton/RestKit,margarina/RestKit-latest,jonesgithub/RestKit,QLGu/RestKit,loverbabyz/RestKit,Bogon/RestKit,coderChrisLee/RestKit,agworld/RestKit,RestKit/RestKit,baumatron...
85e2b7bbeecbae82e17051c1095642988a26de43
TDTHotChocolate/FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h
TDTHotChocolate/FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h
// http://stackoverflow.com/a/7933931/141220 #define TDTSuppressPerformSelectorLeakWarning(CODE) \ do { \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \ CODE; \ _Pragma("clang diagnostic pop") \ } while (0)
// http://stackoverflow.com/a/7933931/141220 #define TDTSuppressPerformSelectorLeakWarning(code) \ do { \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \ code; \ _Pragma("clang diagnostic pop") \ } while (0)
Revert to lowercase macro arguments
Revert to lowercase macro arguments They match the convention in `TDTAssert.h`
C
bsd-3-clause
talk-to/Chocolate,talk-to/Chocolate
3b688a0ffa73cb7694f3b6aaf25d2c4cf9a7bf44
libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c
libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <vdp2/tvmd.h> #include "vdp-internal.h" void vdp2_tvmd_display_clear(void) { _state_vdp2()->regs.tvmd &= 0x7FFF; /* Change the DISP bit during VBLANK */ vdp2_tvmd_vb...
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <vdp2/tvmd.h> #include "vdp-internal.h" void vdp2_tvmd_display_clear(void) { _state_vdp2()->regs.tvmd &= 0x7EFF; /* Change the DISP bit during VBLANK */ vdp2_tvmd_vb...
Clear bit when writing to VDP2(TVMD)
Clear bit when writing to VDP2(TVMD)
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
3f274880fb1720b82e449a9b4d86ec0dab336d7c
Sensorama/Sensorama/SRDebug.h
Sensorama/Sensorama/SRDebug.h
// // SRDebug.h // Sensorama // // Created by Wojciech Adam Koszek (h) on 09/04/2016. // Copyright © 2016 Wojciech Adam Koszek. All rights reserved. // #ifndef SRDebug_h #define SRDebug_h #define SRPROBE0() do { \ NSLog(@"%s", __func__); \ } while (0) #define SRPROBE1(x1) ...
// // SRDebug.h // Sensorama // // Created by Wojciech Adam Koszek (h) on 09/04/2016. // Copyright © 2016 Wojciech Adam Koszek. All rights reserved. // #ifndef SRDebug_h #define SRDebug_h #define SRPROBE0() do { \ NSLog(@"%s", __func__); \ } while (0) #define SRPROBE1(x1) ...
Add 1 more macro for debugging 3 things.
Add 1 more macro for debugging 3 things.
C
bsd-2-clause
wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios
971cf68f266f58f63b0b260b7f3a363d2f111cd6
test/Sema/pragma-section-invalid.c
test/Sema/pragma-section-invalid.c
// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s -triple x86_64-apple-darwin // expected-error@+1 {{argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma}} #pragma data_seg(".my_const") int a = 1; #pragma data_seg("__THINGY...
Add test intended for commit in r231317
Add test intended for commit in r231317 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@233866 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
2e8abb7a804ed24013202b53784c31f7e1131429
c_solutions_31-40/Euler_31.c
c_solutions_31-40/Euler_31.c
#include <stdio.h> #define CAP 8 const int currency[CAP] = {1, 2, 5, 10, 20, 50, 100, 200}; int total[CAP] = {0, 0, 0, 0, 0, 0, 0, 0}; const int limit = 200; static inline int calculate_total(void) { int sum = 0; for (int i=0; i < CAP; i++) sum += total[i]; return sum; } int...
#include <stdio.h> #define CAP 8 const int currency[CAP] = {1, 2, 5, 10, 20, 50, 100, 200}; int total[CAP] = {0, 0, 0, 0, 0, 0, 0, 0}; const int limit = 200; static inline int calculate_total(void) { int sum = 0; for (int i=0; i < CAP; i++) sum += total[i]; return sum; } int...
Check against sum, 30 second improvement
Check against sum, 30 second improvement
C
mit
tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler
53cd39088decb09998153455d9b00938115a322e
src/brainfuck-interpreter.c
src/brainfuck-interpreter.c
/* * A simple Brainfuck interpreter. * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <errno.h> #include <stdint.h> #include <stdio.h> #...
/* * A simple Brainfuck interpreter. * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <errno.h> #include <stdint.h> #include <stdio.h> #...
Handle instances when "realloc()" fails.
Handle instances when "realloc()" fails.
C
unlicense
damiendart/brainfuck
674f0d242855b8f901dd29b6fe077aafc67593e4
src/qt/bitcoinaddressvalidator.h
src/qt/bitcoinaddressvalidator.h
#ifndef BITCOINADDRESSVALIDATOR_H #define BITCOINADDRESSVALIDATOR_H #include <QValidator> /** Base48 entry widget validator. Corrects near-miss characters and refuses characters that are no part of base48. */ class BitcoinAddressValidator : public QValidator { Q_OBJECT public: explicit BitcoinAddressVali...
#ifndef BITCOINADDRESSVALIDATOR_H #define BITCOINADDRESSVALIDATOR_H #include <QValidator> /** Base58 entry widget validator. Corrects near-miss characters and refuses characters that are not part of base58. */ class BitcoinAddressValidator : public QValidator { Q_OBJECT public: explicit BitcoinAddressVal...
Fix typo in a comment: it's base58, not base48.
Fix typo in a comment: it's base58, not base48.
C
mit
syscoin/syscoin,Crowndev/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,syscoin/syscoin,Infernoman/crowncoin,syscoin/syscoin,domob1812/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,syscoin/sys...
db769b79cf99203a93c441bcfe98c993aa0ca3b5
Sources/Cinput/input.c
Sources/Cinput/input.c
#include "input.h" inline int input_event_get_sec(struct input_event event) { return event.input_event_sec; } inline int input_event_get_usec(struct input_event event) { return event.input_event_usec; }
#include "input.h" inline int input_event_get_sec(struct input_event event) { #ifdef input_event_sec return event.input_event_sec; #else return event.time.tv_sec #endif } inline int input_event_get_usec(struct input_event event) { #ifdef input_event_usec return event.input_event_usec; #else return eve...
Fix compilation on older linux kernels
Fix compilation on older linux kernels
C
apache-2.0
sersoft-gmbh/DeviceInput,sersoft-gmbh/DeviceInput
84b255f9771bd80788195c5b702761ee42ca5f2f
bindings/ocaml/transforms/utils/transform_utils_ocaml.c
bindings/ocaml/transforms/utils/transform_utils_ocaml.c
/*===-- vectorize_ocaml.c - LLVM OCaml Glue ---------------------*- C++ -*-===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
/*===-- transform_utils_ocaml.c - LLVM OCaml Glue ---------------*- C++ -*-===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
Fix copy paste error in file header
[NFC][OCaml] Fix copy paste error in file header Summary: Just copypasta resulting in the wrong file name in the header. Reviewers: whitequark Reviewed By: whitequark Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D52215 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@342437 911773...
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/s...
0ac74df81c5ca4213f8d7acbc0fb30c64cde06d3
chrome/browser/extensions/extension_management_api_constants.h
chrome/browser/extensions/extension_management_api_constants.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_ #pragm...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_ #pragm...
Remove leftover constant declarations accidentally left behind by a previous patch.
Remove leftover constant declarations accidentally left behind by a previous patch. BUG=119692 TEST=compile succeeds Review URL: https://chromiumcodereview.appspot.com/9903017 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@129799 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
adobe/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,adobe/c...
d95464df6f28ca4290a0d90f7fe45caca7a3ecf7
misc/clortho.c
misc/clortho.c
/* Copyright 2019 Lenovo */ #include <arpa/inet.h> #include <crypt.h> #include <net/if.h> #include <sys/socket.h> #include <stdio.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #define OUI_ETHERTYPE 0x88b7 #define MA...
Add a non-ip network string xmit concept
Add a non-ip network string xmit concept
C
apache-2.0
jjohnson42/confluent,xcat2/confluent,xcat2/confluent,xcat2/confluent,xcat2/confluent,xcat2/confluent,jjohnson42/confluent,jjohnson42/confluent,jjohnson42/confluent,jjohnson42/confluent
7343eabc6b4054b7ca2f4455361d5f891f482626
test/Driver/metadata-with-dots.c
test/Driver/metadata-with-dots.c
// REQUIRES: shell // RUN: mkdir -p out.dir // RUN: cat %s > out.dir/test.c // RUN: %clang -E -MMD %s -o out.dir/test // RUN: test ! -f %out.d // RUN: test -f out.dir/test.d // RUN: rm -rf out.dir/test.d out.dir/ out.d int main (void) { return 0; }
// REQUIRES: shell // RUN: mkdir -p %t/out.dir // RUN: cat %s > %t/out.dir/test.c // RUN: %clang -E -MMD %s -o %t/out.dir/test // RUN: test ! -f %out.d // RUN: test -f %t/out.dir/test.d // RUN: rm -rf %t/out.dir/test.d %t/out.dir/ out.d int main (void) { return 0; }
Fix test to use %t for newly created files.
Fix test to use %t for newly created files. This is both for consistency with other `mkdir`s in tests, and fixing permission issues with the non-temporary cwd during testing (they are not always writable). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@371897 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
451e969f77d183784c56eea304a336fc0234860d
test2/tenative/multi_dimension.c
test2/tenative/multi_dimension.c
// RUN: %ucc -fsyntax-only %s int a[][2]; int main() { a[0][0] = 3; /* this tests a bug where the above assignment would attempt to check integer * promotions (on a dereference of an array in the LHS), and attempt to find * the size of `a` before it had been completed. integer promotions are now * handled pro...
Test incomplete tenative multi-dimension expressions
Test incomplete tenative multi-dimension expressions
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
e9568c12ccd1390854b4a700dcfaaa2cbf342e91
cpp/codearea.h
cpp/codearea.h
#ifndef LOCATION_OPENLOCATIONCODE_CODEAREA_H_ #define LOCATION_OPENLOCATIONCODE_CODEAREA_H_ #include <cstdlib> namespace openlocationcode { struct LatLng { double latitude; double longitude; }; class CodeArea { public: CodeArea(double latitude_lo, double longitude_lo, double latitude_hi, double lo...
#ifndef LOCATION_OPENLOCATIONCODE_CODEAREA_H_ #define LOCATION_OPENLOCATIONCODE_CODEAREA_H_ #include <cstdlib> namespace openlocationcode { struct LatLng { double latitude; double longitude; }; class CodeArea { public: CodeArea(double latitude_lo, double longitude_lo, double latitude_hi, double lo...
Add newline to remove compiler warning.
Add newline to remove compiler warning. As some projects treat warnings as errors.
C
apache-2.0
bocops/open-location-code,google/open-location-code,google/open-location-code,zongweil/open-location-code,zongweil/open-location-code,bocops/open-location-code,bocops/open-location-code,zongweil/open-location-code,google/open-location-code,google/open-location-code,bocops/open-location-code,bocops/open-location-code,go...
4b87142aba52c76ff9ed7c9c2fe0067bd935a2f4
test/CodeGen/x86_64-arguments.c
test/CodeGen/x86_64-arguments.c
// RUN: clang -triple x86_64-unknown-unknown -emit-llvm -o %t %s && // RUN: grep 'define signext i8 @f0()' %t && // RUN: grep 'define signext i16 @f1()' %t && // RUN: grep 'define i32 @f2()' %t && // RUN: grep 'define float @f3()' %t && // RUN: grep 'define double @f4()' %t && // RUN: grep 'define x86_fp80 @f5()' %t &&...
// RUN: clang -triple x86_64-unknown-unknown -emit-llvm -o %t %s && // RUN: grep 'define signext i8 @f0()' %t && // RUN: grep 'define signext i16 @f1()' %t && // RUN: grep 'define i32 @f2()' %t && // RUN: grep 'define float @f3()' %t && // RUN: grep 'define double @f4()' %t && // RUN: grep 'define x86_fp80 @f5()' %t &&...
Add end of line at end.
Add end of line at end. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@65557 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
a89c5c9841242970d7ade4f239397ea4131b8646
libutil/include/xsys.h
libutil/include/xsys.h
#if !defined(XV6_USER) #include <sys/wait.h> #define xfork() fork() static inline void xwait() { int status; if (wait(&status) < 0) edie("wait"); if (!WIFEXITED(status)) die("bad status %u", status); } #define mtenable(x) do { } while(0) #define mtenable_type(x, y) do { } while (0) #define mtdisable(x) ...
#pragma once #include "libutil.h" #if !defined(XV6_USER) #include <sys/wait.h> #define xfork() fork() static inline int xwait() { int status; if (wait(&status) < 0) edie("wait"); if (!WIFEXITED(status)) die("bad status %u", status); return WEXITSTATUS(status); } #define mtenable(x) do { } while(0) #...
Make xwait return exit status
libutil: Make xwait return exit status Fake a 0 status for xv6.
C
mit
bowlofstew/sv6,bowlofstew/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6
cc7f863707262a74a3eab35efaac9d3e0e39aa72
common/flatpak-utils-base-private.h
common/flatpak-utils-base-private.h
/* * Copyright © 2019 Red Hat, Inc * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library i...
/* * Copyright © 2019 Red Hat, Inc * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library i...
Add a backport of G_DBUS_METHOD_INVOCATION_HANDLED
common: Add a backport of G_DBUS_METHOD_INVOCATION_HANDLED This is syntactic sugar added in GLib 2.67.0, which makes it more clearly correct when we return TRUE after a GDBus error. Signed-off-by: Simon McVittie <0e1aea601907c1a85c2dc96e5ea37e23c58d2e9b@collabora.com>
C
lgpl-2.1
flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak
31810dca7c6aec8eaaaf4e690f24d126c7ac917c
src/system/sys_stats.h
src/system/sys_stats.h
#ifndef SYSSTATS_H #define SYSSTATS_H #include <stdbool.h> #include <ncurses.h> #include <sys/timerfd.h> #include "../util/file_utils.h" #define MAXTOT 16 #define BASE 1024 #define MAXPIDS "/proc/sys/kernel/pid_max" #define MEMFREE "MemFree:" #define SECS 60 #define TIME_READ_DEFAULT 0 #define SYS_TIMER_EXPIR...
#ifndef SYSSTATS_H #define SYSSTATS_H #include <stdbool.h> #include <ncurses.h> #include <sys/timerfd.h> #include "../util/file_utils.h" #define MAXTOT 16 #define BASE 1024 #define MAXPIDS "/proc/sys/kernel/pid_max" #define MEMFREE "MemAvailable:" #define SECS 60 #define TIME_READ_DEFAULT 0 #define SYS_TIMER_...
Use MemAvailable for "free mem"
Use MemAvailable for "free mem"
C
mit
tijko/dashboard
9bd3e9df43b18b917c5510f1ce113e0000008b65
webvtt.h
webvtt.h
/* WebVTT parser Copyright 2011 Mozilla Foundation */ #ifndef _WEBVTT_H_ #define _WEBVTT_H_ /* webvtt files are a sequence of cues each cue has a start and end time for presentation and some text content (which my be marked up) there may be other attributes, but we ignore them we store these in a link...
/* WebVTT parser Copyright 2011 Mozilla Foundation */ #ifndef _WEBVTT_H_ #define _WEBVTT_H_ /* webvtt files are a sequence of cues each cue has a start and end time for presentation and some text content (which my be marked up) there may be other attributes, but we ignore them we store these in a link...
Use the correct type for the linked list pointer.
Use the correct type for the linked list pointer.
C
bsd-2-clause
mafidchao/webvtt
875a794dd1d9c3e183b456b8fe826c04874bbf55
Classes/YTConnector.h
Classes/YTConnector.h
// // YTConnector.h // AKYouTube // // Created by Anton Pomozov on 10.09.13. // Copyright (c) 2013 Akademon Ltd. All rights reserved. // #import <Foundation/Foundation.h> @class YTConnector; @protocol YTLoginViewControllerInterface <NSObject> @property (nonatomic, strong, readonly) UIWebView *webView; @property...
// // YTConnector.h // AKYouTube // // Created by Anton Pomozov on 10.09.13. // Copyright (c) 2013 Akademon Ltd. All rights reserved. // #import <Foundation/Foundation.h> @class YTConnector; @protocol YTLoginViewControllerInterface <NSObject> @property (nonatomic, strong, readonly) UIWebView *webView; @optiona...
Make close button properties optional.
[Mod]: Make close button properties optional.
C
mit
pomozoff/AKYouTube,pomozoff/AKYouTube,pomozoff/AKYouTube
9bcc53dba29ec430925dc6cd9676ad46ddf72461
FunctionDeclaration.h
FunctionDeclaration.h
#ifndef FUNCTION_DECLARATION_H #define FUNCTION_DECLARATION_H #include "AstNode.h" namespace liquid { class FunctionDeclaration : public Statement { friend class ClassDeclaration; Identifier* type; Identifier* id; VariableList* arguments; Block* block; YYLTYPE location; public: FunctionDecl...
#ifndef FUNCTION_DECLARATION_H #define FUNCTION_DECLARATION_H #include "AstNode.h" namespace liquid { class FunctionDeclaration : public Statement { friend class ClassDeclaration; Identifier* type; Identifier* id; VariableList* arguments; Block* block; YYLTYPE location; public: FunctionDecl...
Fix crash wrong order of member initialization.
Fix crash wrong order of member initialization.
C
mit
xkbeyer/liquid,xkbeyer/liquid
6ed183cf0022fdc65b0bfcd883dd3a9c4e231a19
library/mps/common.h
library/mps/common.h
/* * Copyright The Mbed TLS Contributors * 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/LICENSE-2.0 * ...
/* * Copyright The Mbed TLS Contributors * 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/LICENSE-2.0 * ...
Add MPS compile time option for enabling/disabling assertions
Add MPS compile time option for enabling/disabling assertions This commit adds the compile-time option MBEDTLS_MPS_ENABLE_ASSERTIONS which controls the presence of runtime assertions in MPS code. See the documentation in the header for more information. Signed-off-by: Hanno Becker <4d488caff78d6184f59bbe6e137e34d460...
C
apache-2.0
Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,NXPmicro/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls
6e87a90d254282822a9f6a171a38a666a05e5f6e
os/arch/arm/src/rda5981/rda5981x_exif_isr.c
os/arch/arm/src/rda5981/rda5981x_exif_isr.c
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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 * * ...
Add RDA5981 exif logic for I2S module
Add RDA5981 exif logic for I2S module Signed-off-by: Tianfu Huang <51883963465061bbce1ec7188dc31b693276da5b@samsung.com>
C
apache-2.0
tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt
ad33daeea09dc2e346031093d6b4d4e9d4615de0
src/qpdf/utils.h
src/qpdf/utils.h
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (C) 2017, James R. Barlow (https://github.com/jbarlow83/) */ #pragma once #include "pikepdf.h" ...
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (C) 2017, James R. Barlow (https://github.com/jbarlow83/) */ #pragma once #include "pikepdf.h" ...
Remove signature of deleted function
Remove signature of deleted function
C
mpl-2.0
pikepdf/pikepdf,pikepdf/pikepdf,pikepdf/pikepdf
37f29b3dab6e53443f3f8b0cc37b40d821e97440
src/tbd/symbol.h
src/tbd/symbol.h
// // src/tbd/symbol.h // tbd // // Created by inoahdev on 4/24/17. // Copyright © 2017 inoahdev. All rights reserved. // #pragma once #include <mach-o/arch.h> #include <string> #include "flags.h" class symbol { public: explicit symbol(const char *string, bool weak, int flags_length) noexcept; void add_...
// // src/tbd/symbol.h // tbd // // Created by inoahdev on 4/24/17. // Copyright © 2017 inoahdev. All rights reserved. // #pragma once #include <string> #include "flags.h" class symbol { public: explicit symbol(const char *string, bool weak, int flags_length) noexcept; void add_architecture(int number) n...
Remove unnecessary import for 'mach-o/arch.h'
Remove unnecessary import for 'mach-o/arch.h'
C
mit
inoahdev/tbd,inoahdev/tbd
f0e863ead86a3ea0edb502d7c21bb1fc872712c5
include/sauce/internal/implicit_bindings.h
include/sauce/internal/implicit_bindings.h
#ifndef SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_ #define SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_ // #include <sauce/internal/bindings/all.h> namespace sauce { namespace internal { /** * Attempts to supply a Binding to Bindings when none is found for a dependency. */ struct ImplicitBindings {}; } namespace i =...
#ifndef SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_ #define SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_ #include <sauce/internal/bindings/all.h> namespace sauce { namespace internal { /** * Attempts to supply a Binding to Bindings when none is found for a dependency. */ struct ImplicitBindings {}; } namespace i = ::...
Enable including all bindings in implicit bindings
Enable including all bindings in implicit bindings
C
mit
phs/sauce,phs/sauce,phs/sauce,phs/sauce
e263b70f1126b4fdb1ade836aacd547ad0e3e3b2
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_API void ringlib_init(RingState *pRingState) { }
#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 glAccum(GLenum op,GLfloat value)
Update RingOpenGL - Add Function (Source Code) : void glAccum(GLenum op,GLfloat value)
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
36b989cb6ffc12f7291e25bbb710e9a1d6e22203
src/Common/Version.h
src/Common/Version.h
#define MAJOR_VERSION 3 #define MINOR_VERSION 1 #define BUILD_VERSION 0 #define BUILD_REVISION 5172 #define STRINGIFY(x) #x #define MACRO_STRINGIFY(x) STRINGIFY(x) #define REVISION_STRING MACRO_STRINGIFY(BUILD_REVISION) #define VERSION_STRING MACRO_STRINGIFY(MAJOR_VERSION) "." MACRO_STRINGIFY(MINOR_VERSION) "." MACRO...
#define MAJOR_VERSION 3 #define MINOR_VERSION 2 #define BUILD_VERSION 6 #define BUILD_REVISION 45159 #define STRINGIFY(x) #x #define MACRO_STRINGIFY(x) STRINGIFY(x) #define REVISION_STRING MACRO_STRINGIFY(BUILD_REVISION) #define VERSION_STRING MACRO_STRINGIFY(MAJOR_VERSION) "." MACRO_STRINGIFY(MINOR_VERSION) "." MACR...
Update the version number of release.
Update the version number of release.
C
apache-2.0
google/swiftshader,google/swiftshader,google/swiftshader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader
5b90a4de55f79f8ca1cf3ac1357fadf1451126cc
arrays/recursive-divide-and-conquer/main.c
arrays/recursive-divide-and-conquer/main.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #define N 100 typedef int Item; Item max(Item *, int, int); int main(void) { int i; Item m, a[N]; srand(time(NULL)); for (i = 0; i < N; ++i) { a[i] = rand() % 1000; } m = max(a, 0, N-1); printf("Max array value is: %d\n", m); return 0; } I...
Add recursive divide and conquer algorithm for arrays
Add recursive divide and conquer algorithm for arrays new file: arrays/recursive-divide-and-conquer/main.c
C
mit
bartobri/data-structures-c,bartobri/data-structures-c
60dcc9639dd5f36d1049f1d85bfd6bec45b2ab20
exercises/rna-transcription/src/example.c
exercises/rna-transcription/src/example.c
#include <stdlib.h> #include <string.h> #include "rna_transcription.h" char *to_rna(const char *dna) { size_t len = strlen(dna); char *rna = malloc(sizeof(char) * len); for (int i = 0; i < len; i++) { switch (dna[i]) { case 'G': rna[i] = 'C'; break; case 'C': rna[i] = 'G'; br...
#include <stdlib.h> #include <string.h> #include "rna_transcription.h" char *to_rna(const char *dna) { size_t len = strlen(dna); char *rna = malloc(sizeof(char) * len); for (size_t i = 0; i < len; i++) { switch (dna[i]) { case 'G': rna[i] = 'C'; break; case 'C': rna[i] = 'G'; ...
Fix signed and unsigned comparison
Fix signed and unsigned comparison
C
mit
RealBarrettBrown/xc,RealBarrettBrown/xc,RealBarrettBrown/xc
85da0a68e77dd32bd2f55d33e0d93d63b8805c8e
src/vast/concept/parseable/vast/key.h
src/vast/concept/parseable/vast/key.h
#ifndef VAST_CONCEPT_PARSEABLE_VAST_KEY_H #define VAST_CONCEPT_PARSEABLE_VAST_KEY_H #include "vast/key.h" #include "vast/concept/parseable/core/choice.h" #include "vast/concept/parseable/core/list.h" #include "vast/concept/parseable/core/operators.h" #include "vast/concept/parseable/core/parser.h" #include "vast/conc...
#ifndef VAST_CONCEPT_PARSEABLE_VAST_KEY_H #define VAST_CONCEPT_PARSEABLE_VAST_KEY_H #include "vast/key.h" #include "vast/concept/parseable/core/choice.h" #include "vast/concept/parseable/core/list.h" #include "vast/concept/parseable/core/operators.h" #include "vast/concept/parseable/core/parser.h" #include "vast/conc...
Work around missing parsing functionality
Work around missing parsing functionality
C
bsd-3-clause
mavam/vast,pmos69/vast,vast-io/vast,vast-io/vast,vast-io/vast,vast-io/vast,pmos69/vast,pmos69/vast,mavam/vast,vast-io/vast,mavam/vast,mavam/vast,pmos69/vast
df5a968b905413ca4b89e49ba60470550a805dfb
solutions/uri/1151/1151.c
solutions/uri/1151/1151.c
#include <stdio.h> int main() { int n, a, b, x, i; scanf("%d", &n); if (n == 0) { printf("0\n"); return 0; } a = 1; b = 1; printf("0"); for (i = 1; i < n; i++) { printf(" %d", a); x = a; a = b; b = b + x; } printf("\n"); ...
Solve Easy Fibonacci in c
Solve Easy Fibonacci in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
6653eccd177784c911ecc39864ffe66210b41c5f
src/modules/wl_desktop_shell/e_mod_main.c
src/modules/wl_desktop_shell/e_mod_main.c
#include "e.h" #include "e_comp_wl.h" #include "e_mod_main.h" #include "e_desktop_shell_protocol.h" EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Wl_Desktop_Shell" }; EAPI void * e_modapi_init(E_Module *m) { E_Wayland_Desktop_Shell *shell = NULL; /* try to allocate space for the shell structure */ i...
Add start of desktop shell code.
Add start of desktop shell code. Signed-off-by: Chris Michael <177aeddb9e34930a357ecd8dd2d21c80fe280c85@samsung.com>
C
bsd-2-clause
FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e
57c89f982987bd5dc540c3ca2407f6d735aeac6d
include/SHIZEN/zint.h
include/SHIZEN/zint.h
//// // __| | | _ _| __ / __| \ | // \__ \ __ | | / _| . | // ____/ _| _| ___| ____| ___| _|\_| // // Copyright (c) 2017 Jacob Hauberg Hansen // // This library is free software; you can redistribute and modify it // under the terms of the MIT license. See LICENSE for details. // #ifndef zint_h ...
Add standard integer/floating point types
Add standard integer/floating point types These help make variable intention clearer and declarations shorter.
C
mit
jhauberg/SHIZEN
8f0b7f5f5bc1eb5a1e794497d14560d032bf8dca
tests/headers/functions.h
tests/headers/functions.h
/* Header testing function definitions parsing. */ //Defining a standard function. void f(int, int); inline int g(char *ch, char **str); // Defining a function pointer. int(*fnPtr)(char, float); // Adding dllexport and stdcall annotation to a function. int __declspec(dllexport) __stdcall function1();
/* Header testing function definitions parsing. */ //Defining a standard function. void f(int, int); // Defining a function with its implementation following inline int g(char *ch, char **str) { JUNK { } int localVariable = 1; } // Defining a function pointer. int(*fnPtr)(char, float); // Adding dll...
Add back Luke test of a function followed by its concrete implementation.
Add back Luke test of a function followed by its concrete implementation.
C
mit
mrh1997/pyclibrary,duguxy/pyclibrary,duguxy/pyclibrary,MatthieuDartiailh/pyclibrary,mrh1997/pyclibrary,MatthieuDartiailh/pyclibrary,mrh1997/pyclibrary,duguxy/pyclibrary
9affe3106c1a43153b26f5ef3b9f147508f07a1d
example/ex11-algo01.c
example/ex11-algo01.c
/* Based on https://en.cppreference.com/w/cpp/algorithm/for_each Need to be built in C11 mode */ #include <stdio.h> #include "m-array.h" #include "m-algo.h" /* Define a dynamic array of int */ ARRAY_DEF(vector_int, int) #define M_OPL_vector_int_t() ARRAY_OPLIST(vector_int) /* Define operator increment on int */ ...
Add example of ALGO_FOR_EACH and ALGO_REDUCE
Add example of ALGO_FOR_EACH and ALGO_REDUCE
C
bsd-2-clause
P-p-H-d/mlib,P-p-H-d/mlib
bfb527e09f6fb22e4547c08c8262deb9a827e9ad
kernel/os/include/os/os_fault.h
kernel/os/include/os/os_fault.h
/* * licensed to the apache software foundation (asf) under one * or more contributor license agreements. see the notice file * distributed with this work for additional information * regarding copyright ownership. the asf licenses this file * to you under the apache license, version 2.0 (the * "license"); you ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Update License to match other licenses
Update License to match other licenses
C
apache-2.0
andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/apache-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,IMGJulian/incubator-mynewt-core,mlaz/mynewt-core,IMGJulian/incubator-mynewt-core,wes3/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,IMGJulian/incubator-myne...
d80bdc186a97b2f1e9dee35941422cef15a49ded
fitz/stm_filter.c
fitz/stm_filter.c
#include "fitz_base.h" #include "fitz_stream.h" fz_error fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out) { fz_error reason; unsigned char *oldrp; unsigned char *oldwp; assert(!out->eof); oldrp = in->rp; oldwp = out->wp; if (f->done) return fz_iodone; reason = f->process(f, in, out); assert(i...
#include "fitz_base.h" #include "fitz_stream.h" fz_error fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out) { fz_error reason; unsigned char *oldrp; unsigned char *oldwp; oldrp = in->rp; oldwp = out->wp; if (f->done) return fz_iodone; assert(!out->eof); reason = f->process(f, in, out); assert(i...
Move assert test of EOF to after testing if a filter is done.
Move assert test of EOF to after testing if a filter is done. darcs-hash:20090823143236-f546f-8a43aacda84fc3a1ab9b24c9cd54bd422912d4ec.gz
C
agpl-3.0
nqv/mupdf,nqv/mupdf,nqv/mupdf,nqv/mupdf,nqv/mupdf,nqv/mupdf
eada73f748007102da090de2f6ac65691a9ea9a8
src/canopy_os_linux.c
src/canopy_os_linux.c
// Copyright 2015 SimpleThings, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Copyright 2015 SimpleThings, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
Remove canopy_os_assert implementation because linux implementation now just expands to assert macro in header file
Remove canopy_os_assert implementation because linux implementation now just expands to assert macro in header file
C
apache-2.0
canopy-project/canopy_os_linux
0a1ed2795d54f9295335b1ab9203eb41c34f2701
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 104 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 105 #endif
Update Skia milestone to 105
Update Skia milestone to 105 Change-Id: I0925a52cc3a504c95ec4453e74c4580ce692275c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/548896 Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com> Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Auto-Submit...
C
bsd-3-clause
google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia
e7b6cbacea0ca93834bb907a4d7122daed6a6a3c
backend/dummy_logic.c
backend/dummy_logic.c
#include "game_logic.h" new_game_result bship_logic_new_game(void){ new_game_result r; r.gid = 5; r.pid = 7; return r; } plyr_id bship_logic_join_game(game_id gid) { if(gid != 5) return ERR_NO_SUCH_GAME; return 8; } int bship_logic_submit_grid(plyr_id pid, grid _g) { if(pid < 7 || pid > 8) return ERR_INVAL...
Add dummy implementation of game_logic.h for testing
Add dummy implementation of game_logic.h for testing
C
agpl-3.0
wzwright/GroupDesignBattleship,GroupDesignBattleship/debian,wzwright/GroupDesignBattleship,wzwright/GroupDesignBattleship,GroupDesignBattleship/debian,wzwright/GroupDesignBattleship,GroupDesignBattleship/debian,GroupDesignBattleship/debian
982dacf245ebe0aa75d19fe27c2ec74e35f180cb
bikepath/SearchItem.h
bikepath/SearchItem.h
// // SearchItem.h // bikepath // // Created by Farheen Malik on 8/15/14. // Copyright (c) 2014 Bike Path. All rights reserved. // #import <Foundation/Foundation.h> #import <MapKit/MapKit.h> #import <GoogleMaps/GoogleMaps.h> @interface SearchItem : NSObject @property NSString *searchQuery; @property CLLocationDe...
// // SearchItem.h // bikepath // // Created by Farheen Malik on 8/15/14. // Copyright (c) 2014 Bike Path. All rights reserved. // #import <Foundation/Foundation.h> #import <MapKit/MapKit.h> #import <GoogleMaps/GoogleMaps.h> @interface SearchItem : NSObject @property NSString *searchQuery; @property CLLocationDe...
Add address as property of Search Item object
Add address as property of Search Item object
C
apache-2.0
red-spotted-newts-2014/bike-path,hushifei/bike-path,red-spotted-newts-2014/bike-path
10e6aefe5410267b5998df8417a16a1674e2f12b
src/modtypes/socket.h
src/modtypes/socket.h
#pragma once #include "../main.h" class Socket { public: virtual ~Socket() {} virtual unsigned int apiVersion() = 0; virtual void connect(const std::string& server, const std::string& port, const std::string& bind = "") {} virtual std::string receive() { return ""; } virtual void send(const std::string& dat...
#pragma once #include "../main.h" class Socket { public: virtual ~Socket() {} virtual unsigned int apiVersion() = 0; virtual void connect(const std::string& server, const std::string& port, const std::string& bindAddr = "") {} virtual std::string receive() { return ""; } virtual void send(const std::string&...
Rename parameter to not be the same as the name of the function that does it
Rename parameter to not be the same as the name of the function that does it
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
7bab840edb4a175eaa914e9fecbe8811d60e5d7e
Core/Code/Testing/mitkRenderingTestHelper.h
Core/Code/Testing/mitkRenderingTestHelper.h
/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2010-03-31 17:34:48 +0200 (Wed, 31 Mar 2010) $ Version: $Revision: 21985 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Inf...
/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2010-03-31 17:34:48 +0200 (Wed, 31 Mar 2010) $ Version: $Revision: 21985 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Inf...
Fix linker warnings in rendering tests
Fix linker warnings in rendering tests
C
bsd-3-clause
fmilano/mitk,NifTK/MITK,NifTK/MITK,NifTK/MITK,rfloca/MITK,danielknorr/MITK,nocnokneo/MITK,rfloca/MITK,MITK/MITK,nocnokneo/MITK,RabadanLab/MITKats,lsanzdiaz/MITK-BiiG,rfloca/MITK,danielknorr/MITK,lsanzdiaz/MITK-BiiG,fmilano/mitk,RabadanLab/MITKats,iwegner/MITK,fmilano/mitk,MITK/MITK,nocnokneo/MITK,lsanzdiaz/MITK-BiiG,rf...
73aef2d1d8a0fe417df1ab4a35029be74891ee37
src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
/************************************************************************** * * Copyright 2009 Artur Wyszynski <harakash@gmail.com> * Copyright 2013 Alexander von Gluck IV <kallisti5@unixzen.com> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated doc...
/************************************************************************** * * Copyright 2009 Artur Wyszynski <harakash@gmail.com> * Copyright 2013 Alexander von Gluck IV <kallisti5@unixzen.com> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated doc...
Add needed extern "C" to hgl winsys
winsys/hgl: Add needed extern "C" to hgl winsys Reviewed-by: Brian Paul <3cb4e1df5ec4da2c7c4af7c52cec8cf340a55a10@vmware.com>
C
mit
metora/MesaGLSLCompiler,metora/MesaGLSLCompiler,metora/MesaGLSLCompiler
7f728dc9ea358c56458b5145bc8e78006fca190d
build/config/ios/WeaveProjectConfig.h
build/config/ios/WeaveProjectConfig.h
/* * * Copyright (c) 2016-2017 Nest Labs, Inc. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
/* * * Copyright (c) 2016-2017 Nest Labs, Inc. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
Disable unsupported Inet configuration breaking iOS integration.
Disable unsupported Inet configuration breaking iOS integration. For a yet-unknown reason, trying to read the TCP Tx buffer with ioctl on iOS fails with ENXIO. Since this code was written primarily for embedded Linux platforms, and is not needed for mobile clients, this CL turns off that bit of code for iOS builds.
C
apache-2.0
openweave/openweave-core,openweave/openweave-core,openweave/openweave-core,openweave/openweave-core,openweave/openweave-core,openweave/openweave-core