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
2638a56fd95710ec7f68131dfefa233a7bdab94f
egroot/src/bits/leadingzeros-cortexm+.h
egroot/src/bits/leadingzeros-cortexm+.h
// +build cortexm3 cortexm4 cortexm4f static inline uint bits$leadingZeros32(uint32 u) { uint n; asm volatile ("clz %0, %1" : "=r" (n) : "r" (u)); return n; } static inline uint bits$leadingZerosPtr(uintptr u) { uint n; asm volatile ("clz %0, %1" : "=r" (n) : "r" (u)); return n; } static inline uint bits$leadi...
// +build cortexm3 cortexm4 cortexm4f uint bits$leadingZeros32(uint32 u) { uint n; asm volatile ("clz %0, %1":"=r" (n):"r"(u)); return n; } uint bits$leadingZerosPtr(uintptr u) { uint n; asm volatile ("clz %0, %1":"=r" (n):"r"(u)); return n; } uint bits$leadingZeros64(uint64 u) { uint n; asm volatile ("clz %...
Remove "static inline" from C code.
bits: Remove "static inline" from C code.
C
bsd-3-clause
ziutek/emgo,ziutek/emgo,ziutek/emgo,ziutek/emgo
c1c1a4f9cd97d81cca1306ebb6c3099313fd9ea2
libc/sysdeps/linux/arm/aeabi_memclr.c
libc/sysdeps/linux/arm/aeabi_memclr.c
/* Copyright (C) 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 Licen...
/* Copyright (C) 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 Licen...
Use memset instead of bzero
Use memset instead of bzero
C
lgpl-2.1
foss-for-synopsys-dwc-arc-processors/uClibc,majek/uclibc-vx32,m-labs/uclibc-lm32,ysat0/uClibc,waweber/uclibc-clang,hjl-tools/uClibc,atgreen/uClibc-moxie,wbx-github/uclibc-ng,brgl/uclibc-ng,ffainelli/uClibc,kraj/uClibc,klee/klee-uclibc,foss-xtensa/uClibc,mephi42/uClibc,gittup/uClibc,brgl/uclibc-ng,mephi42/uClibc,czankel...
965d247d41bffde43572c81575a0915f53fa9b04
phraser/cc/analysis/analysis_options.h
phraser/cc/analysis/analysis_options.h
#ifndef CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #define CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #include <cstddef> struct AnalysisOptions { AnalysisOptions() : destutter_max_consecutive(3), replace_html_entities(true) {} // Preprocessing. size_t destutter_max_consecutive; // Tokenization. bo...
#ifndef CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #define CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #include <cstddef> struct AnalysisOptions { AnalysisOptions() : track_index_translation(true), destutter_max_consecutive(3), track_chr2drop(true), replace_html_entities(true) {} // General flag...
Add track_* flags to analysis options to let caller strip it down.
Add track_* flags to analysis options to let caller strip it down.
C
mit
knighton/phraser,escherba/phraser,knighton/phraser,escherba/phraser,knighton/phraser,escherba/phraser,knighton/phraser,escherba/phraser
ff6f5a4817adb4e2f2220a65478e50a89d4090b1
src/readstat_iconv.h
src/readstat_iconv.h
#include <iconv.h> #ifdef WIN32 typedef const char ** readstat_iconv_inbuf_t; #else typedef char ** readstat_iconv_inbuf_t; #endif typedef struct readstat_charset_entry_s { int code; char name[32]; } readstat_charset_entry_t;
#include <iconv.h> #ifdef WINICONV_CONST typedef const char ** readstat_iconv_inbuf_t; #else typedef char ** readstat_iconv_inbuf_t; #endif typedef struct readstat_charset_entry_s { int code; char name[32]; } readstat_charset_entry_t;
Fix iconv warnings on MinGW
Fix iconv warnings on MinGW
C
mit
WizardMac/ReadStat,ivarref/ReadStat,ivarref/ReadStat,WizardMac/ReadStat
54b6878579d2244eead688151cc0b5418fd512dd
include/adapters/libuvadapter.h
include/adapters/libuvadapter.h
// Author: Hong Jen-Yee (PCMan) (pcman.hong@appier.com) #ifndef __libredisCluster_adapters_libuvadapter_h__ #define __libredisCluster_adapters_libuvadapter_h__ #include "adapter.h" // for Adapter extern "C" { #include <hiredis/adapters/libuv.h> // for redisLibeventAttach() } namespace RedisCluster { // Wrap h...
Add hiredis libuv adapter support.
Add hiredis libuv adapter support.
C
bsd-3-clause
shinberg/cpp-hiredis-cluster
c07827f2d82d7eaa18ab5945b6fe44589650bbc9
include/dt-bindings/clock/kinetis_sim.h
include/dt-bindings/clock/kinetis_sim.h
/* * Copyright (c) 2017, NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_ #define KINETIS_SIM_CORESYS_CLK 0 #define KINETIS_SIM_PLATFORM_CLK 1 #define KINETIS_SIM_BUS_CLK 2 #define KINETIS_SIM_LPO_CLK ...
/* * Copyright (c) 2017, NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_ #define KINETIS_SIM_CORESYS_CLK 0 #define KINETIS_SIM_PLATFORM_CLK 1 #define KINETIS_SIM_BUS_CLK 2 #define KINETIS_SIM_FAST_PERI...
Add support for fast peripheral clock in mcux sim driver
clock_control: Add support for fast peripheral clock in mcux sim driver Adds support for getting the fast peripheral clock frequency in the mcux sim driver. Signed-off-by: Filip Brozovic <9e406e4eada0a466898ca20f2c830a2e8d7bc324@gmail.com>
C
apache-2.0
Vudentz/zephyr,galak/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,nashif/zephyr,galak/zephyr,finikorg/zephyr,galak/zephyr,galak/zephyr,Vudentz/zephyr,nashif/zephyr,finikorg/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/ze...
3da1a1dde53b3efeb54ab1c68fba7d85dac4ac20
utils/prompt.h
utils/prompt.h
#ifndef _WISH_PROMPT #define _WISH_PROMPT /* * The wish shell prompt has its own format characters, much like how bash, * zsh, fish, and ksh all have their own formatting characters. * * %u - The username of the current user * %h - The hostname * %d~n - The top n levels of the working directory. ...
#ifndef _WISH_PROMPT #define _WISH_PROMPT /* * The wish shell prompt has its own format characters, much like how bash, * zsh, fish, and ksh all have their own formatting characters. * * %u - The username of the current user * %h - The hostname * %d~n - The top n levels of the working directory. ...
Fix HOST_NAME_MAX not found error on Mac OSX. POSIX compliance pls.
Fix HOST_NAME_MAX not found error on Mac OSX. POSIX compliance pls.
C
mit
elc1798/wish
b491a3e6156e450810e3d9a8c2d59365606dd208
hal2.h
hal2.h
#ifndef HAL2_H #define HAL2_H // Mechanical constants extern int const MAIN_MOTOR_PWM_TOP = 255; extern int const MAIN_MOTOR_BRAKE_SPEED = 120; extern int const MAIN_MOTOR_MIN_SPEED = 150; extern int const MAIN_MOTOR_MED_SPEED = 254; extern int const MAIN_MOTOR_MAX_SPEED = 255; extern int const MAGNET_OPEN_WAIT = 5; ...
#ifndef HAL2_H #define HAL2_H // Mechanical constants extern int const MAIN_MOTOR_PWM_TOP = 255; extern int const MAIN_MOTOR_BRAKE_SPEED = 120; extern int const MAIN_MOTOR_MIN_SPEED = 150; extern int const MAIN_MOTOR_MED_SPEED = 254; extern int const MAIN_MOTOR_MAX_SPEED = 255; extern int const MAGNET_OPEN_WAIT = 5; ...
Remove functions that are private.
Remove functions that are private.
C
unlicense
plzz/ovisysteemi,plzz/ovisysteemi
637d0f278459aa1130ab96c063fcaf0611507e47
main.c
main.c
#include <stdio.h> #include <assert.h> #include "api.h" #include "lib/math.c" #include "lib/test.c" static jack_state_t* state; static intptr_t jack_fib(intptr_t n) { jack_new_integer(state, n); jack_function_call(state, 1, 1); return jack_get_integer(state, -1); } int main() { for (int j = 0; j < 0x1; ++j)...
#include <stdio.h> #include <assert.h> #include "api.h" #include "lib/math.c" #include "lib/test.c" static jack_state_t* state; static intptr_t jack_fib(intptr_t n) { jack_new_integer(state, n); jack_function_call(state, 1, 1); return jack_get_integer(state, -1); } int main() { state = jack_new_state(20); ...
Tweak for benchmark. fib(0-91) 1987925/second
Tweak for benchmark. fib(0-91) 1987925/second
C
mit
creationix/jack-lang,creationix/jack-lang
6eba7a9e41ca3e5fac9c3b5feb74af9f37774987
apps/examples/kalman_demo/params.c
apps/examples/kalman_demo/params.c
#include <systemlib/param/param.h> /*PARAM_DEFINE_FLOAT(NAME,0.0f);*/ PARAM_DEFINE_FLOAT(KF_V_GYRO, 1.0f); PARAM_DEFINE_FLOAT(KF_V_ACCEL, 1.0f); PARAM_DEFINE_FLOAT(KF_R_MAG, 1.0f); PARAM_DEFINE_FLOAT(KF_R_GPS_VEL, 1.0f); PARAM_DEFINE_FLOAT(KF_R_GPS_POS, 5.0f); PARAM_DEFINE_FLOAT(KF_R_GPS_ALT, 5.0f); PARAM_DEFINE_FLOAT...
#include <systemlib/param/param.h> /*PARAM_DEFINE_FLOAT(NAME,0.0f);*/ PARAM_DEFINE_FLOAT(KF_V_GYRO, 0.008f); PARAM_DEFINE_FLOAT(KF_V_ACCEL, 1.0f); PARAM_DEFINE_FLOAT(KF_R_MAG, 1.0f); PARAM_DEFINE_FLOAT(KF_R_GPS_VEL, 1.0f); PARAM_DEFINE_FLOAT(KF_R_GPS_POS, 5.0f); PARAM_DEFINE_FLOAT(KF_R_GPS_ALT, 5.0f); PARAM_DEFINE_FLO...
Fix gyro measurement noise variance
Fix gyro measurement noise variance
C
bsd-3-clause
mcgill-robotics/Firmware,Aerotenna/Firmware,darknight-007/Firmware,dagar/Firmware,krbeverx/Firmware,PX4/Firmware,mcgill-robotics/Firmware,PX4/Firmware,jlecoeur/Firmware,mje-nz/PX4-Firmware,PX4/Firmware,PX4/Firmware,jlecoeur/Firmware,Aerotenna/Firmware,acfloria/Firmware,krbeverx/Firmware,acfloria/Firmware,krbeverx/Firmw...
8114b3e7e5438de48b5cf1c1e2454debb6cf96cc
src/readimages.c
src/readimages.c
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <arpa/inet.h> #include "idx.h" int main(int argc, char **argv){ if(argc<2){ printf("Usage: \n"); printf("readlabels t10k-labels-idx1-ubyte \n"); exit(1); } char *slabelfname = argv[1]; IDX1_DATA idxdata; if(!fr...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <arpa/inet.h> #include "idx.h" int main(int argc, char **argv){ if(argc<2){ printf("Usage: \n"); printf("readimages t10k-images-idx3-ubyte \n"); exit(1); } char *slabelfname = argv[1]; IDX3_DATA idxdata; if(!fr...
Implement a simple ASCII text image dumper.
Implement a simple ASCII text image dumper.
C
mit
spytheman/MNIST-idx1-and-idx3-file-readers
8422e5d1b414ee3a5ca6813e064fb55ea7a8c5bd
src/udbm_stubs.h
src/udbm_stubs.h
#ifndef UDBM_STUBS_H_ #define UDBM_STUBS_H_ #include <vector> typedef std::vector<int> carray_t; #define get_cvector(x) ((carray_t*)Data_custom_val(x)) #define get_dbm_ptr(x) static_cast<dbm_t*>(Data_custom_val(x)) #endif // UDBM_STUBS_H_
#ifndef UDBM_STUBS_H_ #define UDBM_STUBS_H_ #include <vector> typedef std::vector<int> carray_t; #define get_cvector(x) ((carray_t*)Data_custom_val(x)) #define get_dbm_ptr(x) static_cast<dbm_t*>(Data_custom_val(x)) bool dbm_closure_leq(const raw_t * const dr1, const raw_t * const dr2, cindex_t dim, ...
Make closure inclusion test visible (to be used from the priced zone part).
Make closure inclusion test visible (to be used from the priced zone part).
C
agpl-3.0
osankur/udbml,osankur/udbml,osankur/udbml
59501bf64fd51722d70cc3c7682ef30efe057e36
models/generic/Generic_FuncDriver.h
models/generic/Generic_FuncDriver.h
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Add a generic driver model.
Add a generic driver model.
C
bsd-3-clause
hsu/chrono-vehicle,hsu/chrono-vehicle,hsu/chrono-vehicle
0938cfe3dc0a498bbf3ce26dfe6c47d4d68025b5
libtock/internal/nonvolatile_storage.h
libtock/internal/nonvolatile_storage.h
#pragma once #include "tock.h" #ifdef __cplusplus extern "C" { #endif #define DRIVER_NUM_NONVOLATILE_STORAGE 0x1b int nonvolatile_storage_internal_read_done_subscribe(subscribe_cb cb, void *userdata); int nonvolatile_storage_internal_write_done_subscribe(subscribe_cb cb, void *userdata); int nonvolatile_storage_in...
#pragma once #include "tock.h" #define DRIVER_NUM_NONVOLATILE_STORAGE 0x50001 #ifdef __cplusplus extern "C" { #endif int nonvolatile_storage_internal_read_done_subscribe(subscribe_cb cb, void *userdata); int nonvolatile_storage_internal_write_done_subscribe(subscribe_cb cb, void *userdata); int nonvolatile_storage...
Revert "weird issue where flash only works when DRIVER_NUM set to 27, hardcoded somewhere?"
Revert "weird issue where flash only works when DRIVER_NUM set to 27, hardcoded somewhere?" This reverts commit 3431f4ed857afb9376a120334e1521aa9a71d483.
C
apache-2.0
tock/libtock-c,tock/libtock-c,tock/libtock-c
d3fabf05ee40f4a75d71aa7496819b75171d4c95
src/command1.c
src/command1.c
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include "firebase.h" #include "serial.h" #include "gpio.h" #define _USE_SERIAL_ #ifdef _USE_SERIAL_ void (*send_command)(bool, int) = send_command_serial; void (*init_sender)() = init_sender_serial; #else void (*send_command)(bool, ...
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include "firebase.h" #include "serial.h" #include "gpio.h" bool useSerial = true; void init_sender() { if (useSerial) { init_sender_serial(); } else { init_sender_gpio(); } } void send_command(bool isOn, int device) { i...
Switch to runtime library choice instead of compile time.
Switch to runtime library choice instead of compile time.
C
mit
maciel310/command1-openwrt,maciel310/command1-openwrt
f536368be8729154db369cc785fd5477e42c950e
test/FrontendC/wchar-const.c
test/FrontendC/wchar-const.c
// RUN: %llvmgcc -S %s -o - | grep {constant \\\[18 x} | grep { 84, } // This should pass for any endianness combination of host and target. #include <ctype.h> extern void foo(const wchar_t* p); int main (int argc, const char * argv[]) { foo(L"This is some text"); return 0; }
// RUN: %llvmgcc -S %s -o - | grep {constant \\\[18 x} | grep { 84, } // This should pass for any endianness combination of host and target. #include <wchar.h> extern void foo(const wchar_t* p); int main (int argc, const char * argv[]) { foo(L"This is some text"); return 0; }
Use wchar.h to get wchar_t, not ctype.h.
Use wchar.h to get wchar_t, not ctype.h. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@78703 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/ll...
6b57b159709dcb4d53e64738f2d1f73b36e41601
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-k4"
/* * 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-k5"
Update driver version to 5.02.00-k5
[SCSI] qla4xxx: Update driver version to 5.02.00-k5 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: Ravi Anand <399b6871085291e2c1578e38a71f59e8d20fafc0@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k...
0eebf9b5d2da61f84cddd0ec2bb41be93f8fc82b
arch/powerpc/include/asm/swab.h
arch/powerpc/include/asm/swab.h
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef _ASM_POWERPC_SWAB_H #define _ASM_POWERPC_SWAB_H #inc...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef _ASM_POWERPC_SWAB_H #define _ASM_POWERPC_SWAB_H #inc...
Remove unused st_le*() and ld_le* functions
powerpc: Remove unused st_le*() and ld_le* functions The powerpc specific st_le*() and ld_le*() functions in arch/powerpc/asm/swab.h no longer have any users. They are also misleadingly named, since they always byteswap, even on a little-endian host. This patch removes them. Signed-off-by: David Gibson <aa743a0aaec...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
20fd5a0c28f49618218d3c8d43c742fbab68edf0
src/host/os_rmdir.c
src/host/os_rmdir.c
/** * \file os_rmdir.c * \brief Remove a subdirectory. * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ #include <stdlib.h> #include "premake.h" int os_rmdir(lua_State* L) { int z; const char* path = luaL_checkstring(L, 1); #if PLATFORM_WINDOWS z = RemoveDirectory(path); #else z...
/** * \file os_rmdir.c * \brief Remove a subdirectory. * \author Copyright (c) 2002-2013 Jason Perkins and the Premake project */ #include <stdlib.h> #include "premake.h" int os_rmdir(lua_State* L) { int z; const char* path = luaL_checkstring(L, 1); #if PLATFORM_WINDOWS z = RemoveDirectory(path); #else z...
Fix error result handling in os.rmdir()
Fix error result handling in os.rmdir()
C
bsd-3-clause
premake/premake-4.x,soundsrc/premake-stable,ryanjmulder/premake-4.x,lizh06/premake-4.x,ryanjmulder/premake-4.x,soundsrc/premake-stable,premake/premake-4.x,lizh06/premake-4.x,premake/premake-4.x,soundsrc/premake-stable,ryanjmulder/premake-4.x,premake/premake-4.x,soundsrc/premake-stable,lizh06/premake-4.x,lizh06/premake-...
98997692a6a8bf1ae6bbe15dd18ec4e27e0e6fcf
risky/risky.h
risky/risky.h
#ifndef SAXBOPHONE_RISKY_RISKY_H #define SAXBOPHONE_RISKY_RISKY_H #include <stdint.h> #ifdef __cplusplus extern "C"{ #endif typedef struct version_t { uint8_t major; uint8_t minor; uint8_t patch; } version_t; extern const version_t VERSION; #ifdef __cplusplus } // extern "C" #endif // end of header f...
#ifndef SAXBOPHONE_RISKY_RISKY_H #define SAXBOPHONE_RISKY_RISKY_H #include <stdint.h> #ifdef __cplusplus extern "C"{ #endif // struct for representing version of RISKY typedef struct version_t { uint8_t major; uint8_t minor; uint8_t patch; } version_t; // enum for storing information about the error st...
Add a function return status enum
Add a function return status enum
C
mpl-2.0
saxbophone/risky
ceb069acb461dd7da080303e29b2e8d916487cb8
cc1/tests/test018.c
cc1/tests/test018.c
/* name: TEST018 description: Basic test for arrays output: F1 G1 F1 main { - V2 M #4 V3 V2 #2 A4 V3 arr A6 P p A8 P q V9 I #4 A10 V9 v A6 A4 'P :P A8 A4 'P #P4 +P #P3 +P :P A4 'P #P4 +P #P3 +P @M #M2 :M A10 'P @I #I2 :I j L12 A4 'P #P4 +P #P3 +P @M MI #I2 =I yI #I1 L12 j L13 A6 #P4 +P #P3 +P @M MI #I2 =I yI #I...
Add basic test for arrays
Add basic test for arrays
C
mit
8l/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc
ed9f4938ae6215f20ff31d4b44545a8c0efe859f
KSPTableSection.h
KSPTableSection.h
// // KPTableSection.h // KSPFetchedResultsController // // Created by Konstantin Pavlikhin on 05.09.14. // Copyright (c) 2015 Konstantin Pavlikhin. All rights reserved. // #import <Foundation/Foundation.h> // * * *. @class NSManagedObject; // * * *. @interface KSPTableSection : NSObject - (nullable instancet...
// // KPTableSection.h // KSPFetchedResultsController // // Created by Konstantin Pavlikhin on 05.09.14. // Copyright (c) 2015 Konstantin Pavlikhin. All rights reserved. // #import <Foundation/Foundation.h> // * * *. @class NSManagedObject; // * * *. @interface KSPTableSection : NSObject - (nullable instancet...
Add a missing 'nonatomic' keyword in a property declaration.
Add a missing 'nonatomic' keyword in a property declaration.
C
mit
konstantinpavlikhin/KSPFetchedResultsController
bd0737eb713fae5ca536488b0b6c327f71cf6cf0
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(); static DataStore& get(); // Modifying methods v...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <stack> #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Mod...
Add member variable: transaction stack
Add member variable: transaction stack
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
54fb750d8389febff3fa254c4dd5d815b7a60f69
Nimble/Nimble.h
Nimble/Nimble.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
#import <Foundation/Foundation.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; #import "DSL.h" #import "NMBExceptionCapture.h"
Add Objective-C headers to umbrella header to make project compile
Add Objective-C headers to umbrella header to make project compile
C
apache-2.0
DanielAsher/Nimble,AnthonyMDev/Nimble,abbeycode/Nimble,AnthonyMDev/Nimble,twobitlabs/Nimble,twobitlabs/Nimble,abbeycode/Nimble,feinstruktur/Nimble,phatblat/Nimble,AnthonyMDev/Nimble,Quick/Nimble,ashfurrow/Nimble,DanielAsher/Nimble,feinstruktur/Nimble,DanielAsher/Nimble,ashfurrow/Nimble,jeffh/Nimble,abbeycode/Nimble,mis...
19b1e3ebe513855cae870da9a2133f99e1bb14b8
src/includepriv/xmmspriv/xmms_collsync.h
src/includepriv/xmmspriv/xmms_collsync.h
/* XMMS2 - X Music Multiplexer System * Copyright (C) 2003-2009 XMMS2 Team * * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!! * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundat...
/* XMMS2 - X Music Multiplexer System * Copyright (C) 2003-2009 XMMS2 Team * * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!! * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundat...
Make function declarations proper prototypes in collsync.h
OTHER: Make function declarations proper prototypes in collsync.h
C
lgpl-2.1
theefer/xmms2,six600110/xmms2,six600110/xmms2,mantaraya36/xmms2-mantaraya36,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,dreamerc/xmms2,six600110/xmms2,dreamerc/xmms2,theefer/xmms2,chrippa/xmms2,krad-radio/xmms2-krad,xmms2/xmms2-stable,krad-radio/xmms2-krad,dreamerc/xmms2,six600110/xmms2,xmms2/xmms2-stable,dreamerc/xmms...
a615df7468af8315894a91bd5758699abbfcc97c
src/Mapper1.h
src/Mapper1.h
#ifndef MAPPER_1_H #define MAPPER_1_H #include <Mapper.h> enum PrgMode { PRG_32KB, FIX_FIRST_16KB, FIX_LAST_16KB, }; enum ChrMode { CHR_8KB, CHR_4KB, }; class Mapper1: public Mapper { public: uint8_t readPrg(uint16_t addr); void writePrg(uint16_t addr, uint8_t value); uint8_t readChr...
#ifndef MAPPER_1_H #define MAPPER_1_H #include <Mapper.h> enum PrgMode { PRG_32KB, FIX_FIRST_16KB, FIX_LAST_16KB, }; enum ChrMode { CHR_8KB, CHR_4KB, }; class Mapper1: public Mapper { public: uint8_t readPrg(uint16_t addr); void writePrg(uint16_t addr, uint8_t value); uint8_t readChr...
Update mapper 1 default mapping on boot
Update mapper 1 default mapping on boot
C
mit
scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES
63b675bb73dc94a45c6049795cebd34ae0c66185
ash/shell/example_factory.h
ash/shell/example_factory.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 ASH_SHELL_EXAMPLE_FACTORY_H_ #define ASH_SHELL_EXAMPLE_FACTORY_H_ #pragma once namespace app_list { class AppListModel; class AppListViewDele...
// 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 ASH_SHELL_EXAMPLE_FACTORY_H_ #define ASH_SHELL_EXAMPLE_FACTORY_H_ #pragma once namespace app_list { class AppListViewDelegate; } namespace v...
Remove unused declaration of BuildAppListModel() function.
ash: Remove unused declaration of BuildAppListModel() function. R=xiyuan@chromium.org TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10377097 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@136437 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
Jonekee/chromium.src,chuan9/chromium-crosswalk,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,dednal/chromium.src,anirudhSK/chromium,Jone...
053a858efa46c9ab86363b271374ec02ad2af753
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/code-patching.c
/* * Copyright 2008 Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ ...
/* * Copyright 2008 Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ ...
Make create_branch() return errors if the branch target is too large
powerpc: Make create_branch() return errors if the branch target is too large If you pass a target value to create_branch() which is more than 32MB - 4, or - 32MB away from the branch site, then it's impossible to create an immediate branch. The current code doesn't check, which will lead to us creating a branch to s...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
0a203a4ce1787acb49db6df8f5c064e9243db130
arch/x86_64/kernel/bugs.c
arch/x86_64/kernel/bugs.c
/* * arch/x86_64/kernel/bugs.c * * Copyright (C) 1994 Linus Torvalds * Copyright (C) 2000 SuSE */ #include <linux/kernel.h> #include <linux/init.h> #include <asm/alternative.h> #include <asm/processor.h> void __init check_bugs(void) { identify_cpu(&boot_cpu_data); mtrr_bp_init(); #if !defined(CONFIG_SMP) ...
/* * arch/x86_64/kernel/bugs.c * * Copyright (C) 1994 Linus Torvalds * Copyright (C) 2000 SuSE */ #include <linux/kernel.h> #include <linux/init.h> #include <asm/alternative.h> #include <asm/processor.h> #include <asm/mtrr.h> void __init check_bugs(void) { identify_cpu(&boot_cpu_data); mtrr_bp_init(); #if...
Add asm/mtrr.h include for some builds
x86_64: Add asm/mtrr.h include for some builds The earlier change to call the bp mtrr init from bugs.c broke on some configurations due to missing includes. Noticed by "Avuton Olrich" <avuton@gmail.com> Signed-off-by: Andi Kleen <0474aee45985f5ae829f53849df476200e876990@suse.de> Signed-off-by: Linus Torvalds <69652c...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
5f28897d2827a924b746c4d85e35cf85810b8951
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k7"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k8"
Update driver version to 5.03.00-k8
[SCSI] qla4xxx: Update driver version to 5.03.00-k8 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k...
faa2113220ccdab128891374df1cb50fb778be21
fpsgame/gui/external_libraries/tinygettext.h
fpsgame/gui/external_libraries/tinygettext.h
/* Copyright (c) 2013 Wildfire Games * * 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...
Bring in the TinyGettext header file.
Bring in the TinyGettext header file.
C
mit
mrlitong/Game-Engine-Development-Usage,mrlitong/fpsgame,mrlitong/fpsgame,mrlitong/fpsgame
5524470b2cc0a73bb3422b3bcb0749df8653f210
ann.c
ann.c
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[ROWS - 3][HIDDEN]; int output[O...
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[ROWS - 2][HIDDEN]; int output[O...
Fix number of hidden rows in Neurons struct
Fix number of hidden rows in Neurons struct
C
mit
tysonzero/c-ann
24e67da465596d90e2af1865631fc2736c385e14
mudlib/mud/home/Game/lib/action.c
mudlib/mud/home/Game/lib/action.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2013 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) 2013 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...
Make emit explicit inherit for now
Make emit explicit inherit for now
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
1ab47cc1ffa4acaf69f8f7e0ddb104874f74aaec
AutoPkgr/Utility/LGHTTPRequest.h
AutoPkgr/Utility/LGHTTPRequest.h
// // LGHTTPRequest.h // AutoPkgr // // Created by Eldon Ahrold on 8/9/14. // Copyright 2014-2015 The Linde Group, 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 // // h...
// // LGHTTPRequest.h // AutoPkgr // // Created by Eldon Ahrold on 8/9/14. // Copyright 2014-2015 The Linde Group, 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 // // h...
Remove unused method from header.
Remove unused method from header.
C
apache-2.0
ftiff/autopkgr,ftiff/autopkgr,lindegroup/autopkgr,lindegroup/autopkgr,ftiff/autopkgr,HyppHere/autopkgr,lindegroup/autopkgr,HyppHere/autopkgr,lindegroup/autopkgr,HyppHere/autopkgr,lindegroup/autopkgr
43d3a4627e2db021b0195c101f69d2f61836313a
libswfdec/swfdec_file_reference_list.c
libswfdec/swfdec_file_reference_list.c
/* Swfdec * Copyright (C) 2007 Pekka Lampila <pekka.lampila@iki.fi> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any la...
/* Swfdec * Copyright (C) 2007 Pekka Lampila <pekka.lampila@iki.fi> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any la...
Fix stub message having a wrong name
Fix stub message having a wrong name
C
lgpl-2.1
freedesktop-unofficial-mirror/swfdec__swfdec,freedesktop-unofficial-mirror/swfdec__swfdec,freedesktop-unofficial-mirror/swfdec__swfdec,mltframework/swfdec,mltframework/swfdec
07d9b6ad059cc77b1e892cc6d992f9556a451362
interpreter/apply.h
interpreter/apply.h
/* * tré – Copyright (c) 2005–2007,2009,2012 Sven Michael Klose <pixel@copei.de> */ #ifndef TRE_APPLY_H #define TRE_APPLY_H extern treptr function_arguments (treptr); extern treptr trefuncall (treptr func, treptr args); extern treptr trebuiltin_call_compiled (void * fun, treptr args); extern bool trebuiltin_is_...
/* * tré – Copyright (c) 2005–2007,2009,2012 Sven Michael Klose <pixel@copei.de> */ #ifndef TRE_APPLY_H #define TRE_APPLY_H extern treptr function_arguments (treptr); extern treptr trefuncall (treptr func, treptr args); extern treptr trebuiltin_call_compiled (void * fun, treptr args); extern bool trebuiltin_is_...
Fix declarations for file-by-file compile.
Fix declarations for file-by-file compile.
C
mit
SvenMichaelKlose/tre,SvenMichaelKlose/tre,SvenMichaelKlose/tre
e63d952e927f0da8a29984f47a3c8d828f43d393
src/api-mock.h
src/api-mock.h
#ifndef APIMOCK_H #define APIMOCK_H #include "core/server.h" #include "core/exceptions.h" #include "http/requestdata.h" #endif
#ifndef APIMOCK_H #define APIMOCK_H #include "core/server.h" #include "core/exceptions.h" #include "http/requestdata.h" #include "http/requestdata.h" #include "http/statuscodes.h" #endif
Include request data and status codes
Include request data and status codes
C
mit
Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock
c218da07d8d0178d66620c0778d846f439b85755
cvrp/customer.h
cvrp/customer.h
#ifndef VRPSOLVER_CUSTOMER_H #define VRPSOLVER_CUSTOMER_H #include <utility> namespace VrpSolver { class Customer { public: Customer(std::size_t id, std::size_t demand) : id_(id), demand_(demand), vertex_(std::make_pair(0, 0)) { } Customer(std::size_t id, std::size_t dema...
#ifndef VRPSOLVER_CUSTOMER_H #define VRPSOLVER_CUSTOMER_H #include <utility> namespace VrpSolver { class Customer { public: Customer(std::size_t id, std::size_t demand) : id_(id), demand_(demand), vertex_(std::make_pair(0, 0)) { } Customer(std::size_t id, std::size_t dema...
Add operator== and != to Customer class
Add operator== and != to Customer class 顧客の同値性は顧客番号のみに依存するようにした 顧客番号は同じだが、需要や座標が異なる顧客は存在しないと 考えたからである.
C
mit
U-MA/cvrp,U-MA/cvrp
2ae3a03e0b8085434177658c7b880f2aa58e0368
grantlee_core_library/template.h
grantlee_core_library/template.h
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #ifndef TEMPLATE_H #define TEMPLATE_H #include "context.h" #include "node.h" #include "grantlee_export.h" class GRANTLEE_EXPORT Template //: public QObject { // Q_OBJECT public: Template(const QString &templateString, QStringList dirs ); QStrin...
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #ifndef TEMPLATE_H #define TEMPLATE_H #include "context.h" #include "node.h" #include "grantlee_export.h" class GRANTLEE_EXPORT Template //: public QObject { // Q_OBJECT public: Template(const QString &templateString, QStringList dirs ); QStrin...
Make the TemplateLoader constructor private for the Singleton pattern.
Make the TemplateLoader constructor private for the Singleton pattern.
C
lgpl-2.1
simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee
a506cf5cc7fe032824c0f52fde755a497749f9aa
test/Driver/ios-version-min.c
test/Driver/ios-version-min.c
// REQUIRES: x86-registered-target // REQUIRES: arm-registered-target // RUN: %clang -target i386-apple-darwin10 -miphonesimulator-version-min=7.0 -arch i386 -S -o - %s | FileCheck %s // RUN: %clang -target i386-apple-darwin10 -miphoneos-version-min=7.0 -arch armv7s -S -o - %s | FileCheck %s int main() { return 0; } /...
// REQUIRES: x86-registered-target // REQUIRES: arm-registered-target // RUN: %clang -target i386-apple-darwin10 -miphonesimulator-version-min=7.0 -arch i386 -S -o - %s | FileCheck %s // RUN: %clang -target armv7s-apple-darwin10 -miphoneos-version-min=7.0 -arch armv7s -S -o - %s | FileCheck %s int main() { return 0; }...
Fix the test added in r240710.
Fix the test added in r240710. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@240718 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
f1dc24d53e9e91cf795f05751eeb7e220c7c15e1
include/asm-arm/arch-ebsa110/uncompress.h
include/asm-arm/arch-ebsa110/uncompress.h
/* * linux/include/asm-arm/arch-ebsa110/uncompress.h * * Copyright (C) 1996,1997,1998 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/seria...
/* * linux/include/asm-arm/arch-ebsa110/uncompress.h * * Copyright (C) 1996,1997,1998 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/seria...
Fix incorrect serial port address
[ARM] ebsa110: Fix incorrect serial port address Signed-off-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
fe82904d985794cb4e3b2704ffe472fe503c6ea4
testmud/mud/home/Test/initd.c
testmud/mud/home/Test/initd.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...
Make test subsystem load itself properly
Make test subsystem load itself properly
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
36d330152027f18e2bca73c5ad74d2e5a2c2b7a3
test2/bitfields/anon_struct.c
test2/bitfields/anon_struct.c
// RUN: %ocheck 0 %s struct bit { int bit : 1; }; struct bits { struct bit; // `second' is not packed into this unsigned second : 1; }; main() { struct bits bs; bs.bit = 1; bs.second = 1; if(0[(int *)&bs] != 1) return 1; if(1[(int *)&bs] != 1) // ensure it's packed to an int spacing return 1; return ...
Test for bitfields separated by an anonymous struct
Test for bitfields separated by an anonymous struct
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
a17484601e97ba856c8130d2d98a7055c0fd5f8c
src/Core/Command/CommandFactory.h
src/Core/Command/CommandFactory.h
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
Remove nonstandard enum forward decl.
Remove nonstandard enum forward decl.
C
mit
moritzdannhauer/SCIRunGUIPrototype,jcollfont/SCIRun,collint8/SCIRun,ajanson/SCIRun,jessdtate/SCIRun,collint8/SCIRun,jcollfont/SCIRun,jcollfont/SCIRun,collint8/SCIRun,ajanson/SCIRun,jessdtate/SCIRun,jessdtate/SCIRun,jcollfont/SCIRun,jcollfont/SCIRun,moritzdannhauer/SCIRunGUIPrototype,moritzdannhauer/SCIRunGUIPrototype,c...
c5238e0a4c6751f7c0965cea1e17fa3e1437402d
example/ex-algo03.c
example/ex-algo03.c
#include "m-dict.h" #include "m-array.h" #include "m-algo.h" #include "m-string.h" DICT_DEF2(dict, string_t, int) #define M_OPL_dict_t() DICT_OPLIST(dict, STRING_OPLIST, M_DEFAULT_OPLIST) ARRAY_DEF(vector_int, int) #define M_OPL_vector_int_t() ARRAY_OPLIST(vector_int) #define start_with(pattern, item) ...
Add new example for algorithm
Add new example for algorithm
C
bsd-2-clause
P-p-H-d/mlib,P-p-H-d/mlib
f57b70c85808c0946e63d87f7947fb12d60fe23a
ext/pdfium_ruby/pdfium_ruby.h
ext/pdfium_ruby/pdfium_ruby.h
extern "C" { #include "ruby.h" } void Define_Document(); void Define_Page(); void Define_PageSet();
#ifndef __PDFIUM_RUBY_H__ #define __PDFIUM_RUBY_H__ extern "C" { #include "ruby.h" } // Inspired by https://github.com/jasonroelofs/rice/blob/1740a6d12c99fce8c21eda3c5385738318ab9172/rice/detail/ruby.hpp#L33-L37 // Casts C functions into a type that C++ is happy calling extern "C" typedef VALUE (*CPP_RUBY_METHOD_FU...
Create a type to cast Ruby's C functions to a thing C++ is happy with.
Create a type to cast Ruby's C functions to a thing C++ is happy with.
C
mit
documentcloud/pdfshaver,documentcloud/pdfshaver,documentcloud/pdfshaver
9d0b2a96595333aef5c4dd7ab0f15d9c663aee2a
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
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
1de801a7120e0e8a2c7614265880452a20a38a29
test/Driver/clang-g-opts.c
test/Driver/clang-g-opts.c
// RUN: %clang -S -v -o %t %s 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g 2>&1 | grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | grep -w -- -g
// RUN: %clang -S -v -o %t %s 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g 2>&1 | FileCheck %s // CHECK: -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o ...
Move a non portable test to FileCheck, from Jonathan Gray!
Move a non portable test to FileCheck, from Jonathan Gray! git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@155874 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/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,llvm-mirror/cl...
db7023ad3ced3ca487f1b197c01d67341fa3de95
mudlib/mud/home/Game/sys/verb/ooc/dgd.c
mudlib/mud/home/Game/sys/verb/ooc/dgd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add command to use it
Add command to use it
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
183498dc7eee80c5bc80262588e7675959400a26
include/slang/util/Enum.h
include/slang/util/Enum.h
//------------------------------------------------------------------------------ // Enum.h // Various enum utilities. // // File is under the MIT license; see LICENSE for details. //------------------------------------------------------------------------------ #pragma once #define UTIL_ENUM_ELEMENT(x) x, #define UTIL_...
//------------------------------------------------------------------------------ // Enum.h // Various enum utilities. // // File is under the MIT license; see LICENSE for details. //------------------------------------------------------------------------------ #pragma once #define UTIL_ENUM_ELEMENT(x) x, #define UTIL_...
Work around more GCC nonsense
Work around more GCC nonsense
C
mit
MikePopoloski/slang,MikePopoloski/slang
281bb6d66dd267368ce2bcb235b8aae24dfc17df
include/gpu/gl/SkMesaGLContext.h
include/gpu/gl/SkMesaGLContext.h
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
Fix undefined GLint in Mac builds
Fix undefined GLint in Mac builds git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@3736 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
metajack/skia,Cue/skia,Cue/skia,Cue/skia,Cue/skia,metajack/skia,mrobinson/skia,metajack/skia,metajack/skia,mrobinson/skia,mrobinson/skia,mrobinson/skia,mrobinson/skia
d2a0f73278eca431ec8af9e28ebf3f534c325b8e
include/error.h
include/error.h
#ifndef CPR_ERROR_H #define CPR_ERROR_H #include <string> #include "cprtypes.h" #include "defines.h" namespace cpr { enum class ErrorCode { OK = 0, CONNECTION_FAILURE, EMPTY_RESPONSE, HOST_RESOLUTION_FAILURE, INTERNAL_ERROR, INVALID_URL_FORMAT, NETWORK_RECEIVE_ERROR, NETWORK_SEND_FAI...
#ifndef CPR_ERROR_H #define CPR_ERROR_H #include <string> #include "cprtypes.h" #include "defines.h" namespace cpr { enum class ErrorCode { OK = 0, CONNECTION_FAILURE, EMPTY_RESPONSE, HOST_RESOLUTION_FAILURE, INTERNAL_ERROR, INVALID_URL_FORMAT, NETWORK_RECEIVE_ERROR, NETWORK_SEND_FAI...
Make static member method private
Make static member method private
C
mit
msuvajac/cpr,whoshuu/cpr,whoshuu/cpr,msuvajac/cpr,SuperV1234/cpr,SuperV1234/cpr,msuvajac/cpr,whoshuu/cpr,SuperV1234/cpr
35568f5347922fbd26b25b9a3c13b4a1dbfda1f5
ios/RNInstabugSDK.h
ios/RNInstabugSDK.h
// // RNInstabugSDK.h // RNInstabugSDK // // Created by Mark Miyashita on 10/11/16. // Copyright © 2016 Mark Miyashita. All rights reserved. // #import "RCTBridgeModule.h" #import "RCTConvert.h" #import "RCTUtils.h" @interface RNInstabugSDK : NSObject <RCTBridgeModule> @end
// // RNInstabugSDK.h // RNInstabugSDK // // Created by Mark Miyashita on 10/11/16. // Copyright © 2016 Mark Miyashita. All rights reserved. // #if __has_include("RCTBridgeModule.h") #import "RCTBridgeModule.h" #import "RCTConvert.h" #import "RCTUtils.h" #else #import "React/RCTBridgeModule.h" #import "...
Update import style to add RN 40.0+ compatibility
Update import style to add RN 40.0+ compatibility
C
mit
negativetwelve/react-native-instabug-sdk,negativetwelve/react-native-instabug-sdk,negativetwelve/react-native-instabug-sdk
402993af266c289f2003b2c02f74a25a9375d48b
cmd/built_in.c
cmd/built_in.c
#include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "cmd.h" void sh_exit() { exit(0); } void sh_pid() { printf("%d\n", getpid()); } void sh_ppid() { printf("%d\n", getppid()); } void sh_cd(cmd_args_t args) { char* dir; if (args.size == 1) { dir ...
#include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "cmd.h" void sh_exit() { exit(0); } void sh_pid() { printf("%d\n", getpid()); } void sh_ppid() { printf("%d\n", getppid()); } void sh_cd(cmd_args_t args) { char* dir; if (args.size == 1) { dir ...
Fix issue in options index.
Fix issue in options index.
C
mit
dgriffen/308-shell
e2ca3c802f97b5ee52f1d15d0e43097a5bef6187
src/OVAL/probes/unix/linux/rpm-helper.c
src/OVAL/probes/unix/linux/rpm-helper.c
/* * Copyright 2016 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 License, or (at your ...
/* * Copyright 2016 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 License, or (at your ...
Fix erro cb return value
probes/rpm: Fix erro cb return value We have to use RPMLOG_DEFAULT, because RPMLOG_EXIT cause exit of whole probe.
C
lgpl-2.1
redhatrises/openscap,OpenSCAP/openscap,mpreisler/openscap,jan-cerny/openscap,mpreisler/openscap,jan-cerny/openscap,ybznek/openscap,jan-cerny/openscap,ybznek/openscap,jan-cerny/openscap,OpenSCAP/openscap,Hexadorsimal/openscap,jan-cerny/openscap,OpenSCAP/openscap,ybznek/openscap,jan-cerny/openscap,Hexadorsimal/openscap,m...
1f32a4a1cc5942bcc8d99f006ee20e54ca67e220
include/utils.h
include/utils.h
/** * utils.h * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #ifndef GIT_STASHD_UTILS_H #define GIT_STASHD_UTILS_H #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include "common.h" #include "signals.h" #ifdef __APPLE__ #include <limits.h> #else #include <linux/limits.h> #endi...
/** * utils.h * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #ifndef GIT_STASHD_UTILS_H #define GIT_STASHD_UTILS_H #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include "common.h" #include "signals.h" #ifdef __APPLE__ #include <limits.h> #else #include <linux/limits.h> #endi...
Update get_dir, get_file decls, add get_pipe decl
Update get_dir, get_file decls, add get_pipe decl
C
mit
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
fdf89bc553c5fe5f9900658e8526cd398165d2f3
src/condor_includes/_condor_fix_types.h
src/condor_includes/_condor_fix_types.h
#ifndef FIX_TYPES_H #define FIX_TYPES_H #include <sys/types.h> /* The system include file defines this in terms of bzero(), but ANSI says we should use memset(). */ #if defined(OSF1) #undef FD_ZERO #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) #endif /* Various non-POSIX conforming files which depend o...
#ifndef FIX_TYPES_H #define FIX_TYPES_H // OSF/1 has this as an "unsigned long", but this is incorrect. It // is used by lseek(), and must be able to hold negative values. #if defined(OSF1) #define off_t _hide_off_t #endif #include <sys/types.h> #if defined(OSF1) #undef off_t typedef long off_t; #endif /* The sy...
Fix up definition of off_t for DecAlpha OSF/1 v1.3.
Fix up definition of off_t for DecAlpha OSF/1 v1.3.
C
apache-2.0
bbockelm/condor-network-accounting,htcondor/htcondor,zhangzhehust/htcondor,djw8605/condor,htcondor/htcondor,neurodebian/htcondor,clalancette/condor-dcloud,neurodebian/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,mambelli/osg-bosco-marco,djw8605/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,clalance...
ba541d36f6891892efc3f17773ff2395bb97df44
test/CodeGen/x86_32-inline-asm.c
test/CodeGen/x86_32-inline-asm.c
// RUN: %clang_cc1 -triple i386-apple-darwin9 -verify %s // <rdar://problem/12415959> typedef unsigned int u_int32_t; typedef u_int32_t uint32_t; typedef unsigned long long u_int64_t; typedef u_int64_t uint64_t; int main () { uint32_t msr = 0x8b; uint64_t val = 0; __asm__ volatile("wrmsr" : ...
// RUN: %clang_cc1 -triple i386-apple-darwin9 -verify %s // <rdar://problem/12415959> typedef unsigned int u_int32_t; typedef u_int32_t uint32_t; typedef unsigned long long u_int64_t; typedef u_int64_t uint64_t; int main () { // Error out if size is > 32-bits. uint32_t msr = 0x8b; uint64_t val = 0; __asm__ v...
Update testcase to show that we don't emit an error for sizes <= 32-bits.
Update testcase to show that we don't emit an error for sizes <= 32-bits. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@167748 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
3c62ef3d6cd198b345da0d0381b1145dfdb05cf1
mod_uuid.c
mod_uuid.c
#include <uuid/uuid.h> #include "httpd.h" #include "http_config.h" static int generate_uuid(request_rec *r) { char *uuid_str; uuid_t uuid; uuid_generate_random(uuid); uuid_str = (char *)apr_palloc(r->pool, sizeof(char)*37); uuid_unparse_lower(uuid, uuid_str); apr_table_setn(r->subprocess_env, "UUID", uuid...
#include <uuid/uuid.h> #include "httpd.h" #include "http_config.h" #include "http_protocol.h" static int generate_uuid(request_rec *r) { char *uuid_str; uuid_t uuid; uuid_generate_random(uuid); uuid_str = (char *)apr_palloc(r->pool, sizeof(char)*37); uuid_unparse_lower(uuid, uuid_str); apr_table_setn(r->s...
Add header file for ap_hook_post_read_request to suppress compiler warnings
Add header file for ap_hook_post_read_request to suppress compiler warnings
C
apache-2.0
tomg/mod_uuid
8348847ba77a85167f591e7c97db6d205b0a3f62
sassc.c
sassc.c
#include <stdio.h> #include "libsass/sass_interface.h" int main(int argc, char** argv) { int ret; if (argc < 2) { printf("Usage: sassc [INPUT FILE]\n"); return 0; } struct sass_file_context* ctx = sass_new_file_context(); ctx->options.include_paths = ""; ctx->options.image_path = "images"; ctx->options.ou...
#include <stdio.h> #include "libsass/sass_interface.h" int main(int argc, char** argv) { int ret; if (argc < 2) { printf("Usage: sassc [INPUT FILE]\n"); return 0; } struct sass_file_context* ctx = sass_new_file_context(); ctx->options.include_paths = ""; ctx->options.image_path = "images"; ctx->options.ou...
Print error messages to stderr.
Print error messages to stderr.
C
mit
saper/sassc,am11/sassc,am11/sassc,djam90/sassc,rightisleft/sassc,saper/sassc,am11/sassc,saper/sassc,rightisleft/sassc,djam90/sassc,rightisleft/sassc,djam90/sassc
27c91635d7f66040a801f46ff0a31852aefe9bf9
src/utils/Enums.h
src/utils/Enums.h
/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2021 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * This program is free ...
Add an enum_to_string util function
utils: Add an enum_to_string util function In order to avoid sprinkling 2+ line std::to_string invocations each time we need to convert an enum value to a string in a SQL request
C
lgpl-2.1
chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary
8a886e7b508f52754ef1dcd49208903ba9e54040
rgmanager/src/clulib/gettid.c
rgmanager/src/clulib/gettid.c
#include <sys/types.h> #include <linux/unistd.h> #include <gettid.h> #include <errno.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituting with pthread_self()" #include <pthread.h>...
#include <sys/types.h> #include <sys/syscall.h> #include <linux/unistd.h> #include <gettid.h> #include <errno.h> #include <unistd.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituti...
Patch from Fabio Massimo Di Nitto: Fix includes
Patch from Fabio Massimo Di Nitto: Fix includes
C
lgpl-2.1
stevenraspudic/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents
661bc252516e229e3f3769956b1b16c8d40a95eb
tests/execute/0110-typedefcast.c
tests/execute/0110-typedefcast.c
typedef int myint; myint x = (myint)1;
typedef int myint; myint x = (myint)1; int main(void) { return x-1; }
Fix test added in 6fe29dd
[tests] Fix test added in 6fe29dd Tests must have a main function which returns 0.
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
250473c59441260055fa47fb04a2f2dd911d7cf6
rov_simulator/src/simulator.h
rov_simulator/src/simulator.h
#ifndef SIMULATOR_H #define SIMULATOR_H #include "ros/ros.h" #include "dynamics.h" #include "sensor_msgs/Imu.h" #include "sensor_msgs/FluidPressure.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/Wrench.h" #include "geometry_msgs/Pose.h" #include "vortex_msgs/Float64ArrayStamped.h" #include </usr/include/arm...
#ifndef SIMULATOR_H #define SIMULATOR_H #include "ros/ros.h" #include "dynamics.h" #include "sensor_msgs/Imu.h" #include "sensor_msgs/FluidPressure.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/Wrench.h" #include "geometry_msgs/Pose.h" #include "vortex_msgs/Float64ArrayStamped.h" #include </usr/include/arm...
Change any tabs to spaces
Change any tabs to spaces
C
mit
vortexntnu/simulator
ffaf170e85b189831681c13d99e6670054d3f0dd
lab2/server.c
lab2/server.c
#include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { int port; char *directory; // Command Line Arguments // if (argc < 3) { printf("usage: %s <port> <dir>\n", argv[0]); return 1; } port = atoi(argv[1]); directory = argv[2]; if (port <= 0) { ...
Add the begginning of lab1
Add the begginning of lab1
C
mit
chocklymon/CS360,chocklymon/CS360,chocklymon/CS360,chocklymon/CS360
047fa49e35d9dda7a987468b86d60ec8bca4b33a
tests/infiniteTranslationLoop.c
tests/infiniteTranslationLoop.c
/* liblouis Braille Translation and Back-Translation Library Copyright (C) 2014 Mesar Hameed <mesar.hameed@gmail.com> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is...
/* liblouis Braille Translation and Back-Translation Library Copyright (C) 2014 Mesar Hameed <mesar.hameed@gmail.com> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is...
Fix a path in the translation loop test
Fix a path in the translation loop test
C
lgpl-2.1
vsmontalvao/liblouis,vsmontalvao/liblouis,hammera/liblouis,liblouis/liblouis,hammera/liblouis,BueVest/liblouis,BueVest/liblouis,BueVest/liblouis,hammera/liblouis,IndexBraille/liblouis,IndexBraille/liblouis,liblouis/liblouis,IndexBraille/liblouis,BueVest/liblouis,hammera/liblouis,BueVest/liblouis,vsmontalvao/liblouis,li...
f2c1a12c18bda617e32a79ac1c2adcc0cf2e883e
test/Analysis/PR38208.c
test/Analysis/PR38208.c
// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s // expected-no-diagnostics int foo(int a, int b) { a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b; b -= a; a += b...
Fix for last commit: adding new test file forgotten.
Fix for last commit: adding new test file forgotten. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@337679 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
7dbdf1bce8b4948d979a847315b8b9308c943e4c
examples/example_01.c
examples/example_01.c
#include <stdio.h> #include <datastructs.h> int main(){ typedef struct user_data { char name[100]; char email[100]; } user_data; user_data a = {"John Doe", "john.doe@mail_server.com"}; user_data b = {"Jack Smith", "jack.smith@mail_server.com"}; user_data c = {"Jane Plain", "ja...
#include <stdio.h> #include <datastructs.h> int main(){ typedef struct user_data { char name[100]; char email[100]; } user_data; user_data a = {"John Doe", "john.doe@mail_server.com"}; user_data b = {"Jack Smith", "jack.smith@mail_server.com"}; user_data c = {"Jane Plain", "ja...
Use ds_linked_list_length() instead of the size struct member.
Examples: Use ds_linked_list_length() instead of the size struct member.
C
bsd-3-clause
cyberpython/datastructs,cyberpython/datastructs
437d7aadc7f40d2862539fa54c03c271d94b64cc
2015-2016/A/15/03/romanNumerals.c
2015-2016/A/15/03/romanNumerals.c
#include <stdio.h> #include <string.h> int getRomanValue(char number); int checkRomanValue(char romanNumber[20]); int main() { char romanNumber[20]; int i, curNum; while(1) { curNum=0; printf("Input roman number: "); scanf("%s", romanNumber); if(checkRomanN(romanNumber)==0) { printf("Input a valid roma...
Add Roman Numerals to homework
Add Roman Numerals to homework
C
mit
AlexAndreev/po-homework,ivanmilevtues/po-homework,vincho7012/po-homework,karakonjel/po-homework,VVurbanov/po-homework
59c8aaac3425108e3137677863cc8cee6c84e20b
src/compat.h
src/compat.h
#ifndef COMPAT_H #define COMPAT_H #include "lua.h" #include "lauxlib.h" #if LUA_VERSION_NUM==501 void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); void *luaL_testudata ( lua_State *L, int arg, const char *tname); #endif #endif
#ifndef COMPAT_H #define COMPAT_H #include "lua.h" #include "lauxlib.h" #if LUA_VERSION_NUM==501 #define luaL_setfuncs socket_setfuncs #define luaL_testudata socket_testudata void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); void *luaL_testudata ( lua_State *L, int arg, const char *tname); #endif #endif...
Fix static linking problem with LuaJIT
Fix static linking problem with LuaJIT LuaJIT and LuaSocket both define new Lua APIs from Lua 5.2 (in particular `luaL_setfuncs` and `luaL_testudata`). When linking both statically, the one definition rule strikes and linking fails. This commit fixes the issue by renaming the LuaSocket versions of those functions behi...
C
mit
diegonehab/LuaSocket,diegonehab/LuaSocket,diegonehab/LuaSocket
3f6405a7ebcb804e88aba4be5a68c767690c4a72
test/test_app.c
test/test_app.c
#include "test.h" #include "app.h" TEST(app_new) { app_t * app = app_new(); assert(app->running == 0); assert(app->io == 0); app_free(app); } TEST(current_app_set_to) { app_t * app = app_new(); assert(current_app == 0); current_app_set_to(app); assert(current_app == app); app_free(app); ...
#include <string.h> #include "test.h" #include "io.h" #include "app.h" TEST(app_new) { app_t * app = app_new(); assert(app->running == 0); assert(app->io == 0); app_free(app); } TEST(current_app_set_to) { app_t * app = app_new(); assert(current_app == 0); current_app_set_to(app); assert(curr...
Add a failing test for app_parse_command_line
Add a failing test for app_parse_command_line
C
mit
gsamokovarov/chip8.c,gsamokovarov/chip8.c
bf8777dc307e2938a7d7e02ff761580b9917f529
src/core/lib/gprpp/optional.h
src/core/lib/gprpp/optional.h
/* * * Copyright 2019 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * * Copyright 2019 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Add const qualifiers to member methods in Optional
Add const qualifiers to member methods in Optional
C
apache-2.0
jboeuf/grpc,ejona86/grpc,stanley-cheung/grpc,ctiller/grpc,sreecha/grpc,ctiller/grpc,nicolasnoble/grpc,sreecha/grpc,ctiller/grpc,donnadionne/grpc,donnadionne/grpc,sreecha/grpc,ctiller/grpc,ctiller/grpc,pszemus/grpc,muxi/grpc,jtattermusch/grpc,vjpai/grpc,jboeuf/grpc,vjpai/grpc,grpc/grpc,firebase/grpc,sreecha/grpc,jtatter...
669ec93efe7eafc246bccb0b0768ad0952b3b8c4
include/myr/compiler.h
include/myr/compiler.h
/* * Myr C Utils library * * Written 2015 by Rickard Närström <rickard@narstrom.se> * * To the extent possible under law, the author(s) have dedicated all copyright * and related and neighboring rights to this software to the public domain worldwide. * This software is distributed without any warranty. * * You...
/* * Myr C Utils library * * Written 2015 by Rickard Närström <rickard@narstrom.se> * * To the extent possible under law, the author(s) have dedicated all copyright * and related and neighboring rights to this software to the public domain worldwide. * This software is distributed without any warranty. * * You...
Use standard C11 noreturn if avaiable.
Use standard C11 noreturn if avaiable.
C
unlicense
riccetn/myr-cutils
8f944706b21598c2bc1f9f9dfc5d36bb4ddba395
solutions/uri/1006/1006.c
solutions/uri/1006/1006.c
#include <stdio.h> int main() { float a, b, c; scanf("%f", &a); scanf("%f", &b); scanf("%f", &c); printf("MEDIA = %.1f\n", (a * 2.0 + b * 3.0 + c * 5.0) / 10.0); return 0; }
Solve Average 2 in c
Solve Average 2 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...
5e6b1eab679452b24578e6f6c9594ac3b88b3b64
ObjectDoc/ObjectDoc.h
ObjectDoc/ObjectDoc.h
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * 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 wi...
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * 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 wi...
Use PLClang.h in umbrella header
Use PLClang.h in umbrella header This includes the error codes and error domain.
C
mit
landonf/objectdoc,landonf/objectdoc
48eda9d8410404db35d51a3807ae8ac8a52d7261
Source/UnrealCV/Private/libs/cnpy.h
Source/UnrealCV/Private/libs/cnpy.h
// Copyright (C) 2011 Carl Rogers // Released under MIT License // Simplied by Weichao Qiu (qiuwch@gmail.com) from https://github.com/rogersce/cnpy #pragma once #include <vector> namespace cnpy { template<typename T> std::vector<char> create_npy_header(const T* data, const std::vector<int> shape); template<typena...
// Copyright (C) 2011 Carl Rogers // Released under MIT License // Simplied by Weichao Qiu (qiuwch@gmail.com) from https://github.com/rogersce/cnpy #pragma once #include <vector> #include <string> namespace cnpy { template<typename T> std::vector<char> create_npy_header(const T* data, const std::vector<int> shape);...
Include <string> to fix a compile issue in 4.12 and 4.13.
Include <string> to fix a compile issue in 4.12 and 4.13.
C
mit
unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv
248c9fb0418e071786b2b91992b5fe711d79f021
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.04.00-k5"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.04.00-k6"
Update driver version to 5.04.00-k6
qla4xxx: Update driver version to 5.04.00-k6 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Reviewed-by: Mike Christie <6fe105eefab41990d7ec714c6c25ade3095cdb48@cs.wisc.edu> Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
e36d31edd6020989bdb39f82dea54ef0e747e994
test/Driver/systemz-march.c
test/Driver/systemz-march.c
// Check that -march works for all supported targets. // RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s // RUN: %clang -target s390x -S -emit-llvm -march=z10 %s // RUN: %clang -target s390x -S -emit-llvm -march=z196 %s // RUN: %clang -target s390x -S -emit-llv...
// Check that -march works for all supported targets. // RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s // RUN: %clang -target s390x -### -S -emit-llvm -march=z10 %s 2>&1 | FileCheck --check-prefix=CHECK-Z10 %s // RUN: %clang -target s390x -### -S -emit-llvm -...
Fix test to actually check things.
Fix test to actually check things. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@186701 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
659d917acd2f5da137e506784acc3862225e7dad
Classes/NAPlaybackIndicatorView.h
Classes/NAPlaybackIndicatorView.h
// // NAPlaybackIndicatorView.h // PlaybackIndicator // // Created by Yuji Nakayama on 1/27/14. // Copyright (c) 2014 Yuji Nakayama. All rights reserved. // #import <UIKit/UIKit.h> @interface NAPlaybackIndicatorView : UIView - (void)startAnimating; - (void)stopAnimating; @property (nonatomic, readonly, getter=i...
// // NAPlaybackIndicatorView.h // PlaybackIndicator // // Created by Yuji Nakayama on 1/27/14. // Copyright (c) 2014 Yuji Nakayama. All rights reserved. // #import <UIKit/UIKit.h> @interface NAPlaybackIndicatorView : UIView /** Starts the oscillating animation of the bars. */ - (void)startAnimating; /** Sto...
Add documentation comments for method
Add documentation comments for method
C
mit
yujinakayama/NAKPlaybackIndicatorView
ddb5650f2820329f818cc57859610db1ccc45434
src/hid2hci.c
src/hid2hci.c
#include <stdio.h> #include <libusb-1.0/libusb.h> int main (int argc, char ** argv) { char data[] = { 0x01, 0x05, 0, 0, 0, 0, 0, 0, 0 }; libusb_init(NULL); libusb_device_handle* h = libusb_open_device_with_vid_pid(NULL, 0x0a12, 0x100b); if (!h) { printf("No device in HID mode found\n"); } else { libu...
#include <stdio.h> #include <libusb-1.0/libusb.h> int main (int argc, char ** argv) { char data[] = { 0x01, 0x05, 0, 0, 0, 0, 0, 0, 0 }; libusb_init(NULL); /* using the default pskeys, devices from the factory are a12:100d in HID mode */ libusb_device_handle* h = libusb_open_device_with_vid_pid(NULL, 0x0a12, 0...
Fix the constants so it will work correctly. Also add the possibility of a different Product ID so the dongles can be set to a mode that Windows machines with the CSR drivers won't switch them to HCI mode.
Fix the constants so it will work correctly. Also add the possibility of a different Product ID so the dongles can be set to a mode that Windows machines with the CSR drivers won't switch them to HCI mode.
C
mit
wmertens/textblade-dongler,wmertens/textblade-dongler
849184df828508bccc40cf609497b571ce95831d
include/llvm/CodeGen/GlobalISel/CallLowering.h
include/llvm/CodeGen/GlobalISel/CallLowering.h
//===-- llvm/CodeGen/GlobalISel/CallLowering.h - Call lowering --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add missing file in previous commit.
[GlobalISel] Add missing file in previous commit. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@260923 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,app...
bfe1120d49851c8f52e088a8dd31ac41694275ed
libslax/jsonwriter.h
libslax/jsonwriter.h
/* * $Id$ * * Copyright (c) 2013, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. * * jsonwriter.h -- t...
Move JSON parser into libslax
Move JSON parser into libslax
C
bsd-3-clause
Juniper/libslax,Juniper/libslax,Juniper/libslax
a5091550c09ca51c39ea0f51fc3bc519ca45afac
test/test_c_bindings/test_c_bindings.c
test/test_c_bindings/test_c_bindings.c
/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <qi/qi.h> #include <stdio.h> int main(int argc, char **argv) { qi_client_t *client = qi_client_create("simplecli", argv[1]); qi_message_t *message = qi_message_create(); qi_message_t *re...
/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <qi/qi.h> #include <stdio.h> int main(int argc, char **argv) { char *result; qi_client_t *client = qi_client_create("simplecli", argv[1]); qi_message_t *message = qi_message_create(); ...
Make c bindings compile on strict compilers
Make c bindings compile on strict compilers
C
bsd-3-clause
aldebaran/libqi,aldebaran/libqi,aldebaran/libqi-java,vbarbaresi/libqi,bsautron/libqi,aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi-java
f3cfdda7d9e7e0421189713262283d8bc379695f
Classes/SloppySwiperViewControllerProtocol.h
Classes/SloppySwiperViewControllerProtocol.h
// // SloppySwiperViewControllerProtocol.h // Pods // // Created by Yu Sugawara on 7/8/15. // // #import <UIKit/UIKit.h> @protocol SloppySwiperViewControllerProtocol <NSObject> - (UIBarStyle)ssw_navigationBarStyle; - (UIColor *)ssw_navigationBarColor; - (UIColor *)ssw_navigationBarItemColor; - (UIImage *)ssw_navi...
// // SloppySwiperViewControllerProtocol.h // Pods // // Created by Yu Sugawara on 7/8/15. // // #import <UIKit/UIKit.h> @protocol SloppySwiperViewControllerProtocol <NSObject> - (UIBarStyle)ssw_navigationBarStyle; - (UIColor *)ssw_navigationBarColor; - (UIColor *)ssw_navigationBarItemColor; @optional - (UIImage...
Change the ssw_navigationBarShadowImage to the @optional
Change the ssw_navigationBarShadowImage to the @optional
C
mit
yusuga/SloppySwiper
050be884232cb5f96248ff753b5b4e321f5a8e94
lib/Common/ChakraCoreVersion.h
lib/Common/ChakraCoreVersion.h
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Update master branch version to 1.3
Update master branch version to 1.3
C
mit
Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore
8a6df7d010257ba0d15e621a2c675ac882523320
mud/home/Geometry/lwo/coordinates/xyz.c
mud/home/Geometry/lwo/coordinates/xyz.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2021 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add stub for XYZ coordinates.
Add stub for XYZ coordinates.
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
b662250670d69e6b1a45aae8de67f6eb48d37b61
src/worker/windows/subscription.h
src/worker/windows/subscription.h
#ifndef SUBSCRIPTION_H #define SUBSCRIPTION_H #include <memory> #include <sstream> #include <string> #include "../../message.h" #include "../../result.h" class WindowsWorkerPlatform; class Subscription { public: Subscription(ChannelID channel, HANDLE root, const std::wstring &path, bool recursive, ...
#ifndef SUBSCRIPTION_H #define SUBSCRIPTION_H #include <memory> #include <sstream> #include <string> #include "../../message.h" #include "../../result.h" class WindowsWorkerPlatform; class Subscription { public: Subscription(ChannelID channel, HANDLE root, const std::wstring &path, bool recursive, ...
Return const & from getters
Return const & from getters
C
mit
atom/watcher,atom/watcher,atom/watcher,atom/watcher,atom/watcher
622c8f06325d89bdda593499323b4c056c699914
7segments.c
7segments.c
#define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%\177o"[*c++-48])&u/4?33:32,y&u?95:32,y&u/2?33:32,*c?32:10);u*=8; main(int u,char**a){u=1;L;L;L}
#define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%o"[*c++-48])&u/4?33:32,y&u?95:32,y&u/2?33:32,*c?32:10);u*=8; main(int u,char**a){u=1;L;L;L}
Use version with replaced \177
Use version with replaced \177
C
mit
McZonk/7segements,McZonk/7segements
ecefcf452f3941ca117f52da61f8a8cc79a1b573
7segments.c
7segments.c
main(int u,char**a){for(;u<129;u*=8){for(char*c=a[1],y;*c;)printf("%c%c%c ",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32);puts("");}}
main(int u,char**a){for(;u<129;u*=8)for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);}
Use printf without puts again to save one more byte
Use printf without puts again to save one more byte
C
mit
McZonk/7segements,McZonk/7segements
741f580007e33149b117cff4c46588b9b6d36451
problem_006.c
problem_006.c
#include <stdio.h> #include <math.h> #include "euler.h" #define PROBLEM 6 #define ANSWER 25164150 int main(int argc, char **argv) { double sum = 0, square = 0; for(double x = 0; x <= 100; x++) { sum += pow(x, 2.0); square += x; } square = pow(square, 2.0); double result = square -...
Add solution for problem 6
Add solution for problem 6
C
bsd-2-clause
skreuzer/euler
637bbbc2d7b0d47458ab10763865a119fea163a7
test/profile/Linux/instrprof-cs.c
test/profile/Linux/instrprof-cs.c
// RUN: rm -fr %t.prof // RUN: %clang_pgogen=%t.prof/ -o %t.gen.cs -O2 %s // RUN: %t.gen.cs // RUN: llvm-profdata merge -o %t.cs.profdata %t.prof/ // Check context sensitive profile // RUN: %clang_profuse=%t.cs.profdata -O2 -emit-llvm -S %s -o - | FileCheck %s --check-prefix=CS // // RUN: %clang_profgen=%t.profraw -o ...
Add a new test case
[Profile] Add a new test case The end-end test checks that cs-profile counter update is obtained as expected. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@277276 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
af63433f531926143f4dfce63f25ee3b09e81cc3
FreshAir/RZFReleaseNotes.h
FreshAir/RZFReleaseNotes.h
// // RZFReleaseNotes.h // FreshAir // // Created by Brian King on 1/26/16. // Copyright © 2016 Raizlabs. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class RZFRelease, RZFFeature; @interface RZFReleaseNotes : NSObject + (instancetype)releaseNotesWithURL:(NSURL *)URL error...
// // RZFReleaseNotes.h // FreshAir // // Created by Brian King on 1/26/16. // Copyright © 2016 Raizlabs. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class RZFRelease, RZFFeature; @interface RZFReleaseNotes : NSObject + (instancetype)releaseNotesWithURL:(NSURL *)URL error...
Move nullable to the property attributes
Move nullable to the property attributes
C
mit
Raizlabs/FreshAir,Raizlabs/FreshAir
b35873a38c56dad6c5ff2d982e5ad0ad3532253b
pt_error.c
pt_error.c
#include <assert.h> #include <string.h> #include <errno.h> #include "pt_error.h" static struct { const enum pt_error err; const char* const str; } pt_error_map[PT_LAST] = { { PT_SUCCESS, "Success" }, }; static char* pt_strncpy(char* dst, const char* src, size_t n) { if(n > 0) { int len = strnlen(src, n); (...
#include <assert.h> #include <string.h> #include <errno.h> #include "pt_error.h" static struct { const enum pt_error err; const char* const str; } pt_error_map[PT_LAST] = { { PT_SUCCESS, "Success" }, }; static char* pt_strncpy(char* dst, const char* src, size_t n) { if(n > 0) { int len = strnlen(src, n); (...
Change to a more standard errno in pt_strerror_r()
Change to a more standard errno in pt_strerror_r() Reformat pt_error.c
C
apache-2.0
byannoni/qthreads
fcd9aac9e7dff92751c7e17b2845e2748260bc2e
include/dynamicsJRLJapan/dynamicJRLJapan_API.h
include/dynamicsJRLJapan/dynamicJRLJapan_API.h
/* Computation of the dynamic aspect for a humanoid robot. Copyright (c) 2008 @author Olivier Stasse. JRL-Japan, CNRS/AIST All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistribution...
Add an API for Windows
Add an API for Windows
C
isc
jrl-umi3218/jrl-dynamics,jrl-umi3218/jrl-dynamics
a2620cb6d12c43535149bf2976c3d6c54f1c7e38
file4.c
file4.c
file4.c - r1 Test checkin in master1-updated Test checkin in master2
file4.c - r1 Test checkin in master1-updated - updated2 Test checkin in master2 Test checkin in master3
Test commit in feature branch
Test commit in feature branch
C
apache-2.0
shahedmolla/test
35947b1d45a735b3fc4ed110302ea31e7850e625
Pod/Classes/BFTaskCenter.h
Pod/Classes/BFTaskCenter.h
// // BFTaskCenter.h // Pods // // Created by Superbil on 2015/8/22. // // #import "Bolts.h" @interface BFTaskCenter : NSObject /*! A block that can act as a continuation for a task. */ typedef void (^BFTaskCenterBlock)(BFTask * _Nonnull task); + (nonnull instancetype)defaultCenter; - (instancetype)initWithEx...
// // BFTaskCenter.h // Pods // // Created by Superbil on 2015/8/22. // // #import "Bolts.h" @interface BFTaskCenter : NSObject /*! A block that can act as a continuation for a task. */ typedef void (^BFTaskCenterBlock)(BFTask * _Nonnull task); + (nullable instancetype)defaultCenter; - (nullable instancetype)...
Fix compiler warning for nullable check
Fix compiler warning for nullable check
C
mit
Superbil/BFTaskCenter,Superbil/BFTaskCenter
59db2153ef50567586bee132643226fb32996fa1
projects/com.oracle.truffle.llvm.test/tests/c/attributes/visibility/hidden-alias.c
projects/com.oracle.truffle.llvm.test/tests/c/attributes/visibility/hidden-alias.c
#include <stdlib.h> volatile int func() { return 4; } volatile int func2() __attribute__ ((visibility ("hidden"), alias ("func"))); int main() { if (func2() != 4) { abort(); } }
Add test case for hidden alias
Add test case for hidden alias
C
bsd-3-clause
grimmerm/sulong,crbb/sulong,grimmerm/sulong,crbb/sulong,grimmerm/sulong,lxp/sulong,lxp/sulong,PrinzKatharina/sulong,lxp/sulong,lxp/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong,grimmerm/sulong,crbb/sulong,crbb/sulong
3df46ce3e3b10cd37565184b8c78de882194da56
cpp/turbodbc/Library/turbodbc/type_code.h
cpp/turbodbc/Library/turbodbc/type_code.h
#pragma once namespace turbodbc { /** * This enumeration assigns integer values to certain database types */ enum class type_code : int { boolean = 0, ///< boolean type integer = 10, ///< integer types floating_point = 20, ///< floating point types string = 30, ///< string types timestamp = 40, ///< ti...
#pragma once namespace turbodbc { /** * This enumeration assigns integer values to certain database types */ enum class type_code : int { boolean = 0, ///< boolean type integer = 10, ///< integer types floating_point = 20, ///< floating point types string = 30, ///< string typ...
Add unicode to supported type codes
Add unicode to supported type codes
C
mit
blue-yonder/turbodbc,blue-yonder/turbodbc,blue-yonder/turbodbc,blue-yonder/turbodbc
d82bf2d86f3e4185b3815e56f23ca0e07c15541d
test/CodeGen/stdcall-fastcall.c
test/CodeGen/stdcall-fastcall.c
// RUN: %clang_cc1 -emit-llvm < %s | grep 'fastcallcc' | count 6 // RUN: %clang_cc1 -emit-llvm < %s | grep 'stdcallcc' | count 6 void __attribute__((fastcall)) f1(void); void __attribute__((stdcall)) f2(void); void __attribute__((fastcall)) f3(void) { f1(); } void __attribute__((stdcall)) f4(void) { f2(); } // PR...
// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s void __attribute__((fastcall)) f1(void); void __attribute__((stdcall)) f2(void); void __attribute__((fastcall)) f3(void) { // CHECK: define x86_fastcallcc void @f3() f1(); // CHECK: call x86_fastcallcc void @f1() } void __attribute__((stdcall)) f4(void) { // CHECK: d...
Convert this test to FileCheck instead of grepping LLVM IR.
Convert this test to FileCheck instead of grepping LLVM IR. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@95428 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
738a7cc75fe112630f29ed08ce68546ac1939728
server/packet/packet_entity_equipment.c
server/packet/packet_entity_equipment.c
#include "server/client.h" #include "server/packet.h" #include "blocks/items.h" void packet_send_entity_equipment(struct client *client, struct client *c, uint16_t slot, struct item *item, uint16_t damage) { bedrock_packet packet; struct item_stack stack; stack.id = item->id; stack.count = 1; stack.metadata = da...
#include "server/client.h" #include "server/packet.h" #include "blocks/items.h" void packet_send_entity_equipment(struct client *client, struct client *c, uint16_t slot, struct item *item, uint16_t damage) { bedrock_packet packet; struct item_stack stack; stack.id = item->id ? item->id : -1; stack.count = 1; sta...
Fix client crash from changing item to nothing
Fix client crash from changing item to nothing
C
bsd-2-clause
Adam-/bedrock,Adam-/bedrock