commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
388d4312a910f9dc1af9c2ae95b0811a9ec07dd9
src/xenpong/xenpong.h
src/xenpong/xenpong.h
#if !defined(_XENIFACE_H_) #define _XENIFACE_H_ #include <ntddk.h> #pragma warning(disable:4100 4057) typedef struct _DEVICE_EXTENSION { PDEVICE_OBJECT DeviceObject; PDEVICE_OBJECT LowerDeviceObject; PDEVICE_OBJECT Pdo; UNICODE_STRING ifname; IO_REMOVE_LOCK RemoveLock; } DEVICE_EXTENSION, *PDEVIC...
#if !defined(_XENIFACE_H_) #define _XENIFACE_H_ #include <ntddk.h> #pragma warning(disable:4100 4057) typedef struct _DEVICE_EXTENSION { PDEVICE_OBJECT DeviceObject; PDEVICE_OBJECT LowerDeviceObject; PDEVICE_OBJECT Pdo; UNICODE_STRING ifname; IO_REMOVE_LOCK RemoveLock; } DEVICE_EXTENSION, *PDEVIC...
Add declarations for StartDevice and StopDevice
Add declarations for StartDevice and StopDevice
C
bsd-2-clause
perf101/xenpong,perf101/xenpong,perf101/xenpong,perf101/xenpong
69c3f107e2c8a2eef56249a87c8e192d8f6abe5c
sys/sparc64/include/ieeefp.h
sys/sparc64/include/ieeefp.h
/* * Written by J.T. Conklin, Apr 6, 1995 * Public domain. * $FreeBSD$ */ #ifndef _MACHINE_IEEEFP_H_ #define _MACHINE_IEEEFP_H_ typedef int fp_except_t; #define FP_X_IMP 0x01 /* imprecise (loss of precision) */ #define FP_X_DZ 0x02 /* divide-by-zero exception */ #define FP_X_UFL 0x04 /* underflow exception */ #d...
/* * Written by J.T. Conklin, Apr 6, 1995 * Public domain. * $FreeBSD$ */ #ifndef _MACHINE_IEEEFP_H_ #define _MACHINE_IEEEFP_H_ #include <machine/fsr.h> typedef int fp_except_t; #define FP_X_IMP FSR_NX /* imprecise (loss of precision) */ #define FP_X_DZ FSR_DZ /* divide-by-zero exception */ #define FP_X_UFL FSR...
Use the definitions in machine/fsr.h instead of duplicating these magic numbers here (the values need to correspond to the %fsr ones for some libc functions to work right).
Use the definitions in machine/fsr.h instead of duplicating these magic numbers here (the values need to correspond to the %fsr ones for some libc functions to work right).
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
cbca462157dde6080fb77b611fbb8877834d07be
Source/Tests/Collection/FakeWithoutCount.h
Source/Tests/Collection/FakeWithoutCount.h
// OCHamcrest by Jon Reid, https://qualitycoding.org/ // Copyright 2018 hamcrest.org. See LICENSE.txt @import Foundation; NS_ASSUME_NONNULL_BEGIN @interface FakeWithoutCount : NSObject + (id)fake; @end NS_ASSUME_NONNULL_END
// OCHamcrest by Jon Reid, https://qualitycoding.org/ // Copyright 2018 hamcrest.org. See LICENSE.txt @import Foundation; NS_ASSUME_NONNULL_BEGIN @interface FakeWithoutCount : NSObject + (instancetype)fake; @end NS_ASSUME_NONNULL_END
Test only: Correct id to instancetype
Test only: Correct id to instancetype
C
bsd-2-clause
hamcrest/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest
e8f4eed954eaa0c5020d61250b8222c41511f413
test/CodeGen/pr9614.c
test/CodeGen/pr9614.c
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s extern int foo_alias (void) __asm ("foo"); inline int foo (void) { return foo_alias (); } int f(void) { return foo(); } // CHECK-NOT: define // CHECK: define i32 @f() // CHECK: %call = call i32 @foo() // CHECK: ret i32 %call // CHECK-NOT: define
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s extern int foo_alias (void) __asm ("foo"); inline int foo (void) { return foo_alias (); } int f(void) { return foo(); } // CHECK-NOT: define // CHECK: define i32 @f() // CHECK: call i32 @foo() // CHECK-NEXT: ret i32 // CHECK-NOT: define
Fix this tests on the bots.
Fix this tests on the bots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@143052 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
9710c394fb7c54d91aa9929f9530a9fa78cab8de
tree/treeplayer/inc/TFriendProxy.h
tree/treeplayer/inc/TFriendProxy.h
// @(#)root/treeplayer:$Id$ // Author: Philippe Canal 01/06/2004 /************************************************************************* * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al. * * All rights reserved. * * ...
// @(#)root/treeplayer:$Id$ // Author: Philippe Canal 01/06/2004 /************************************************************************* * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al. * * All rights reserved. * * ...
Add accessor to Director of a FriendProxy
Add accessor to Director of a FriendProxy
C
lgpl-2.1
root-mirror/root,olifre/root,olifre/root,olifre/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,root-mirror/root,karies/root,olifre/root,karies/root,karies/root,root-mirror/root,root-mirror/root,olifre/ro...
ddf88fda672bf43c057eca80334d04be837ad336
src/commands.c
src/commands.c
#include "commands.h" #include <stdio.h> #include <string.h> #include "util.h" static void print_commands_help() { puts(" Commands available:\n"); puts(" :quit \tExit laco"); puts(" :help \tDisplay this list of commands"); } void handle_command(struct LacoState* laco, char* line) { if(laco != NUL...
#include "commands.h" #include <stdbool.h> #include <stdio.h> #include "util.h" static const char* quit_matches[] = {"quit"}; static const char* help_matches[] = {"help"}; static void print_commands_help() { puts(" Commands available:\n"); puts(" :quit \tExit laco"); puts(" :help \tDisplay this lis...
Use laco_is_match for command handling
Use laco_is_match for command handling
C
bsd-2-clause
sourrust/laco
431357bc5ced7c1ffd6616f681c195ce45c61462
scriptobject.h
scriptobject.h
#ifndef INCLUDED_SCRIPT_OBJECT_H_ #define INCLUDED_SCRIPT_OBJECT_H_ #include "browser.h" #include "npapi-headers/npruntime.h" class EmacsInstance; class ScriptObject : public NPObject { public: static ScriptObject* create(NPP npp); void invalidate(); bool hasMethod(NPIdentifier name); bool invoke(NP...
#ifndef INCLUDED_SCRIPT_OBJECT_H_ #define INCLUDED_SCRIPT_OBJECT_H_ #include "browser.h" #include "npapi-headers/npruntime.h" #include "util.h" class EmacsInstance; class ScriptObject : public NPObject { public: static ScriptObject* create(NPP npp); void invalidate(); bool hasMethod(NPIdentifier name); ...
Disable copy and assign on ScriptObject
Disable copy and assign on ScriptObject
C
mit
davidben/embedded-emacs,davidben/embedded-emacs,davidben/embedded-emacs
3cb53ef14172a14cf05f2777847538d492ec8421
RFKeyboardToolbar/RFToolbarButton.h
RFKeyboardToolbar/RFToolbarButton.h
// // RFToolbarButton.h // // Created by Rudd Fawcett on 12/3/13. // Copyright (c) 2013 Rudd Fawcett. All rights reserved. // #import <UIKit/UIKit.h> /** * The block used for each button. */ typedef void (^eventHandlerBlock)(); @interface RFToolbarButton : UIButton /** * Creates a new RFToolbarButton. * *...
// // RFToolbarButton.h // // Created by Rudd Fawcett on 12/3/13. // Copyright (c) 2013 Rudd Fawcett. All rights reserved. // #import <UIKit/UIKit.h> /** * The block used for each button. */ typedef void (^eventHandlerBlock)(void); @interface RFToolbarButton : UIButton /** * Creates a new RFToolbarButton. ...
Fix warning about block declaration semantics
Fix warning about block declaration semantics
C
mit
ruddfawcett/RFKeyboardToolbar
fb2a0e23314d7abf9ab91bda09cc335aed9b1865
config.h
config.h
#ifndef CONFIG_H #define CONFIG_H #define YLE_DOWNLOADER_GUI_VERSION "2.0" #define WINDOWS_YLE_DL_DIR "yle-dl-windows-1.99.7" #endif // CONFIG_H
#ifndef CONFIG_H #define CONFIG_H #define YLE_DOWNLOADER_GUI_VERSION "2.0" #define WINDOWS_YLE_DL_DIR "yle-dl-windows" #endif // CONFIG_H
Change WINDOWS_YLE_DL_DIR to not have a version number.
Change WINDOWS_YLE_DL_DIR to not have a version number.
C
unlicense
hekkup/qyledl,hekkup/qyledl,hekkup/qyledl
001af213199c25b457df50bebb664570285a1ca8
Pod/Classes/CMHActivityList.h
Pod/Classes/CMHActivityList.h
#import <CloudMine/CloudMine.h> #import <CareKit/CareKit.h> @interface CMHActivityList : CMObject - (instancetype)init NS_UNAVAILABLE; - (instancetype)initWithObjectId:(NSString *)theObjectId NS_UNAVAILABLE; @property (nonatomic, nonnull, readonly) NSArray <OCKCarePlanActivity *> * activities; - (_Nonnull instancety...
#import <CloudMine/CloudMine.h> #import <CareKit/CareKit.h> @interface CMHActivityList : CMObject - (_Null_unspecified instancetype)init NS_UNAVAILABLE; - (_Null_unspecified instancetype)initWithObjectId:(NSString *_Null_unspecified)theObjectId NS_UNAVAILABLE; @property (nonatomic, nonnull, readonly) NSArray <OCKCar...
Add placeholder nullability annotations to unavailable declarations to prevent warning while building activity list
Add placeholder nullability annotations to unavailable declarations to prevent warning while building activity list
C
mit
cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK
4ec6dde3a662778f898375bdda879904509ad33d
src/NavRouting/SdkModel/NavRoutingLocationFinder.h
src/NavRouting/SdkModel/NavRoutingLocationFinder.h
#pragma once #include "ISingleOptionAlertBoxDismissedHandler.h" #include "INavRoutingLocationFinder.h" #include "NavRoutingLocationModel.h" #include "SearchResultModel.h" #include "ILocationService.h" #include "IAlertBoxFactory.h" namespace ExampleApp { namespace NavRouting { namespace SdkModel ...
#pragma once #include "Types.h" #include "ISingleOptionAlertBoxDismissedHandler.h" #include "INavRoutingLocationFinder.h" #include "NavRoutingLocationModel.h" #include "SearchResultModel.h" #include "ILocationService.h" #include "IAlertBoxFactory.h" namespace ExampleApp { namespace NavRouting { namesp...
Fix missing virtual dtor on new type Buddy Michael Chan
Fix missing virtual dtor on new type Buddy Michael Chan
C
bsd-2-clause
eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/ee...
b8ccf5a8022a002571a40900e6f725a0c8b0d860
src/udon2xml.c
src/udon2xml.c
#include <stdio.h> #include <stdlib.h> #include "udon.h" int main (int argc, char *argv[]) { int i; int found = 0; pstate *state = init_from_file("../sjson-examples/big.txt"); for(i=0; i<10000; i++) { found += parse(state); reset_state(state); } free_state(state); printf("%d...
#include <stdio.h> #include <stdlib.h> #include "udon.h" int main (int argc, char *argv[]) { int i; int found = 0; if(argc < 2) return 1; pstate *state = init_from_file(argv[1]); for(i=0; i<10000; i++) { found += parse(state); reset_state(state); } free_state(state); pri...
Remove hardcoded file path. Still awkward and not generally usable, but _more_ general.
Remove hardcoded file path. Still awkward and not generally usable, but _more_ general.
C
mit
josephwecker/udon-c,josephwecker/udon-c,josephwecker/udon-c,josephwecker/udon-c
052b3fc55ae2ee20e2ab6d9e29fde8a4fee7a68b
src/pomodoro.h
src/pomodoro.h
// ---------------------------------------------------------------------------- // pomodoro - Defines a model to track progress through the Pomodoro Technique // Copyright (c) 2013 Jonathan Speicher (jon.speicher@gmail.com) // Licensed under the MIT license: http://opensource.org/licenses/MIT // -----------------------...
// ---------------------------------------------------------------------------- // pomodoro - Defines a model to track progress through the Pomodoro Technique // Copyright (c) 2013 Jonathan Speicher (jon.speicher@gmail.com) // Licensed under the MIT license: http://opensource.org/licenses/MIT // -----------------------...
Fix some comments and type names
Fix some comments and type names
C
mit
jonspeicher/Pomade,jonspeicher/Pomade,elliots/simple-demo-pebble
35e0ab1f6591592e10dea911cacbd649de4f8da3
MouseEvent.h
MouseEvent.h
#pragma once #include <cstdint> namespace ni { struct MouseEvent { int32_t deltaX; int32_t deltaY; int32_t deltaWheel; uint8_t leftButtonDown; uint8_t rightButtonDown; uint8_t middleButtonDown; }; }
#pragma once #include <cstdint> namespace ni { struct MouseEvent { int32_t deltaX; int32_t deltaY; int8_t deltaWheel; uint8_t leftButtonDown; uint8_t rightButtonDown; uint8_t middleButtonDown; }; static_assert(sizeof(MouseEvent) == 12, "Improper mouse event size"); }
Change MouseWheel deltaWheel field size to one byte. Add compile time size check to Mouse Event.
Change MouseWheel deltaWheel field size to one byte. Add compile time size check to Mouse Event.
C
mit
jack-karamanian/NetInput
9e82bcb019f476a4f025f63b101f8a250033ca9d
win32_compat.h
win32_compat.h
/* Copyright (c) 2014 Harm Hanemaaijer <fgenfb@yahoo.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D...
/* Copyright (c) 2014 Harm Hanemaaijer <fgenfb@yahoo.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D...
Fix major bug in definition of greatest negative float value
Fix major bug in definition of greatest negative float value The minimum float value was actually defined as a very small negative value close to zero, as opposed to a very large negative value in the direction of minus infinity. This error may have caused multiple, sometimes hard to pinpoint, bugs. Also convert the ...
C
isc
hglm/sre,hglm/sre,hglm/sre
e87f79e573ba951dad55b81433b3a1839dd85332
extensions/ringopengl/opengl11/ring_opengl11.c
extensions/ringopengl/opengl11/ring_opengl11.c
#include "ring.h" /* OpenGL 1.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_get_gl_zero) { RING_API_RETNUMBER(GL_ZERO); } RING_FUNC(ring_get_gl_false) { RING_API_RETNUMBER(GL_FALSE); } RING_FUNC(ring_get_gl_logic_op) { RING_AP...
#include "ring.h" /* OpenGL 1.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_get_gl_zero) { RING_API_RETNUMBER(GL_ZERO); } RING_FUNC(ring_get_gl_false) { RING_API_RETNUMBER(GL_FALSE); } RING_FUNC(ring_get_gl_logic_op) { RING_AP...
Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_NONE
Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_NONE
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
005729668570026852429b644002a5785cbbfd39
interface/include/quaternion_bind.h
interface/include/quaternion_bind.h
/* __ __ _ * / // /_____ ____ (_) * / // // ___// __ \ / / * / // // /__ / /_/ // / * /_//_/ \___/ \____//_/ * https://bitbucket.org/galaktor/llcoi * copyright (c) 2014, llcoi Team * MIT license applies - see file "LICENSE" for details. */ #pragma once #include "ogre_interface.h...
/* __ __ _ * / // /_____ ____ (_) * / // // ___// __ \ / / * / // // /__ / /_/ // / * /_//_/ \___/ \____//_/ * https://bitbucket.org/galaktor/llcoi * copyright (c) 2014, llcoi Team * MIT license applies - see file "LICENSE" for details. */ #pragma once #include "ogre_interface.h...
Update signature of quaternion unit inverse.
Update signature of quaternion unit inverse.
C
mit
fire/llcoi,fire/llcoi
f44be40fe1d9be9535a4819d7ef468cbba34ea74
scheduler.h
scheduler.h
/* * scheduler.h * * Created on: Jun 8, 2016 * Author: riley */ #ifndef SCHEDULER_H #define SCHEDULER_H #include <stdint.h> #include "scheduler_private.h" typedef void (*task_func_t)( void ) ; typedef volatile struct task_private_s { const char * name; volatile void * task_sp; //Task stack pointe...
/* * scheduler.h * * Created on: Jun 8, 2016 * Author: riley */ #ifndef SCHEDULER_H #define SCHEDULER_H #include <stdint.h> #include "scheduler_private.h" typedef void (*task_func_t)( void ) ; typedef volatile struct task_private_s { const char * name; volatile void * task_sp; //Task stack pointe...
Remove implementation details from API comment
Remove implementation details from API comment
C
mit
rjw245/rileyOS
d61e95344b2052b6dfa8a96a61fff6b99f08e008
ext/libx11_ruby/libx11_ruby.c
ext/libx11_ruby/libx11_ruby.c
#include "libx11_ruby.h" VALUE rb_mLibX11; void Init_libx11_ruby(void) { rb_mLibX11 = rb_define_module("LibX11"); }
#include <X11/Xlib.h> #include "libx11_ruby.h" VALUE rb_mLibX11, rb_cDisplay; static size_t display_memsize(const void *); static const rb_data_type_t display_type = { .wrap_struct_name = "libx11_display", .function = { .dmark = NULL, .dfree = NULL, .dsize = display_memsize, .reserved = { NULL, N...
Add bindings for XOpenDisplay and XCloseDisplay
Add bindings for XOpenDisplay and XCloseDisplay
C
mit
k0kubun/libx11-ruby,k0kubun/libx11-ruby
e5ef49ad2ccaf5319b2476f8c8b866dbdee3f187
src/nbody.h
src/nbody.h
#ifndef _nbody_h #define _nbody_h #include <stdbool.h> #include "window.h" #include "star.h" #define NUM_STARS 64 typedef struct { Window* window; bool running; Star stars[NUM_STARS]; } NBody; NBody* NBody_new(); void NBody_run(NBody* self); void NBody_destroy(NBody* self); #endif
#ifndef _nbody_h #define _nbody_h #include <stdbool.h> #include "window.h" #include "star.h" #define NUM_STARS 512 typedef struct { Window* window; bool running; Star stars[NUM_STARS]; } NBody; NBody* NBody_new(); void NBody_run(NBody* self); void NBody_destroy(NBody* self); #endif
Increase number of stars to 512.
Increase number of stars to 512.
C
mit
wtolson/nbody-opengl,wtolson/nbody-opengl
f18766e3a0dec67141ab2e1564023af04789cd7d
Projects/Project1/src/order.h
Projects/Project1/src/order.h
#ifndef ORDER_H_ #define ORDER_H_ /** * Represents an order with weight and volume */ class Order { public: Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor Order oper...
#ifndef ORDER_H_ #define ORDER_H_ /** * Represents an order with weight and volume */ class Order { public: Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor uint GetWeight() const { return _weight; } ///< Returns the order weight uint GetVolume() const { return _volu...
Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird.
Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird.
C
mit
DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal
98c5148a59368feae0aecf56f87d64e74787768c
Engine/Sprite.h
Engine/Sprite.h
#pragma once #include "Point.h" #include <SDL/include/SDL.h> struct Sprite { SDL_Rect Rect; iPoint Pivot; };
#ifndef __SPRITE_H__ #define __SPRITE_H__ #include "Point.h" #include <SDL/include/SDL.h> struct Sprite { SDL_Rect Rect; iPoint Pivot; }; #endif // __SPRITE_H__
Substitute pragma once for ifndef guards
Substitute pragma once for ifndef guards
C
mit
jowie94/The-Simpsons-Arcade,jowie94/The-Simpsons-Arcade
7b9661e1d1d78c7558123e4865a32c60e84d8049
src/graphics.h
src/graphics.h
#ifndef __GRAPHICS_H__ #define __GRAPHICS_H__ #include "models.h" typedef struct { int num_goats_to_put; int num_eaten_goats; player_turn_t turn; mvt_t input; mvt_t *possible_mvts; board_t *board; } state_to_draw_t; #endif
#ifndef __GRAPHICS_H__ #define __GRAPHICS_H__ #include "models.h" typedef struct { int num_goats_to_put; int num_eaten_goats; player_turn_t turn; mvt_t input; mvt_t *possible_mvts; size_t num_possible_mvts; board_t *board; } state_to_draw_t;...
Fix state_to_draw_t by adding the number of possible mvts
Fix state_to_draw_t by adding the number of possible mvts
C
mit
moverest/bagh-chal,moverest/bagh-chal,moverest/bagh-chal
41ecc842c747e8dc572fcbca6f41a11a08a55e4e
pkg/gridalt/gridalt_mapping.h
pkg/gridalt/gridalt_mapping.h
C $Header$ C $Name$ #include "PACKAGES_CONFIG.h" c Alternate grid Mapping Common c ------------------------------ #ifdef ALLOW_FIZHI integer nlperdyn(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,Nsy) _RL dpphys0(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy) _RL dpphys(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy)...
C $Header$ C $Name$ c Alternate grid Mapping Common c ------------------------------ #ifdef ALLOW_FIZHI integer nlperdyn(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,Nsy) _RL dpphys0(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy) _RL dpphys(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy) _RL dxfalt,dyfalt,drfal...
Remove explicit include of packages_config in here - it is included elsewhere in all routines which use this common
Remove explicit include of packages_config in here - it is included elsewhere in all routines which use this common
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
2d7cf3ef879b22bdfd271aa3b66733c53279e813
arch/powerpc/include/asm/kmap_types.h
arch/powerpc/include/asm/kmap_types.h
#ifndef _ASM_POWERPC_KMAP_TYPES_H #define _ASM_POWERPC_KMAP_TYPES_H #ifdef __KERNEL__ /* * 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 opti...
#ifndef _ASM_POWERPC_KMAP_TYPES_H #define _ASM_POWERPC_KMAP_TYPES_H #ifdef __KERNEL__ /* * 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 opti...
Fix DEBUG_HIGHMEM build break from d4515646699
powerpc: Fix DEBUG_HIGHMEM build break from d4515646699 Code was added to mm/higmem.c that depends on several kmap types that powerpc does not support. We add dummy invalid definitions for KM_NMI, KM_NM_PTE, and KM_IRQ_PTE. According to list discussion, this fix should not be needed anymore starting with 2.6.33. Th...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,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,KristFoundation/Program...
0b8a1228b773bc4e9a865a913a231f7e0d1e7a15
platform/shared/common/stat.h
platform/shared/common/stat.h
/* #if defined(__APPLE__) && !(defined(__DARWIN_ONLY_64_BIT_INO_T) && ___DARWIN_ONLY_64_BIT_INO_T) #define __DARWIN_ONLY_64_BIT_INO_T 1 #endif */ #include <sys/stat.h>
#if defined(__APPLE__) && !defined(__arm__) && !defined(__IPHONE_4_0) /* Simulator 3.2 or less */ #define RHO_IPHONE_SIMULATOR_3 #endif #ifdef RHO_IPHONE_SIMULATOR_3 #ifdef stat #undef stat #endif #ifdef lstat #undef lstat #endif #ifdef fstat #undef fstat #endif #endif #include <sys/stat.h> #ifdef RHO_IPHONE_SIMULAT...
Make iPhone simulator build binary compatible between 3.x and 4.x
Make iPhone simulator build binary compatible between 3.x and 4.x
C
mit
pslgoh/rhodes,tauplatform/tau,watusi/rhodes,tauplatform/tau,tauplatform/tau,tauplatform/tau,tauplatform/tau,watusi/rhodes,rhomobile/rhodes,rhomobile/rhodes,tauplatform/tau,tauplatform/tau,watusi/rhodes,pslgoh/rhodes,pslgoh/rhodes,tauplatform/tau,rhomobile/rhodes,rhomobile/rhodes,watusi/rhodes,pslgoh/rhodes,watusi/rhode...
ca4e752c35e8a6254d85fae156cc256f2658de2a
src/ip.c
src/ip.c
/*****************************************************************************/ /* */ /* Telize 2.0.0 */ /* Copyright (c) 2013-2018, Frederic Cambus */ ...
/*****************************************************************************/ /* */ /* Telize 2.0.0 */ /* Copyright (c) 2013-2018, Frederic Cambus */ ...
Handle the 'X-Forwarded-For' HTTP header if present
Handle the 'X-Forwarded-For' HTTP header if present
C
bsd-2-clause
fcambus/telize
f696c641dc0182e254ae9cea224465ed8e7fef79
src/common.h
src/common.h
#ifndef COMMON_INCLUDED #define COMMON_INCLUDED #pragma once #define _WIN32_WINNT _WIN32_WINNT_WINXP #define NOMINMAX #include <Windows.h> #define at_scope_exit(cb) auto CONCAT(scope_exit_, __COUNTER__) = make_scope_guard(cb); #define CONCAT(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b template <class Callback> ...
#ifndef COMMON_INCLUDED #define COMMON_INCLUDED #pragma once #define _WIN32_WINNT _WIN32_WINNT_WINXP #define NOMINMAX #include <Windows.h> #define at_scope_exit(cb) auto CONCAT(scope_exit_, __COUNTER__) = make_scope_guard(cb); #define CONCAT(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b template <class Callback> ...
Use = delete for deleted members.
Use = delete for deleted members. git-svn-id: 43fbdb37a1fde3402d8d2922bf6a94a542354cf8@402 41632dc1-7a16-0410-8441-a1f66f767317
C
mit
Bekenn/wcdx,Bekenn/wcdx
a98d2b55c79a9959efd814bd9a316415ebc8dac8
bin/varnishtest/vtc_h2_priv.h
bin/varnishtest/vtc_h2_priv.h
#include "vqueue.h" #define ITER_DONE(iter) (iter->buf == iter->end ? hpk_done : hpk_more) struct dynhdr { struct hpk_hdr header; VTAILQ_ENTRY(dynhdr) list; }; VTAILQ_HEAD(dynamic_table,dynhdr); struct hpk_iter { struct hpk_ctx *ctx; char *orig; char *buf; char *end; }; const struct txt * tbl_get_key(co...
/*- * Copyright (c) 2008-2016 Varnish Software AS * All rights reserved. * * Author: Guillaume Quintard <guillaume.quintard@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of s...
Add a copyright to this file
Add a copyright to this file
C
bsd-2-clause
gquintard/Varnish-Cache,gquintard/Varnish-Cache,gquintard/Varnish-Cache,gquintard/Varnish-Cache
f0b45d88d5e1c1737e75cdf4eceda4e5a01461b5
include/sys/mman.h
include/sys/mman.h
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_MMAN_H #define MINLIBC_MMAN_H #include <sys/types.h> #define PROT_NONE ...
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_MMAN_H #define MINLIBC_MMAN_H #include <sys/types.h> #define PROT_NONE ...
Add more flags for mmap() to ignore.
Add more flags for mmap() to ignore.
C
bsd-3-clause
GaloisInc/minlibc,GaloisInc/minlibc
672c11b41fe66f96a3f3c6b16f839c1edf66a384
test/CFrontend/2005-04-09-ComplexOps.c
test/CFrontend/2005-04-09-ComplexOps.c
// %llvmgcc %s -S -o - #include <math.h> #define I 1.0iF double __complex test(double X) { return ~-(X*I); } _Bool EQ(double __complex A, double __complex B) { return A == B; } _Bool NE(double __complex A, double __complex B) { return A != B; }
// RUN: %llvmgcc %s -S -o - #include <math.h> #define I 1.0iF double __complex test(double X) { return ~-(X*I); } _Bool EQ(double __complex A, double __complex B) { return A == B; } _Bool NE(double __complex A, double __complex B) { return A != B; }
Add the RUN: prefix to the start of the run line so this test doesn't fail. BTW .. isn't the date on this funky? We haven't reachec 2005-05-09 yet???
Add the RUN: prefix to the start of the run line so this test doesn't fail. BTW .. isn't the date on this funky? We haven't reachec 2005-05-09 yet??? git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@21432 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,l...
15378c98e1987964299a406232dc405a11c7a413
trace.h
trace.h
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #define TRACE ERROR #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt, program_invocation_short_name, ##arg) #define FATAL(fmt,arg...) do { \ ERROR(fmt, ##arg); \ exit(1); \ } while (0) #endif
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else #define TRACE(fmt,arg...) ((void) 0) #endif #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt, program_invocation_short_name, ##arg) #define FATAL(fmt,arg...) do { \ ERROR(fmt, ##arg); \...
Make TRACE depend on DEBUG.
Make TRACE depend on DEBUG.
C
lgpl-2.1
dimm0/tacc_stats,sdsc/xsede_stats,rtevans/tacc_stats_old,ubccr/tacc_stats,aaichsmn/tacc_stats,TACC/tacc_stats,dimm0/tacc_stats,rtevans/tacc_stats_old,sdsc/xsede_stats,TACC/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,TACCProjects/tacc_stats,TACC/tacc_stats,aaichsmn/tacc_stats,ubccr/tacc_s...
2873c139d02d994834029349bc72b417108bad6c
tests/regression/24-octagon/17-problem-pointer.c
tests/regression/24-octagon/17-problem-pointer.c
void change(int *p) { (*p)++; } int a; int main() { a = 5; int *p = &a; change(p); assert(a - 6 == 0); return 0; }
// PARAM: --sets solver td3 --set ana.activated "['base','threadid','threadflag','mallocWrapper','octApron']" void change(int *p) { (*p)++; } int a; int main() { a = 5; int *p = &a; change(p); assert(a - 6 == 0); return 0; }
Add parameters to a test
Add parameters to a test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
45cc7865e4142582460218bed288d41d60428bb4
src/chrono_vehicle/tracked_vehicle/ChTrackSubsysDefs.h
src/chrono_vehicle/tracked_vehicle/ChTrackSubsysDefs.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...
// ============================================================================= // 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 enum constant TrackCollide::ALL with a value 0xFFFF.
Add enum constant TrackCollide::ALL with a value 0xFFFF. This allows statements such as: vehicle.SetCollide(TrackCollide::ALL & ~TrackCollide::IDLER_RIGHT); to enable contact on all parts except the right idler wheel.
C
bsd-3-clause
dariomangoni/chrono,rserban/chrono,armanpazouki/chrono,amelmquist/chrono,jcmadsen/chrono,dariomangoni/chrono,andrewseidl/chrono,armanpazouki/chrono,jcmadsen/chrono,projectchrono/chrono,rserban/chrono,Milad-Rakhsha/chrono,Milad-Rakhsha/chrono,armanpazouki/chrono,andrewseidl/chrono,rserban/chrono,jcmadsen/chrono,rserban/...
380587f16b04bf1ad24b8cfb7a105711e8e8ab62
Source/PKMacros.h
Source/PKMacros.h
// // PKMacros.h // PKToolBox // // Created by Pavel Kunc on 17/07/2013. // Copyright (c) 2013 PKToolBox. All rights reserved. // #define PK_NIL_IF_NULL(obj) ((obj == [NSNull null]) ? nil : obj) #define PK_NULL_IF_NIL(obj) ((obj == nil) ? [NSNull null] : obj) #define PK_BOOL_TO_LOCALIZED_STRING(val) ((val == YES)...
// // PKMacros.h // PKToolBox // // Created by Pavel Kunc on 17/07/2013. // Copyright (c) 2013 PKToolBox. All rights reserved. // #pragma mark - Foundation #define PK_NIL_IF_NULL(obj) ((obj == (id)[NSNull null]) ? nil : obj) #define PK_NULL_IF_NIL(obj) ((obj == nil) ? [NSNull null] : obj) #define PK_DEFAULT_IF_NI...
Fix warnings and reorganize file.
Fix warnings and reorganize file.
C
mit
prajput/pkCode,pk/pktoolbox,prajput/pkCode,pk/pktoolbox
ca4f57fdff9f6c875cd96335dc6d73206bcb8fce
lua/myprog.c
lua/myprog.c
#include <math.h> #include "lua5.2/lua.h" #include "lua5.2/lauxlib.h" // Functions exposed to Lua static int l_sin(lua_State *L) { // Verify that the argument is a number double d = luaL_checknumber(L, 1); // Call the function, and return the result lua_pushnumber(L, sin(d)); return 1; // Single r...
#include <math.h> #include "lua5.2/lua.h" #include "lua5.2/lauxlib.h" // Functions exposed to Lua static int l_sin(lua_State *L) { double value_as_number = luaL_checknumber(L, 1); // Call the function, and return the result lua_pushnumber(L, sin(value_as_number)); return 1; // Single result } static ...
Change comment into descriptive variable name
Change comment into descriptive variable name
C
apache-2.0
dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging
759f87259e5cfada2a9d84118e26d21d227e3718
Portal/Portal.h
Portal/Portal.h
// // Portal.h // Portal // // Created by Guido Marucci Blas on 3/14/17. // Copyright © 2017 Guido Marucci Blas. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Portal. FOUNDATION_EXPORT double PortalVersionNumber; //! Project version string for Portal. FOUNDATION_EXPORT const unsi...
// // Portal.h // Portal // // Created by Guido Marucci Blas on 3/14/17. // Copyright © 2017 Guido Marucci Blas. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Portal. FOUNDATION_EXPORT double PortalVersionNumber; //! Project version string for Portal. FOUNDATION_EXPORT const unsi...
Add missing Yoga headers to umbrella header.
Add missing Yoga headers to umbrella header. This is needed to avoid warnings.
C
mit
guidomb/Portal,guidomb/Portal,guidomb/Portal,guidomb/Portal
aa1a7a8b481411f027d3931a2d52382398345ac1
tests/test-x509.c
tests/test-x509.c
#include <mongoc.h> #include "mongoc-ssl-private.h" #include "TestSuite.h" #ifdef MONGOC_ENABLE_OPENSSL static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=IS,ST=Reykjavik,L=Reykjavik,O=MongoDB,OU=Drivers,CN=server"); ...
#include <mongoc.h> #include "mongoc-ssl-private.h" #include "TestSuite.h" #ifdef MONGOC_ENABLE_OPENSSL static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=US,ST=California,L=Palo Alto,O=MongoDB,OU=Drivers,CN=server");...
Fix last-minute certificate subject changes
Fix last-minute certificate subject changes
C
apache-2.0
christopherjwang/mongo-c-driver,mongodb/mongo-c-driver,bjori/mongo-c-driver,ajdavis/mongo-c-driver,ajdavis/mongo-c-driver,beingmeta/mongo-c-driver,jmikola/mongo-c-driver,ajdavis/mongo-c-driver,mongodb/mongo-c-driver,acmorrow/mongo-c-driver,Machyne/mongo-c-driver,rcsanchez97/mongo-c-driver,christopherjwang/mongo-c-drive...
b834040b9426954cde912b685af7505b741dab4a
control.c
control.c
#include <stdio.h> #include <string.h> #include <math.h> struct Packet { unsigned int status: 1; unsigned int group: 2; unsigned int plug: 2; }; unsigned int packet_to_binary(struct Packet packet) { unsigned int binary = (packet.status << 7); binary |= ((packet.group & 0x3) << 2); binary |= (p...
#include <stdio.h> #include <string.h> #include <math.h> struct Packet { unsigned int status: 1; unsigned int group: 2; unsigned int plug: 2; }; unsigned int packet_to_binary(struct Packet packet) { unsigned int binary = (packet.status << 7); binary |= ((packet.group & 0x3) << 2); binary |= (p...
Rename printBinary function and write to string instead
Rename printBinary function and write to string instead printBinary is now called btoa (binary to ascii) btoa accepts the number, a buffer and a number of digits buffer length must be (digits + 1)
C
agpl-3.0
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
ac16931e26eee975b8a80dd7aa36c393de59a349
src/libclientserver/Client.h
src/libclientserver/Client.h
/** * @class Client * @brief Factor class for being able to generate connections * * This class will create connections using the common interface ClientBase * which is based on connections strings. The connections should be completly * abstracted from the parent classes other than this entry point. */ class ...
/** * @class Client * @brief Factor class for being able to generate connections * * This class will create connections using the common interface ClientBase * which is based on connections strings. The connections should be completly * abstracted from the parent classes other than this entry point. */ class ...
Fix compile error with missing function declare
Fix compile error with missing function declare
C
mit
mistralol/libclientserver,mistralol/libclientserver
e6f3746ef6ef8910e3e420e78f2a073f8e5a9084
src/nbds.0.4.3/include/mem.h
src/nbds.0.4.3/include/mem.h
/* * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ #ifndef MEM_H #define MEM_H void *nbd_malloc (size_t n) __attribute__((malloc, alloc_size(1))); void nbd_free (void *x) __attribute__((nonnull)); #endif//MEM_H
/* * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ #ifndef MEM_H #define MEM_H void *nbd_malloc (size_t n) __attribute__((malloc)); void nbd_free (void *x) __attribute__((nonnull)); #endif//MEM_H
Remove a warning from NBDS.
Remove a warning from NBDS.
C
mit
eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf
450fc5d62732ee8a97220114a02c8393c1b67182
include/kernel.h
include/kernel.h
#ifndef __KERNEL_H__ #define __KERNEL_H__ #include <task.h> typedef struct kernel_global { TaskList *task_list; } KernelGlobal; #define TASK_MAX 30 #define TASK_STACK_SIZE 1000 #define TASK_PRIORITY_MAX 10 #define SWI_ENTRY_POINT 0x28 #define DATA_REGION_BASE 0x218000 #define CPU_MODE_USER 0x10 #define CPU_MODE_S...
#ifndef __KERNEL_H__ #define __KERNEL_H__ #include <task.h> typedef struct kernel_global { TaskList *tlist; FreeList *flist; } KernelGlobal; #define TASK_MAX 30 #define TASK_STACK_SIZE 512 #define TASK_PRIORITY_MAX 10 #define SWI_ENTRY_POINT 0x28 #define DATA_REGION_BASE 0x218000 #define CPU_MODE_USER 0x10 #defi...
Modify KernelGlobal structure; decrease TASK_STACK_SIZE
Modify KernelGlobal structure; decrease TASK_STACK_SIZE
C
mit
gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel
a726bc24664b69fd2f5899dab2a6155d3bd6b963
Core/CoreDefines.h
Core/CoreDefines.h
// For conditions of distribution and use, see copyright notice in license.txt #ifndef incl_CoreDefines_h #define incl_CoreDefines_h // useful defines #define SAFE_DELETE(p) { delete p; p=0; } #define SAFE_DELETE_ARRAY(p) { delete [] p; p=0; } #define NUMELEMS(x) (sizeof(x)/sizeof(x[0])) /// Use this template to d...
// For conditions of distribution and use, see copyright notice in license.txt #ifndef incl_CoreDefines_h #define incl_CoreDefines_h // useful defines #define SAFE_DELETE(p) { delete p; p=0; } #define SAFE_DELETE_ARRAY(p) { delete [] p; p=0; } #define NUMELEMS(x) (sizeof(x)/sizeof(x[0])) /// Use this template to d...
Fix checked_static_cast to allow null pointers.
Fix checked_static_cast to allow null pointers.
C
apache-2.0
antont/tundra,jesterKing/naali,antont/tundra,antont/tundra,realXtend/tundra,pharos3d/tundra,jesterKing/naali,jesterKing/naali,AlphaStaxLLC/tundra,antont/tundra,BogusCurry/tundra,BogusCurry/tundra,BogusCurry/tundra,antont/tundra,realXtend/tundra,jesterKing/naali,AlphaStaxLLC/tundra,pharos3d/tundra,AlphaStaxLLC/tundra,Bo...
abd31a208639f0be773f35d1c161fe7fdcb138db
src/main/entity/components/SkillComponent.h
src/main/entity/components/SkillComponent.h
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for identifying different skills. */ enum skill_t { NOSK...
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for identifying different skills. */ enum skill_t { Mele...
Fix PARENT_SKILLS declaration; remove NOSKILL
Fix PARENT_SKILLS declaration; remove NOSKILL Why would anyone want to be unskilled anyway?
C
mit
Kromey/roglick
5a0d65b27682ea330b8d2c88edae4ff9e44f8098
src/plugins/crypto/compile_gcrypt.c
src/plugins/crypto/compile_gcrypt.c
/** * @file * * @brief tests if compilation works (include and build paths set correct, etc...) * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <gcrypt.h> gcry_cipher_hd_t nothing () { gcry_cipher_hd_t elektraCryptoHandle = NULL; return elektraCryptoHandle; } int main...
/** * @file * * @brief tests if compilation works (include and build paths set correct, etc...) * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <gcrypt.h> gcry_cipher_hd_t nothing (void) { gcry_cipher_hd_t elektraCryptoHandle = NULL; return elektraCryptoHandle; } int ...
Fix warning in GCrypt test program
Crypto: Fix warning in GCrypt test program
C
bsd-3-clause
e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,e1528532/libelektra,e1528532/libelektra,BernhardDenner/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,pe...
e280eda845dd538c8e37d2d5e526d242e3099d41
tests/regression/08-malloc_null/02-paths-malloc.c
tests/regression/08-malloc_null/02-paths-malloc.c
// PARAM: --set ana.activated "['base','threadid','threadflag','escape','malloc_null','mallocWrapper']" --set ana.base.privatization none #include <stdlib.h> #include <stdio.h> #include <assert.h> int main(void) { int *v, *u, r; u = (int*)malloc(sizeof(*u)); v = (int*)malloc(sizeof(*v)); *u = 10; // WARN ...
// PARAM: --set ana.activated "['base','threadid','threadflag','escape','malloc_null','mallocWrapper']" --set ana.base.privatization none #include <stdlib.h> #include <stdio.h> #include <assert.h> int main(void) { int *v, *u, r; u = (int*)malloc(sizeof(*u)); v = (int*)malloc(sizeof(*v)); *u = 10; // WARN ...
Remove unnecessary assert(0) from 08/02
Remove unnecessary assert(0) from 08/02
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
1c0b391419b035f78b41ee3bce8934f42896eef2
browser/ui/atom_event_processing_window.h
browser/ui/atom_event_processing_window.h
// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #define ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #import <Cocoa/Cocoa.h> // Override NSWindow ...
// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #define ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #import <Cocoa/Cocoa.h> #import "ui/base/coco...
Fix the black devtools view.
Fix the black devtools view. Without using UnderlayOpenGLHostingWindow the devtools view would just be black.
C
mit
baiwyc119/electron,IonicaBizauKitchen/electron,farmisen/electron,dahal/electron,bright-sparks/electron,darwin/electron,sky7sea/electron,greyhwndz/electron,sircharleswatson/electron,vipulroxx/electron,JesselJohn/electron,vaginessa/electron,hokein/atom-shell,thomsonreuters/electron,kenmozi/electron,brave/muon,Zagorakiss/...
a94d0b43cf4cf548d828fec548790a6da073bec1
include/paper.h
include/paper.h
#ifndef PAPER_H #define PAPER_H #include <stdbool.h> bool paper_is_start_of_first_word(char *ptr) { // Lookback and check if that is a NUL then check that we aren't // currently on a space. return (*(ptr - 1) == KATA_NUL && *ptr != KATA_SPACE); } bool paper_is_start_of_subsequent_word(char *ptr) { //...
#ifndef PAPER_H #define PAPER_H #include <stdbool.h> bool paper_is_start_of_first_word(size_t word_count, char *ptr) { return (word_count == 0 && *ptr != KATA_SPACE); } bool paper_is_start_of_subsequent_word(char *ptr) { // Lookback and see if the prior character was a space then check that // we aren't ...
Refactor to fix potential buffer overflow.
Refactor to fix potential buffer overflow.
C
mit
jbenner-radham/pencil-durability-kata-c
f19341dec7361451f100a882a023b14583454d7e
test/CFrontend/extern-weak.c
test/CFrontend/extern-weak.c
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc #if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) void foo() __attribute__((weak_import)); #else void foo() __attribute__((weak)); #endif void bar() { foo(); }
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc #if !defined(__linux__) && !defined(__FreeBSD__) && \ !defined(__OpenBSD__) && !defined(__CYGWIN__) void foo() __attribute__((weak_import)); #else void foo() __attribute__((weak)); #endif void ...
Make this pass for CYGWIN.
Make this pass for CYGWIN. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@44354 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llv...
1110425df2e58bdaeb623f9c3a8de84bccee7381
test/Driver/noexecstack.c
test/Driver/noexecstack.c
// RUN: clang -### %s -c -o tmp.o -Wa,--noexecstack | grep "-mnoexecstack"
// RUN: clang -### %s -c -o tmp.o -Wa,--noexecstack | grep "mnoexecstack"
Remove the leading hyphen so that grep doesn't parse it as one long option :)
Remove the leading hyphen so that grep doesn't parse it as one long option :) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@133491 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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
dc6f838f1d6b4c7dabaaaf0740e194298f9d4ff4
DDMathParser/DDMathParser.h
DDMathParser/DDMathParser.h
// // DDMathParser.h // DDMathParser // // Created by Dave DeLong on 11/20/10. // Copyright 2010 Home. All rights reserved. // #import "DDMathEvaluator.h" #import "DDExpression.h" #import "DDParser.h" #import "DDTypes.h" #import "NSString+DDMathParsing.h" #define DDRuleTemplateAnyNumber @"__num" #define DDRuleTem...
// // DDMathParser.h // DDMathParser // // Created by Dave DeLong on 11/20/10. // Copyright 2010 Home. All rights reserved. // #import "DDMathEvaluator.h" #import "DDExpression.h" #import "DDParser.h" #import "DDTypes.h" #import "NSString+DDMathParsing.h" #define DDRuleTemplateAnyNumber @"__num" #define DDRuleTem...
Fix default value of PERCENT_SIGN_AS_MOD
Fix default value of PERCENT_SIGN_AS_MOD
C
mit
mrackwitz/DDMathParser,davedelong/DDMathParser,carabina/DDMathParser,hyperoslo/HYPMathParser,carabina/DDMathParser,mrackwitz/DDMathParser,davedelong/DDMathParser
3440d0b857fa6def37c1a4185ac9602be2393c9c
tools/obj2yaml/obj2yaml.h
tools/obj2yaml/obj2yaml.h
//===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // // This file declares some helper routines, and also the for...
//===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // // This file declares some helper routines, and also the for...
Fix include guards to match new location.
Fix include guards to match new location. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@178877 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers...
691cb4414e03ca9cf56b86cf76740078c4208080
include/frozen/bits/constexpr_assert.h
include/frozen/bits/constexpr_assert.h
/* * Frozen * Copyright 2016 QuarksLab * * 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 Lice...
/* * Frozen * Copyright 2016 QuarksLab * * 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 Lice...
Use regular assert for static_assert, it's C++14 compatible
Use regular assert for static_assert, it's C++14 compatible works everywhere... but for MVSC :-/
C
apache-2.0
serge-sans-paille/frozen,serge-sans-paille/frozen
19350bd42ffbaec283ccb6caa9199accc2c8f074
generate/templates/manual/include/cleanup_handle.h
generate/templates/manual/include/cleanup_handle.h
#ifndef NODEGIT_CLEANUP_HANDLE_H #define NODEGIT_CLEANUP_HANDLE_H #include <map> #include <memory> namespace nodegit { class CleanupHandle { public: CleanupHandle(); virtual ~CleanupHandle(); }; class FilterRegistryCleanupHandles : public CleanupHandle { public: std::map<std::string, std::share...
#ifndef NODEGIT_CLEANUP_HANDLE_H #define NODEGIT_CLEANUP_HANDLE_H #include <map> #include <memory> #include <string> namespace nodegit { class CleanupHandle { public: CleanupHandle(); virtual ~CleanupHandle(); }; class FilterRegistryCleanupHandles : public CleanupHandle { public: std::map<std::...
Fix a reference error when compiling with VC2019
Fix a reference error when compiling with VC2019
C
mit
nodegit/nodegit,jmurzy/nodegit,nodegit/nodegit,jmurzy/nodegit,jmurzy/nodegit,nodegit/nodegit,jmurzy/nodegit,nodegit/nodegit,nodegit/nodegit,jmurzy/nodegit
46d81f2bcfa56dc2579d26b1d38b86051119c7ca
src/Core/Framework/QScriptEngineHelpers.h
src/Core/Framework/QScriptEngineHelpers.h
// For conditions of distribution and use, see copyright notice in license.txt #include <QScriptEngine> #include <QMetaType> // The following functions help register a custom QObject-derived class to a QScriptEngine. // See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html . template <typename Tp> QSc...
// For conditions of distribution and use, see copyright notice in license.txt #include <QScriptEngine> #include <QMetaType> // The following functions help register a custom QObject-derived class to a QScriptEngine. // See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html . template <typename Tp> QSc...
Use dynamic_cast in qScriptValueToQObject as qobject_cast fails for some metatypes such as Entity*. However, assert that if dynamic_cast is null, so is qobject_cast.
Use dynamic_cast in qScriptValueToQObject as qobject_cast fails for some metatypes such as Entity*. However, assert that if dynamic_cast is null, so is qobject_cast.
C
apache-2.0
realXtend/tundra,jesterKing/naali,pharos3d/tundra,jesterKing/naali,jesterKing/naali,AlphaStaxLLC/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,jesterKing/naali,pharos3d/tundra,jesterKing/naali,AlphaStaxLLC/tundra,jesterKing/naali,BogusCurry/tundra,jesterKing/naali,BogusCurry/tundra,BogusCurry/tundra,pharos3d/tundra,real...
ade2938ab94b28aa3dd2574bf5752e1e5a8c6641
libavutil/pca.h
libavutil/pca.h
/* * Principal component analysis * Copyright (c) 2004 Michael Niedermayer <michaelni@gmx.at> * * 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 of the License, o...
/* * Principal component analysis * Copyright (c) 2004 Michael Niedermayer <michaelni@gmx.at> * * 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 of the License, o...
Add prototypes to header (based on code by ramiro)
Add prototypes to header (based on code by ramiro) git-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@14808 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
C
lgpl-2.1
prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg
114548ece9c6664d069e3e8db33e04a5e74acf75
ADX2Manager/ADX2Manager.h
ADX2Manager/ADX2Manager.h
#ifndef CCADX2Manager_Manager_h #define CCADX2Manager_Manager_h #include "Manager.h" #include "CueSheet.h" #endif
#ifndef CCADX2Manager_Manager_h #define CCADX2Manager_Manager_h #include "Manager.h" #include "CueSheet.h" #include "SharedCueSheet.h" #endif
Add SharedCueSheet to global headers
Add SharedCueSheet to global headers
C
mit
giginet/CCADX2Manager,giginet/CCADX2Manager,giginet/CCADX2Manager,giginet/CCADX2Manager
67c6e446503055f3b29f2ecd8269b09f5743ab85
insts/jg/FREEVERB/denormals.h
insts/jg/FREEVERB/denormals.h
// Macro for killing denormalled numbers // // Written by Jezar at Dreampoint, June 2000 // http://www.dreampoint.co.uk // Based on IS_DENORMAL macro by Jon Watte // This code is public domain #ifndef _denormals_ #define _denormals_ #if 0 #define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f8000...
// Macro for killing denormalled numbers // // Written by Jezar at Dreampoint, June 2000 // http://www.dreampoint.co.uk // Based on IS_DENORMAL macro by Jon Watte // This code is public domain #ifndef _denormals_ #define _denormals_ #if defined(i386) #ifdef NOMORE // original code doesn't work on recent ...
Replace denormalise macro, broken on recent gcc's.
Replace denormalise macro, broken on recent gcc's.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
e0da7bce8c184f72a42a49990b8de158ab828423
platform/shared/common/RhoFatalError.h
platform/shared/common/RhoFatalError.h
#ifndef _RHOFATALERROR_H_ #define _RHOFATALERROR_H_ #include "RhoPort.h" #ifdef OS_SYMBIAN #include <e32std.h> #endif namespace rho{ namespace common{ class CRhoFatalError{ public: static void processFatalError(){ #ifdef RHO_DEBUG #if defined (OS_WINDOWS) //__debugbreak(); ...
#ifndef _RHOFATALERROR_H_ #define _RHOFATALERROR_H_ #include "RhoPort.h" #ifdef OS_SYMBIAN #include <e32std.h> #endif namespace rho{ namespace common{ class CRhoFatalError{ public: static void processFatalError(){ #ifdef RHO_DEBUG #if defined (OS_WINDOWS) //__debugbreak(); ...
Support RHO_ASSERT in Debug mode
Support RHO_ASSERT in Debug mode
C
mit
pslgoh/rhodes,UIKit0/rhodes,louisatome/rhodes,rhosilver/rhodes-1,pslgoh/rhodes,nosolosoftware/rhodes,UIKit0/rhodes,louisatome/rhodes,rhomobile/rhodes,watusi/rhodes,jdrider/rhodes,tauplatform/tau,pslgoh/rhodes,rhosilver/rhodes-1,pslgoh/rhodes,pslgoh/rhodes,watusi/rhodes,rhomobile/rhodes,UIKit0/rhodes,tauplatform/tau,rho...
a6b10190b8c629901b451a1519b49e2cee2bb4e1
ouzel/scene/SceneManager.h
ouzel/scene/SceneManager.h
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include "utils/Types.h" #include "utils/Noncopyable.h" namespace ouzel { class Engine; namespace scene { class SceneManager: public Noncopyable { friend Engine; public: ...
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include "utils/Types.h" #include "utils/Noncopyable.h" namespace ouzel { class Engine; namespace scene { class SceneManager: public Noncopyable { friend Engine; public: ...
Set scene and nextScene to null
Set scene and nextScene to null
C
unlicense
elvman/ouzel,elvman/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel
c018da163f50acc6add9df3d74905ec150ce8573
generate/templates/manual/include/callback_wrapper.h
generate/templates/manual/include/callback_wrapper.h
#ifndef CALLBACK_WRAPPER_H #define CALLBACK_WRAPPER_H #include <nan.h> #include <uv.h> using namespace v8; using namespace node; class CallbackWrapper { Nan::Callback* jsCallback; // throttling data, used for callbacks that need to be throttled int throttle; // in milliseconds - if > 0, calls to the JS callba...
#ifndef CALLBACK_WRAPPER_H #define CALLBACK_WRAPPER_H #include <nan.h> #include <uv.h> using namespace v8; using namespace node; class CallbackWrapper { Nan::Callback* jsCallback; // throttling data, used for callbacks that need to be throttled int throttle; // in milliseconds - if > 0, calls to the JS callba...
Use wider int to calculate throttle window
Use wider int to calculate throttle window
C
mit
nodegit/nodegit,jmurzy/nodegit,jmurzy/nodegit,jmurzy/nodegit,nodegit/nodegit,nodegit/nodegit,nodegit/nodegit,nodegit/nodegit,jmurzy/nodegit,jmurzy/nodegit
cb094452ae663fbc04e8f7c01f3864dee30bf98f
protocols/jabber/jingle/libjingle/talk/base/base64.h
protocols/jabber/jingle/libjingle/talk/base/base64.h
//********************************************************************* //* C_Base64 - a simple base64 encoder and decoder. //* //* Copyright (c) 1999, Bob Withers - bwit@pobox.com //* //* This code may be freely used for any purpose, either personal //* or commercial, provided the authors copyright notice remains...
//********************************************************************* //* C_Base64 - a simple base64 encoder and decoder. //* //* Copyright (c) 1999, Bob Withers - bwit@pobox.com //* //* This code may be freely used for any purpose, either personal //* or commercial, provided the authors copyright notice remains...
Make it build with gcc 4.1
Make it build with gcc 4.1 svn path=/branches/kopete/0.12/kopete/; revision=518337
C
lgpl-2.1
josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete
b6d178b4dcb894180356c445b8cde644e7dc4327
Squirrel/SQRLShipItLauncher.h
Squirrel/SQRLShipItLauncher.h
// // SQRLShipItLauncher.h // Squirrel // // Created by Justin Spahr-Summers on 2013-08-12. // Copyright (c) 2013 GitHub. All rights reserved. // #import <Foundation/Foundation.h> // The domain for errors originating within SQRLShipItLauncher. extern NSString * const SQRLShipItLauncherErrorDomain; // The ShipIt ...
// // SQRLShipItLauncher.h // Squirrel // // Created by Justin Spahr-Summers on 2013-08-12. // Copyright (c) 2013 GitHub. All rights reserved. // #import <Foundation/Foundation.h> // The domain for errors originating within SQRLShipItLauncher. extern NSString * const SQRLShipItLauncherErrorDomain; // The ShipIt ...
Clarify XPC connection lifecycle for -launch:
Clarify XPC connection lifecycle for -launch:
C
mit
emiscience/Squirrel.Mac,EdZava/Squirrel.Mac,Squirrel/Squirrel.Mac,EdZava/Squirrel.Mac,Squirrel/Squirrel.Mac,emiscience/Squirrel.Mac,EdZava/Squirrel.Mac,emiscience/Squirrel.Mac,Squirrel/Squirrel.Mac
e3a82a7ee478b4693a7f250004d628e822c105ed
src/bin/e_acpi.h
src/bin/e_acpi.h
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_LID, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_WIFI } E_Acpi_Type; /* struct used to pass to event handlers */ typedef struct _E_Event_Acpi E_Event_Acp...
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_FAN, E_ACPI_TYPE_LID, E_ACPI_TYPE_PROCESSOR, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_POWER, E_ACPI_TYPE_THERMAL, E_ACPI_TYPE_VIDEO, E_A...
Add some more acpi event types that we will handle.
Add some more acpi event types that we will handle. git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@48916 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
02b194c36659bfd85485aded4e52c3e587df48b0
Runtime/Rendering/BufferDX11.h
Runtime/Rendering/BufferDX11.h
#pragma once #include "ResourceDX11.h" namespace Mile { class MEAPI BufferDX11 : public ResourceDX11 { public: BufferDX11( RendererDX11* renderer ) : m_buffer( nullptr ), ResourceDX11( renderer ) { } ~BufferDX11( ) { SafeRelease( m_buffer ); ...
#pragma once #include "ResourceDX11.h" namespace Mile { class MEAPI BufferDX11 : public ResourceDX11 { public: BufferDX11( RendererDX11* renderer ) : m_buffer( nullptr ), ResourceDX11( renderer ) { } ~BufferDX11( ) { SafeRelease( m_buffer ); ...
Modify UnMap function return boolean value that succesfully unmaped.
Modify UnMap function return boolean value that succesfully unmaped.
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
eff92ef21f2853cdde235b81b3e4427ce122787d
xFaceLib/xFaceLib/Classes/runtime/XViewController.h
xFaceLib/xFaceLib/Classes/runtime/XViewController.h
/* This file was modified from or inspired by Apache Cordova. 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 Ap...
/* This file was modified from or inspired by Apache Cordova. 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 Ap...
Update the way of importing CDVViewController to avoid compiler warning when using xFaceLib in 3rd party.
Update the way of importing CDVViewController to avoid compiler warning when using xFaceLib in 3rd party.
C
apache-2.0
polyvi/xface-ios,polyvi/xface-ios,polyvi/xface-ios,polyvi/xface-ios
aafe9cec55a481c7982611fd491279c44b2bab41
LinkedList/linkedList.c
LinkedList/linkedList.c
#include <stdio.h> #include <stdlib.h> #ifndef LINKED_LIST_H #define LINKED_LIST_H #include "linkedList.h" #endif struct Node { int data; struct Node* next; }; int main(int arc, char **argc) { // Create size for the nodes struct Node* head = malloc(sizeof(struct Node)); struct Node* middle = malloc(sizeof(st...
#include <stdio.h> #include <stdlib.h> #ifndef LINKED_LIST_H #define LINKED_LIST_H #include "linkedList.h" #endif struct Node { int data; struct Node* next; }; bool hasNode(struct Node* head, int data) { return true; } int main(int arc, char **argc) { // Create size for the nodes struct Node* head = malloc(...
Add base struct for hasNode.
Add base struct for hasNode.
C
mit
karysto/c-datastructures,karysto/c-datastructures
6ba1561ebea8ed03aa36e1aaa4892a53f9bc9496
php_extcss3.h
php_extcss3.h
#ifndef PHP_EXTCSS3_H #define PHP_EXTCSS3_H #include <php.h> #include "extcss3/types.h" #define PHP_EXTCSS3_EXTNAME "extcss3" #define PHP_EXTCSS3_EXTVER "1.0.0" #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ extern zend_module_entry extcss3_module_entry; #define phpext_extcss3_ptr &extcss3_mo...
#ifndef PHP_EXTCSS3_H #define PHP_EXTCSS3_H #include <php.h> #include "extcss3/types.h" #define PHP_EXTCSS3_EXTNAME "extcss3" #define PHP_EXTCSS3_EXTVER "1.0.1" #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ extern zend_module_entry extcss3_module_entry; #define phpext_extcss3_ptr &extcss3_mo...
Change the version to `1.0.1`
Change the version to `1.0.1`
C
mit
sevenval/php-ext-css,sevenval/php-ext-css,sevenval/php-ext-css
b4efe8788da54f5fd42311a4cc8d8d432b181167
project_config/lmic_project_config.h
project_config/lmic_project_config.h
// project-specific definitions for otaa sensor //#define CFG_eu868 1 //#define CFG_us915 1 //#define CFG_au921 1 #define CFG_as923 1 #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS
// project-specific definitions for otaa sensor //#define CFG_eu868 1 //#define CFG_us915 1 //#define CFG_au921 1 #define CFG_as923 1 #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS #define LMIC_DEBUG_LEVEL 2 #define LMIC_DEBUG_PRINTF_FN lm...
Set debug level to 2 and use a suitable printf function
Set debug level to 2 and use a suitable printf function
C
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
b621f9804b8dc2274d9d990eb074978151c6d09d
portable_io.c
portable_io.c
#include <stdio.h> #include "portable_io.h" char Prbuf[MAXLLEN]; //将输入输出函数包出来. void portable_puts(char* buf){ while((*buf)!=0){ putchar(*buf); buf++; } } void portable_input_int(int* val){ portable_gets(Prbuf); sscanf(Prbuf, "%d", val); } void portable_gets(char* buf){ gets(buf); }
#include <stdio.h> #include "portable_io.h" char Prbuf[MAXLLEN]; //将输入输出函数包出来. void portable_puts(char* buf){ while((*buf)!=0){ putchar(*buf); buf++; } } void portable_input_int(int* val){ portable_gets(Prbuf); sscanf(Prbuf, "%d", val); } void portable_gets(char* buf){ fgets(buf, MAXLLEN, stdin); }
Change gets to fgets, because gets is unsafe
Change gets to fgets, because gets is unsafe We had to make a pull request to a project with some unsafe C code to make it more secure. This project was the lucky one. Have fun with the security improvements :)
C
mit
sunzx/TarielBASIC,sunzx/TarielBASIC
1154cd8ae5e2835514a5d890d68d082b7dfe26d1
hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c
hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c
#include <stdlib.h> #include "stdlib_noniso.h" long atol_internal(const char* s) { return 0; } float atof_internal(const char* s) { return 0; } char * itoa (int val, char *s, int radix) { *s = 0; return s; } char * ltoa (long val, char *s, int radix) { *s = 0; return s; } char * utoa (unsigned int val...
#include <stdlib.h> #include "stdlib_noniso.h" extern int ets_sprintf(char*, const char*, ...); #define sprintf ets_sprintf long atol_internal(const char* s) { long result = 0; return result; } float atof_internal(const char* s) { float result = 0; return result; } char * itoa (int val, char *s, int radix...
Add stubs for itoa, ltoa
Add stubs for itoa, ltoa
C
lgpl-2.1
leftbrainstrain/Arduino-ESP8266,mateuszdw/Arduino,aichi/Arduino-2,paulmand3l/Arduino,NeuralSpaz/Arduino,piersoft/esp8266-Arduino,myrtleTree33/Arduino,piersoft/esp8266-Arduino,ogahara/Arduino,weera00/Arduino,mateuszdw/Arduino,toddtreece/esp8266-Arduino,Cloudino/Arduino,Protoneer/Arduino,mattvenn/Arduino,paulo-raca/ESP82...
bf4ff33e22ae48df8793db370efb85024443fc43
include/llvm/Bytecode/Reader.h
include/llvm/Bytecode/Reader.h
//===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=// // // This functionality is implemented by the lib/Bytecode/Reader library. // This library is used to read VM bytecode files from an iostream. // // Note that performance of this library is _crucial_ for performance of the // JIT type app...
//===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=// // // This functionality is implemented by the lib/Bytecode/Reader library. // This library is used to read VM bytecode files from an iostream. // // Note that performance of this library is _crucial_ for performance of the // JIT type app...
Add information about the module source
Add information about the module source git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5837 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift...
b0e63575233eace638e73b198167f38705ded905
primitiv/c/api.h
primitiv/c/api.h
/* Copyright 2017 The primitiv Authors. All Rights Reserved. */ #ifndef PRIMITIV_C_API_H_ #define PRIMITIV_C_API_H_ #include <primitiv/config.h> #include <primitiv/c/graph.h> #include <primitiv/c/initializer_impl.h> #include <primitiv/c/model.h> #include <primitiv/c/naive_device.h> #include <primitiv/c/functions.h> ...
/* Copyright 2017 The primitiv Authors. All Rights Reserved. */ #ifndef PRIMITIV_C_API_H_ #define PRIMITIV_C_API_H_ #include <primitiv/config.h> #include <primitiv/c/graph.h> #include <primitiv/c/initializer_impl.h> #include <primitiv/c/model.h> #include <primitiv/c/naive_device.h> #include <primitiv/c/functions.h> ...
Add endif statement to the C API header.
Add endif statement to the C API header.
C
apache-2.0
odashi/primitiv,odashi/primitiv,odashi/primitiv
d484ae979059e596c9fb1d4fb02008f86b0e1bd6
Pinmark/NSURL+Pinmark.h
Pinmark/NSURL+Pinmark.h
// // NSURL+Pinmark.h // Pinmark // // Created by Kyle Stevens on 12/24/13. // Copyright (c) 2013 kilovolt42. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (Pinmark) - (NSDictionary *)queryParameters; @end
// // NSURL+Pinmark.h // Pinmark // // Created by Kyle Stevens on 12/24/13. // Copyright (c) 2013 kilovolt42. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (Pinmark) /** * Creates a dictionary of the query parameters in which fields are keys for the corresponding values. * Does not...
Add documentation for NSURL category
Add documentation for NSURL category
C
mit
kilovolt42/Pinmarker,kilovolt42/Pinmarker,kilovolt42/Pinmarker
d1fcb30ab60fc32525798a3992e5db0256f5ce71
src/qblowfish.h
src/qblowfish.h
#ifndef QBLOWFISH_H #define QBLOWFISH_H #include <QByteArray> class QBlowfish { public: QBlowfish(const QByteArray &key); bool init(); // Padding: // // Blowfish works on 8-byte blocks. Padding makes it usable even // in case where the input size is not in exact 8-byte blocks. // // I...
#ifndef QBLOWFISH_H #define QBLOWFISH_H #include <QByteArray> class QBlowfish { public: QBlowfish(const QByteArray &key); bool init(); // Padding: // // Blowfish works on 8-byte blocks. Padding makes it usable even // in case where the input size is not in exact 8-byte blocks. // // I...
Fix comment to reflect the change in the function name
Fix comment to reflect the change in the function name
C
mit
roop/qblowfish,roop/qblowfish
17fec70022c30695ca9a1cbaab4494f92668a317
tests/variable.h
tests/variable.h
#ifndef __VARIABLE_H__ #define __VARAIBLE_H__ typedef struct { double weight; double sum; double sum2; } Variable; #define VARIABLE_INIT { 0.0, 0.0, 0.0 } void variable_init (Variable *variable); void variable_add_weighted (Variable *variable, double ...
#ifndef __VARIABLE_H__ #define __VARIABLE_H__ typedef struct { double weight; double sum; double sum2; } Variable; #define VARIABLE_INIT { 0.0, 0.0, 0.0 } void variable_init (Variable *variable); void variable_add_weighted (Variable *variable, double ...
Fix another header guard oversight
Fix another header guard oversight Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741252
C
lgpl-2.1
davidgumberg/gtk,ahodesuka/gtk,davidgumberg/gtk,jadahl/gtk,alexlarsson/gtk,jigpu/gtk,alexlarsson/gtk,ahodesuka/gtk,chergert/gtk,chergert/gtk,ahodesuka/gtk,grubersjoe/adwaita,jigpu/gtk,grubersjoe/adwaita,Lyude/gtk-,davidgumberg/gtk,grubersjoe/adwaita,jadahl/gtk,jigpu/gtk,jadahl/gtk,jigpu/gtk,Lyude/gtk-,davidgumberg/gtk,...
7ec36884712e027f5c4a9124f5b5994b8b5b4db0
src/bin/e_acpi.h
src/bin/e_acpi.h
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_LID, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_WIFI } E_Acpi_Type; /* struct used to pass to event handlers */ typedef struct _E_Event_Acpi E_Event_Acp...
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_FAN, E_ACPI_TYPE_LID, E_ACPI_TYPE_PROCESSOR, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_POWER, E_ACPI_TYPE_THERMAL, E_ACPI_TYPE_VIDEO, E_A...
Add some more acpi event types that we will handle.
Add some more acpi event types that we will handle. SVN revision: 48916
C
bsd-2-clause
tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment
3af52b4c0ff95af8344cacd16a2cee827d6301cc
source/main.c
source/main.c
#include <stdio.h> int main(void) { return(0); }
#include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <ncurses.h> struct winsize terminalSize; void initScreen(void) { initscr(); noecho(); nocbreak(); } void closeScreen(void) { endwin(); } void getScreenSize(void) { if (ioctl(0, TIOCGWINSZ, (char *) &terminalSize) < 0) { printf("The progra...
Add the initial NCurses support for the program.
Add the initial NCurses support for the program.
C
unlicense
pacmanalx/fastview,pacmanalx/fastview
87a44bd8909a9961fa4e909d2e199920061d08e0
src/control.h
src/control.h
/** * File: control.h * Author: Alex Savarda */ #ifndef CONTROL_H #define CONTROL_H typedef struct { unsigned int d_srcA; unsigned int d_srcB; unsigned int E_dstM; unsigned int e_Cnd; unsigned int D_icode; unsigned int E_icode; unsigned int M_icode; } controlType; #endif /* CONTROL_H...
/* * File: control.h * Author: Alex Savarda */ #ifndef CONTROL_H #define CONTROL_H typedef struct { unsigned int d_srcA; unsigned int d_srcB; unsigned int E_dstM; unsigned int e_Cnd; unsigned int D_icode; unsigned int E_icode; unsigned int M_icode; } controlType; #endif /* CONTROL_H ...
Change header to C style.
Change header to C style.
C
isc
sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS
73e7eee167ec59d1b908c59a143ba88ef0dff2ad
xhyve-manager.c
xhyve-manager.c
// System #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> // Preprocessed #define PROGRAM_EXEC 0 #define COMMAND 1 #define MACHINE_NAME 2 // Commands #define LIST_COMMAND "list" void list_machines() { fprintf(stdout, "Here be a list of machines:\n"); fprintf(stdout, " - default\n"...
/** * xhyve-manager * a simple CLI utility to manage xhyve virtual machines. **/ // System #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> // Preprocessed #define PROGRAM_EXEC 0 #define COMMAND 1 #define MACHINE_NAME 2 // Valid Commands char *commands[] = { "list", "create", "...
Add array of valid commands.
Add array of valid commands.
C
bsd-3-clause
0x414A/xhyve-manager
025fba5a10df4643626c91c96c8ecf2042b19218
cocos2d-ui/cocos2d-ui.h
cocos2d-ui/cocos2d-ui.h
/* * cocos2d for iPhone: http://www.cocos2d-iphone.org * * Copyright (c) 2013 Apportable Inc. * * 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 l...
/* * cocos2d for iPhone: http://www.cocos2d-iphone.org * * Copyright (c) 2013 Apportable Inc. * * 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 l...
Add CCSlider to the UI headers
Add CCSlider to the UI headers Former-commit-id: ea90510d6f80d76b2f53ba1e2bc469e9304eb642
C
mit
DNESS/cocos2d-objc,richardgroves/cocos2d-iphone,tambarskjelve/cocos2d-objc,jason-puck/cocos2d-iphone,SuPair/cocos2d-objc,yaoxiaoyong/cocos2d-objc,seem-sky/cocos2d-swift,cogddo/cocos2d-objc,oxeron/cocos2d-objc,dnessorga/cocos2d-objc,codepython/cocos2d-objc,codepython/cocos2d-objc,zaneLou/cocos2d-objc,SuPair/cocos2d-objc...
27b3c2fae342747e25b76eb82524650fde42ed47
src/compiler_llvm/utils_llvm.h
src/compiler_llvm/utils_llvm.h
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
Abort LLVM in debug builds when the IR doesn't verify.
Abort LLVM in debug builds when the IR doesn't verify. Change-Id: I71a035b260c895adde21ba90c84afa1f0b0ec997
C
apache-2.0
treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst
bf945fd0e8808702fe10a6375e696b96fb5512f8
insert_mode.c
insert_mode.c
#include "mode.h" #include <ctype.h> #include <termbox.h> #include "buffer.h" #include "gap.h" #include "editor.h" static void insert_mode_entered(editor_t *editor) { editor_status_msg(editor, "-- INSERT --"); } static void insert_mode_key_pressed(editor_t* editor, struct tb_event* ev) { buffer_t *buffer = edit...
#include "mode.h" #include <ctype.h> #include <termbox.h> #include "buffer.h" #include "gap.h" #include "editor.h" static void insert_mode_entered(editor_t *editor) { editor_status_msg(editor, "-- INSERT --"); } static void insert_mode_key_pressed(editor_t* editor, struct tb_event* ev) { buffer_t *buffer = edit...
Fix backspace at start of file.
Fix backspace at start of file.
C
mit
isbadawi/badavi
14e47d26ce9d896bc47e4873175013c529e14e4c
PcapDotNet/src/PcapDotNet.Core/PacketTotalStatistics.h
PcapDotNet/src/PcapDotNet.Core/PacketTotalStatistics.h
#pragma once #include "PcapDeclarations.h" namespace PcapDotNet { namespace Core { /// <summary> /// Statistics on capture from the start of the run. /// </summary> public ref class PacketTotalStatistics sealed : System::IEquatable<PacketTotalStatistics^> { public: /// <s...
#pragma once #include "PcapDeclarations.h" namespace PcapDotNet { namespace Core { /// <summary> /// Statistics on capture from the start of the run. /// </summary> public ref class PacketTotalStatistics sealed : System::IEquatable<PacketTotalStatistics^> { public: /// <s...
Add a TODO to update PacketsDroppedByInterface documentation when it gets supported.
Add a TODO to update PacketsDroppedByInterface documentation when it gets supported.
C
bsd-3-clause
prvillagra/Pcap.Net,bricknerb/Pcap.Net,OperatorOverload/Pcap.Net,suarez-duran-m/pcap-pade,petredimov/Pcap.Net,giokats/Pcap.Net,OperatorOverload/Pcap.Net,suarez-duran-m/pcap-pade,bricknerb/Pcap.Net,prvillagra/Pcap.Net,bricknerb/Pcap.Net,giokats/Pcap.Net,petredimov/Pcap.Net,suarez-duran-m/pcap-pade,OperatorOverload/Pcap....
3ff4727396312ce53c2b78a111bfb8d691148751
cbits/check-mx.c
cbits/check-mx.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netinet/in.h> #include <resolv.h> int check_mx(char *domain) { u_char nsbuf[4096]; return res_query(domain, ns_c_any, ns_t_mx, nsbuf, sizeof (nsbuf)) > 0; }
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netinet/in.h> #include <resolv.h> int check_mx(char *domain) { u_char nsbuf[4096]; return res_query(domain, ns_c_in, ns_t_mx, nsbuf, sizeof (nsbuf)) > 0; }
Use C_IN for class of information
Use C_IN for class of information
C
bsd-3-clause
qoelet/check-email,chrisdone/check-email
be7f76e0718737cf7db3506572d8b933a3da0296
firmware/common/Motor/Motor.h
firmware/common/Motor/Motor.h
/* * Supemeca Never Dies 2017 * \file Motor.h * \date 17/03/2017 * \author Romain Reignier */ #pragma once #include "hal.h" #include "Motors.h" class Motor { friend class Motors; public: enum eDirection { FORWARD, BACKWARD }; static constexpr uint32_t kPwmFrequency{1000000}; static constexp...
/* * Supemeca Never Dies 2017 * \file Motor.h * \date 17/03/2017 * \author Romain Reignier */ #pragma once #include "hal.h" #include "Motors.h" class Motor { friend class Motors; public: enum eDirection { FORWARD, BACKWARD }; static constexpr uint32_t kPwmFrequency{10000}; static constexpr ...
Reduce PWM frequency to 500 Hz.
Reduce PWM frequency to 500 Hz.
C
apache-2.0
romainreignier/robot2017,romainreignier/robot2017,romainreignier/robot2017,romainreignier/robot2017
f7efdfd7b740d8d59015e14cb62ac6b3e68743da
Source/PureLayout.h
Source/PureLayout.h
// // PureLayout.h // v2.0.2 // https://github.com/smileyborg/PureLayout // // Copyright (c) 2014 Tyler Fox // // This code is distributed under the terms and conditions of the MIT license. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docum...
// // PureLayout.h // v2.0.2 // https://github.com/smileyborg/PureLayout // // Copyright (c) 2014 Tyler Fox // // This code is distributed under the terms and conditions of the MIT license. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docum...
Add newline to end of file
Add newline to end of file
C
mit
k214k/PureLayout,12207480/PureLayout,liuyujing/PureLayout,PureWiki/PureLayout,Joneze/PureLayout,pivotal-oscar/PureLayout,fhchina/PureLayout,FiftyThree/PureLayout,jiamaozheng/PureLayout,adachic/PureLayout,ppamorim/PureLayout,PureWiki/PureLayout,smileyborg/PureLayout,smileyborg/PureLayout,eleostech/PureLayout,lijie121210...
9e8a570d53cb8c545ec0c5fe296bcd6e0f657862
Source/config_lui.h
Source/config_lui.h
// Filename: config_lui.h // Created by: tobspr (28Aug14) // #ifndef CONFIG_LUI_H #define CONFIG_LUI_H #include "pandabase.h" #include "notifyCategoryProxy.h" #include "dconfig.h" // It is convenient to put these here for now. // #if (defined(WIN32_VC) || defined(WIN64_VC)) && !defined(CPPPARSER) && !defined(LINK_A...
// Filename: config_lui.h // Created by: tobspr (28Aug14) // #ifndef CONFIG_LUI_H #define CONFIG_LUI_H #include "pandabase.h" #include "notifyCategoryProxy.h" #include "dconfig.h" #define EXPCL_LUI EXPORT_CLASS #define EXPTP_LUI EXPORT_TEMPL ConfigureDecl(config_lui, EXPCL_LUI, EXPTP_LUI); NotifyCategoryDecl(lui, ...
Fix compilation on Linux with latest 1.10
Fix compilation on Linux with latest 1.10
C
mit
tobspr/LUI,tobspr/LUI,tobspr/LUI
a2cbe2b176bc027d46b9c17046e8df49c247c7bd
core/base/inc/TVersionCheck.h
core/base/inc/TVersionCheck.h
// @(#)root/base:$Id$ // Author: Fons Rademakers 9/5/2007 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/base:$Id$ // Author: Fons Rademakers 9/5/2007 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Move gVersionCheck into `ROOT::` (ROOT-10426):
Move gVersionCheck into `ROOT::` (ROOT-10426): This avoids deserializing the declaration when iterating over globals, which in turn avoids jitting the global needed by static init.
C
lgpl-2.1
olifre/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,root-mirror/root,karies/root,karies/root,karies/root,root-mirror/root,karies/root,karies/root,karies/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root...
20f3fbf3c7a108b75c5dc92f0fe1108cc3e9bab5
Josh_Zane_Sebastian/src/main.h
Josh_Zane_Sebastian/src/main.h
struct stack_node { struct stack_node *cdr; int data; char type; } struct subroutine { struct stack_node *nodes; int num_nodes; }
#define T_INT 0 #define T_CHAR 1 #define T_SBRTN 2 struct stack_node { struct stack_node *cdr; union node_data data; } union node_data { struct subroutine srtine; int numval; char type; } struct subroutine { struct stack_node *nodes; int num_nodes; }
Add types, allow for subroutines.
Add types, allow for subroutines.
C
mit
aacoppa/final,aacoppa/final
a8eed7df4a04d3a002a04f517efe46a7f9b5c603
src/compiler_llvm/utils_llvm.h
src/compiler_llvm/utils_llvm.h
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
Use uint32_t for compilation unit index instead of uint16_t.
Use uint32_t for compilation unit index instead of uint16_t. Change-Id: If89246e35c16a6b50942e0fe7dcc289234bbdfad
C
apache-2.0
treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst
fac8751ad9ac6eab7f5b86fe5fc82d1ca59a7b2a
src/ehl/isr_written_variable.h
src/ehl/isr_written_variable.h
#ifndef EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #define EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #include "rvalue.h" namespace ehl { template<typename T> class isr_written_variable { private: mutable volatile bool modified; volatile T value; public: isr_written_variable() = default; isr_writte...
#ifndef EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #define EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #include "rvalue.h" namespace ehl { template<typename T> class isr_written_variable { private: mutable volatile bool modified; volatile T value; public: isr_written_variable() = default; isr_writte...
Refactor to clean up isr written variable
Refactor to clean up isr written variable
C
mit
hiddeninplainsight/EmbeddedHelperLibrary,hiddeninplainsight/EmbeddedHelperLibrary,hiddeninplainsight/EmbeddedHelperLibrary,hiddeninplainsight/EmbeddedHelperLibrary
03951137c1867d52a47b69466ffb9986f60bd9af
wire.h
wire.h
#ifndef OPTITRACK_WIRE_H_ #define OPTITRACK_WIRE_H_ #include <stdint.h> typedef enum { NAT_PING = 0, NAT_PINGRESPONSE = 1, NAT_REQUEST = 2, NAT_RESPONSE = 3, NAT_REQUEST_MODELDEF = 4, NAT_MODELDEF = 5, NAT_REQUEST_FRAMEOFDATA = 6, NAT_FRAMEOFDATA = 7, NAT_MESSAGESTRING = 8, NAT...
#ifndef OPTITRACK_WIRE_H_ #define OPTITRACK_WIRE_H_ #include <stdint.h> typedef enum { NAT_PING = 0, NAT_PINGRESPONSE = 1, NAT_REQUEST = 2, NAT_RESPONSE = 3, NAT_REQUEST_MODELDEF = 4, NAT_MODELDEF = 5, NAT_REQUEST_FRAMEOFDATA = 6, NAT_FRAMEOFDATA = 7, NAT_MESSAGESTRING = 8, NAT...
Fix uchar vs. char in natnet_sender_t; add natnet_packet_t
Fix uchar vs. char in natnet_sender_t; add natnet_packet_t
C
bsd-2-clause
cg123/optitrack-depack,cg123/optitrack-depack
3d49470ecd745e1b9eee54a6f4dfdc507029a66b
Pod/Classes/LumberjackLogger.h
Pod/Classes/LumberjackLogger.h
// // LumberjackLogger.h // Pods // // Created by jiakai lian on 29/09/2015. // // #import <Foundation/Foundation.h> #import <CocoaLumberjack/CocoaLumberjack.h> //If you set the log level to DDLogLevelError, then you will only see Error statements. //If you set the log level to DDLogLevelWarn, then you will only s...
// // LumberjackLogger.h // Pods // // Created by jiakai lian on 29/09/2015. // // #import <Foundation/Foundation.h> #import <CocoaLumberjack/CocoaLumberjack.h> //If you set the log level to DDLogLevelError, then you will only see Error statements. //If you set the log level to DDLogLevelWarn, then you will only s...
Update the release log level
Update the release log level
C
mit
jiakai-lian/LumberjackLogger
09461ff2d6756f990eac8d26fd94b2d0bbe15e78
core/rgb_color.h
core/rgb_color.h
#ifndef TRN_RGB_COLOR_H #define TRN_RGB_COLOR_H #include <stdbool.h> typedef struct { float red; float green; float blue; } TrnColor; extern TrnColor const TRN_WHITE; extern TrnColor const TRN_RED; extern TrnColor const TRN_GREEN; extern TrnColor const TRN_BLUE; extern TrnColor const TRN_YELLOW; extern TrnColo...
#ifndef TRN_COLOR_H #define TRN_COLOR_H #include <stdbool.h> typedef struct { float red; float green; float blue; } TrnColor; extern TrnColor const TRN_WHITE; extern TrnColor const TRN_RED; extern TrnColor const TRN_GREEN; extern TrnColor const TRN_BLUE; extern TrnColor const TRN_YELLOW; extern TrnColor const ...
Make include guard name for color.h be compliant with our standard
Make include guard name for color.h be compliant with our standard
C
bsd-3-clause
sed-pro-inria/tetrinria,sed-pro-inria/tetrinria,sed-pro-inria/tetrinria
89bbc645af1622ffc4a7f1cc7e4509f2ca663139
adsbus/resolve.c
adsbus/resolve.c
#include <netdb.h> #include "asyncaddrinfo.h" #include "peer.h" #include "resolve.h" void resolve_init() { asyncaddrinfo_init(2); } void resolve_cleanup() { asyncaddrinfo_cleanup(); } void resolve(struct peer *peer, const char *node, const char *service, int flags) { struct addrinfo hints = { .ai_flags = AI_V...
#include <netdb.h> #include "asyncaddrinfo.h" #include "peer.h" #include "resolve.h" void resolve_init() { asyncaddrinfo_init(2); } void resolve_cleanup() { asyncaddrinfo_cleanup(); } void resolve(struct peer *peer, const char *node, const char *service, int flags) { struct addrinfo hints = { .ai_flags = AI_V...
Remove AI_ADDRCONFIG, since the netlink socket is missing CLOEXEC and gets inherited by children.
Remove AI_ADDRCONFIG, since the netlink socket is missing CLOEXEC and gets inherited by children.
C
apache-2.0
flamingcowtv/adsb-tools,flamingcowtv/adsb-tools,flamingcowtv/adsb-tools,flamingcowtv/adsb-tools
506d8e88ab8c28f052697127fb6ccdcc5a44649a
libedataserverui/gtk-compat.h
libedataserverui/gtk-compat.h
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.22 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if !GTK_CHECK_VERSION(2, 21, 0) #define gdk_drag_context_ge...
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.22 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if !GTK_CHECK_VERSION(2,21,2) #define gdk_drag_context_get_...
Set the GTK+ backward compatibility check to 2.21.2.
Set the GTK+ backward compatibility check to 2.21.2.
C
lgpl-2.1
Distrotech/evolution-data-server,tintou/evolution-data-server,tintou/evolution-data-server,tintou/evolution-data-server,matzipan/evolution-data-server,Distrotech/evolution-data-server,Distrotech/evolution-data-server,gcampax/evolution-data-server,matzipan/evolution-data-server,gcampax/evolution-data-server,tintou/evolu...
cc884148c3ba9903d9d2355cfd31ddbba3a2b77d
MatrixSDK/Data/ReplyEvent/Parser/MXReplyEventParser.h
MatrixSDK/Data/ReplyEvent/Parser/MXReplyEventParser.h
/* Copyright 2019 The Matrix.org Foundation C.I.C 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 to...
/* Copyright 2019 The Matrix.org Foundation C.I.C 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 to...
Make reply parser result optional
Make reply parser result optional
C
apache-2.0
matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk
5c02865845248547ea33362877291f5b70c876c4
Perspective/Perspective/Perspective-Bridging-Header.h
Perspective/Perspective/Perspective-Bridging-Header.h
// // Use this file to import your target's public headers that you would like to expose to Swift. //
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <Parse/Parse.h> #import <Bolts/Bolts.h> #import <AWSiOSSDKv2/AWSCore.h> #import <AWSiOSSDKv2/S3.h> #import <AWSiOSSDKv2/DynamoDB.h> #import <AWSiOSSDKv2/SQS.h> #import <AWSiOSSDKv2/SNS.h>
Add imports to Bridging Header.
Add imports to Bridging Header.
C
mit
dlrifkin/Perspective-1.0,thedanpan/Perspective
c938d475630c08a0d695f29b863250ae0ea73b5d
src/qt/macdockiconhandler.h
src/qt/macdockiconhandler.h
#ifndef MACDOCKICONHANDLER_H #define MACDOCKICONHANDLER_H #include <QtCore/QObject> class QMenu; class QIcon; class QWidget; class objc_object; /** Macintosh-specific dock icon handler. */ class MacDockIconHandler : public QObject { Q_OBJECT public: ~MacDockIconHandler(); QMenu *dockMenu(); void se...
#ifndef MACDOCKICONHANDLER_H #define MACDOCKICONHANDLER_H #include <QtCore/QObject> class QMenu; class QIcon; class QWidget; #ifdef __OBJC__ @class DockIconClickEventHandler; #else class DockIconClickEventHandler; #endif /** Macintosh-specific dock icon handler. */ class MacDockIconHandler : public QObject { Q...
Fix for legacy QT compatibility
Fix for legacy QT compatibility
C
mit
koharjidan/sexcoin,lavajumper/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,koharjidan/sexcoin,lavaj...