commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
1815f49daf517119c71935eb4852696cbb53fc94
operating_system/next_fit.c
operating_system/next_fit.c
#include <stdio.h> #include <stdlib.h> void next_fit(int blockSize[],int processSize[],int n,int m){ int allocation[m]; int i=0,j=0; for (i=0;i<m;i++) allocation[i]=-1; for (i=0;i<m;i++) { while (j<n) { if (blockSize[j]>=processSize[i]) { allocat...
Create next fit algorithm in c
Create next fit algorithm in c
C
cc0-1.0
ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs...
351be023e68a713aa3ffcfae7cca21935b1f913c
test/CodeGen/builtins-arm64.c
test/CodeGen/builtins-arm64.c
// RUN: %clang_cc1 -triple arm64-apple-ios -O3 -emit-llvm -o - %s | FileCheck %s void f0(void *a, void *b) { __clear_cache(a,b); // CHECK: call {{.*}} @__clear_cache } // CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a) unsigned rbit(unsigned a) { return __builtin_arm_rbit(a); } // CHECK: call {{.*}} @llvm.aarch...
// RUN: %clang_cc1 -triple arm64-apple-ios -O3 -emit-llvm -o - %s | FileCheck %s void f0(void *a, void *b) { __clear_cache(a,b); // CHECK: call {{.*}} @__clear_cache } // CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a) unsigned rbit(unsigned a) { return __builtin_arm_rbit(a); } // CHECK: call {{.*}} @llvm.aarch...
Add test cases for AArch64 hints codegen
Add test cases for AArch64 hints codegen git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@212909 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
7fa8ea867659fc32093d3acb13c1c6a061b0b7f9
CatchFeedHelper/CTCFeedChecker.h
CatchFeedHelper/CTCFeedChecker.h
#import <Foundation/Foundation.h> extern NSString *kCTCFeedCheckerErrorDomain; typedef void (^CTCFeedCheckCompletionHandler)(NSArray *downloadedFeedFiles, NSError *error); typedef void (^CTCFeedCheckDownloadCompletionHandler)(NSError *error); @protocol CTCFeedCheck - (...
#import <Foundation/Foundation.h> extern NSString *kCTCFeedCheckerErrorDomain; typedef void (^CTCFeedCheckCompletionHandler)(NSArray *downloadedFeedFiles, NSError *error); typedef void (^CTCFeedCheckDownloadCompletionHandler)(NSError *error); @protocol CTCFeedCheck - (...
Fix header out of sync
Fix header out of sync
C
mit
mipstian/catch
24dfd9f146f15fb5c2524369f1a750fcc6db0fca
test2/cpp/comment_backslashing.c
test2/cpp/comment_backslashing.c
// RUN: %ucc -fsyntax-only %s int main() { /* comment with stray handling *\ / /* this is a valid *\/ comment */ /* this is a valid comment *\*/ // this is a valid\ comment return 0; }
Add test for multi-line commenting
Add test for multi-line commenting
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
eff9830b09a84b24091c731e42701da7ee320c77
include/cling/Interpreter/RuntimeExceptions.h
include/cling/Interpreter/RuntimeExceptions.h
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_RUNTIME_EXCEPTIONS_...
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_RUNTIME_EXCEPTIONS_...
Add missing header method declarations.
Add missing header method declarations.
C
lgpl-2.1
karies/cling,root-mirror/cling,root-mirror/cling,karies/cling,karies/cling,perovic/cling,karies/cling,perovic/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,marsupial/cling,marsupial/cling,marsupial/cling,perovic/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,karies/cling,marsupial/cling,perovic/c...
e5b5dcb8aa7b85d5f873aa51120b4f685beeb145
FDTakeExample/FDTakeController.h
FDTakeExample/FDTakeController.h
// // FDTakeController.h // FDTakeExample // // Created by Will Entriken on 8/9/12. // Copyright (c) 2012 William Entriken. All rights reserved. // #import <Foundation/Foundation.h> @class FDTakeController; @protocol FDTakeDelegate <NSObject> - (void)takeController:(FDTakeController *)controller gotPhoto:(UIIma...
// // FDTakeController.h // FDTakeExample // // Created by Will Entriken on 8/9/12. // Copyright (c) 2012 William Entriken. All rights reserved. // #import <Foundation/Foundation.h> @class FDTakeController; @protocol FDTakeDelegate <NSObject> @optional - (void)takeController:(FDTakeController *)controller didCa...
Make more usable for production
Make more usable for production
C
mit
fulldecent/FDTake,kobim/FDTake,fulldecent/FDTake,eumlab/FDTake,eumlab/FDTake,eumlab/FDTake,Lily418/FDTake,Lily418/FDTake,masd-duc/FDTake,Lily418/FDTake,LaserPatrick/FDTake,wyszo/FDTake,fulldecent/FDTake,LaserPatrick/FDTake
97ef11ed8bb6b0662fd9d293eb631c5d1874eeda
input/Tree.h
input/Tree.h
#include <memory> #include <random> static std::mt19937 mt; static std::uniform_int_distribution<int> d(1,10); static auto gen = []{return d(mt);}; class Tree { int data_; std::shared_ptr<Tree> left_; std::shared_ptr<Tree> right_; public: Tree(int levels=0) { data_ = gen(); if ( levels <= 0 ) re...
Add tree demo to input - needed for subobjects
Add tree demo to input - needed for subobjects
C
mit
jbcoe/C_API_generation,jbcoe/C_API_generation,FFIG/ffig,FFIG/ffig,FFIG/ffig,FFIG/ffig,jbcoe/C_API_generation,jbcoe/C_API_generation,FFIG/ffig,FFIG/ffig,FFIG/ffig,FFIG/ffig
7c945ca65683fd17b029ab0748fe2359a8f71a4c
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 64 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 65 #endif
Update Skia milestone to 65
Update Skia milestone to 65 NOTRY=TRUE TBR=reed Bug: skia: Change-Id: I3dfe04202f48068bd04e7d64fa38913906af02ce Reviewed-on: https://skia-review.googlesource.com/78201 Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc...
C
bsd-3-clause
HalCanary/skia-hc,HalCanary/skia-hc,google/skia,Hikari-no-Tenshi/android_external_skia,google/skia,google/skia,HalCanary/skia-hc,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,rubenvb/skia,aosp-mirror/platform_external_s...
5084aa505fc702cd78b274622c72d63969688d75
util/bounding_box.h
util/bounding_box.h
/* * An axis-aligned bounding box in 3D space. * Author: Dino Wernli */ #ifndef BOUNDING_BOX_H_ #define BOUNDING_BOX_H_ #include "util/numeric.h" class Point3; class BoundingBox { public: BoundingBox(const Point3& point); virtual ~BoundingBox(); // Changes the bounding box to include point. BoundingBox...
/* * An axis-aligned bounding box in 3D space. * Author: Dino Wernli */ #ifndef BOUNDING_BOX_H_ #define BOUNDING_BOX_H_ #include "util/numeric.h" class Point3; class BoundingBox { public: BoundingBox(const Point3& point); virtual ~BoundingBox(); // Changes the bounding box to include point. BoundingBox...
Add support for dumping bounding boxes.
Add support for dumping bounding boxes.
C
mit
dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer
dff6ed304ba6c58a273d234384ca12fd59f03b86
code/Modules/Render/Types/PrimitiveType.h
code/Modules/Render/Types/PrimitiveType.h
#pragma once //------------------------------------------------------------------------------ /** @class Oryol::Render::PrimitiveType @brief primitive type enum (triangle strips, lists, etc...) */ #include "Core/Types.h" namespace Oryol { namespace Render { class PrimitiveType { public: /...
#pragma once //------------------------------------------------------------------------------ /** @class Oryol::Render::PrimitiveType @brief primitive type enum (triangle strips, lists, etc...) */ #include "Core/Types.h" namespace Oryol { namespace Render { class PrimitiveType { public: /...
Make sure primitive type enum starts at 0
Make sure primitive type enum starts at 0
C
mit
tempbottle/oryol,ejkoy/oryol,tempbottle/oryol,ejkoy/oryol,mgerhardy/oryol,tempbottle/oryol,code-disaster/oryol,wangscript/oryol,mgerhardy/oryol,waywardmonkeys/oryol,xfxdev/oryol,mgerhardy/oryol,xfxdev/oryol,wangscript/oryol,bradparks/oryol,zhakui/oryol,waywardmonkeys/oryol,code-disaster/oryol,aonorin/oryol,mgerhardy/or...
3709f2b154a5db0500892c1d720280d54981135a
src/rtcmix/gen/floc.c
src/rtcmix/gen/floc.c
#include "../H/ugens.h" #include <stdio.h> /* these 3 defined in makegen.c */ extern float *farrays[]; extern int sizeof_farray[]; extern int f_goto[]; /* Returns the address of function number genno, or NULL if the function array doesn't exist. NOTE: It's the responsiblity of instruments to deal with a mis...
#include <stdio.h> #include <ugens.h> /* these 3 defined in makegen.c */ extern float *farrays[]; extern int sizeof_farray[]; extern int f_goto[]; /* Returns the address of function number genno, or NULL if the function array doesn't exist. NOTE: It's the responsiblity of instruments to deal with a missing ...
Make sure gen loc is in range.
Make sure gen loc is in range.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
38dc7e5f12c1fb18c292dcd2ade8f8de9102c79c
xs/APR/OS/APR__OS.h
xs/APR/OS/APR__OS.h
/* Copyright 2002-2004 The Apache Software Foundation * * 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 applica...
/* Copyright 2002-2004 The Apache Software Foundation * * 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 applica...
Make a proper case to U32 to avoid a warning
Make a proper case to U32 to avoid a warning PR: Obtained from: Submitted by: Reviewed by: git-svn-id: b4be4a41b2a3352907de631eb6da1671a2f7b614@71435 13f79535-47bb-0310-9956-ffa450edef68
C
apache-2.0
Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl
7024cce5b4315f285d4bd44fff0e999cd6e040f0
Modules/tkappinit.c
Modules/tkappinit.c
/* appinit.c -- Tcl and Tk application initialization. */ #include <tcl.h> #include <tk.h> int Tcl_AppInit (interp) Tcl_Interp *interp; { Tk_Window main; main = Tk_MainWindow(interp); if (Tcl_Init (interp) == TCL_ERROR) return TCL_ERROR; if (Tk_Init (interp) == TCL_ERROR) return TCL_ERROR; #ifdef WITH_MOR...
/* appinit.c -- Tcl and Tk application initialization. */ #include <tcl.h> #include <tk.h> int Tcl_AppInit (interp) Tcl_Interp *interp; { Tk_Window main; main = Tk_MainWindow(interp); if (Tcl_Init (interp) == TCL_ERROR) return TCL_ERROR; if (Tk_Init (interp) == TCL_ERROR) return TCL_ERROR; #ifdef WITH_MOR...
Add sections for PIL (Fred Lundh).
Add sections for PIL (Fred Lundh).
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
076eb56e244d6d1da4d8bf2c0a7a6e4cae282023
src/libsodium/sodium/core.c
src/libsodium/sodium/core.c
#include <stdbool.h> #include "core.h" #include "crypto_onetimeauth.h" static bool initialized; int sodium_init(void) { if (initialized != 0) { return 1; } initialized = 1; if (crypto_onetimeauth_pick_best_implementation() == NULL) { return -1; } return 0; }
#include <stdbool.h> #include "core.h" #include "crypto_onetimeauth.h" static bool initialized; int sodium_init(void) { if (initialized != 0) { return 1; } if (crypto_onetimeauth_pick_best_implementation() == NULL) { return -1; } initialized = 1; return 0; }
Set initialized=1 when everything has actually been initialized
Set initialized=1 when everything has actually been initialized
C
isc
mvduin/libsodium,pyparallel/libsodium,zhuqling/libsodium,GreatFruitOmsk/libsodium,paragonie-scott/libsodium,HappyYang/libsodium,eburkitt/libsodium,donpark/libsodium,eburkitt/libsodium,SpiderOak/libsodium,pyparallel/libsodium,akkakks/libsodium,pyparallel/libsodium,soumith/libsodium,rustyhorde/libsodium,rustyhorde/libsod...
d5646a1a326b9454df20cd0675cbce65becb83ea
scene/light/sphere_light.h
scene/light/sphere_light.h
/* * An area light with a sphere geometry. * * TODO(dinow): Extract a middle class called GeometryLight which contains the * intersect code and the geometry pointer. * Author: Dino Wernli */ #ifndef SPHERE_LIGHT_H_ #define SPHERE_LIGHT_H_ #include "scene/geometry/sphere.h" #include "util/random.h" class Sphere...
Add a sphere light stub.
Add a sphere light stub.
C
mit
dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer
335f2e9da72e2d2f28ba437903f42344cf80d65d
libs/incs/ac_xstr.h
libs/incs/ac_xstr.h
/* * Copyright 2016 Wink Saville * * 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...
Add AC_XSTR and AC_STR macros.
Add AC_XSTR and AC_STR macros. [See](https://gcc.gnu.org/onlinedocs/cpp/Stringification.html)
C
apache-2.0
winksaville/sadie,winksaville/sadie
bbbb905e897e8dd9e59c51d1dc3f34023314295e
chrome/nacl/nacl_broker_listener.h
chrome/nacl/nacl_broker_listener.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_ #define CHROME_NACL_NACL_BROKER_LISTENER_H_ #pragma once #include "base/memory/scoped_ptr.h" #include "ba...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_ #define CHROME_NACL_NACL_BROKER_LISTENER_H_ #pragma once #include "base/memory/scoped_ptr.h" #include "ba...
Remove declaration of non-existent method
NaCl: Remove declaration of non-existent method BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9592039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125431 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
gavinp/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yi...
a426da990b999ba8a44aec739e412f7f8722df24
erts/emulator/test/scheduler_SUITE_data/scheduler_SUITE.c
erts/emulator/test/scheduler_SUITE_data/scheduler_SUITE.c
#include <unistd.h> #include "erl_nif.h" static int load(ErlNifEnv* env, void** priv, ERL_NIF_TERM info) { ErlNifSysInfo sys_info; enif_system_info(&sys_info, sizeof(ErlNifSysInfo)); if (!sys_info.smp_support || !sys_info.dirty_scheduler_support) return 1; return 0; } static ERL_NIF_TERM dirty...
#ifndef __WIN32__ #include <unistd.h> #endif #include "erl_nif.h" static int load(ErlNifEnv* env, void** priv, ERL_NIF_TERM info) { ErlNifSysInfo sys_info; enif_system_info(&sys_info, sizeof(ErlNifSysInfo)); if (!sys_info.smp_support || !sys_info.dirty_scheduler_support) return 1; return 0; } ...
Fix dirty scheduler tc on windows
Fix dirty scheduler tc on windows
C
apache-2.0
neeraj9/otp,legoscia/otp,dumbbell/otp,mikpe/otp,bjorng/otp,uabboli/otp,saleyn/otp,bugs-erlang-org/otp,matwey/otp,lemenkov/otp,aboroska/otp,fenollp/otp,mikpe/otp,potatosalad/otp,basho/otp,emile/otp,kvakvs/otp,neeraj9/otp,vladdu/otp,lemenkov/otp,bernardd/otp,jj1bdx/otp,fenollp/otp,mikpe/otp,aboroska/otp,erlang/otp,uabbol...
1bc8d2a0c5d005f2470aabf3df3f0bfc8f7c34a5
rosserial_mbed/src/ros_lib/MbedHardware.h
rosserial_mbed/src/ros_lib/MbedHardware.h
/* * MbedHardware * * Created on: Aug 17, 2011 * Author: nucho */ #ifndef ROS_MBED_HARDWARE_H_ #define ROS_MBED_HARDWARE_H_ #include "mbed.h" #include "MODSERIAL.h" #define ROSSERIAL_BAUDRATE 57600 class MbedHardware { public: MbedHardware(MODSERIAL* io , long baud= ROSSERIAL_BAUDRATE) :iost...
/* * MbedHardware * * Created on: Aug 17, 2011 * Author: nucho */ #ifndef ROS_MBED_HARDWARE_H_ #define ROS_MBED_HARDWARE_H_ #include "mbed.h" #include "MODSERIAL.h" class MbedHardware { public: MbedHardware(PinName tx, PinName rx, long baud = 57600) :iostream(tx, rx){ baud_ = baud; ...
Fix unnderlying issue with Stream class being private
Fix unnderlying issue with Stream class being private
C
mit
GeodesicCarbon/protopaja-sick,GeodesicCarbon/protopaja-sick,GeodesicCarbon/protopaja-sick,GeodesicCarbon/protopaja-sick,GeodesicCarbon/protopaja-sick,GeodesicCarbon/protopaja-sick,GeodesicCarbon/protopaja-sick
879fdecdf38a2647c9a4793fbffedeaf150adfbd
src/utils/image_persister.h
src/utils/image_persister.h
#ifndef SRC_UTILS_IMAGE_PERSISTER_H_ #define SRC_UTILS_IMAGE_PERSISTER_H_ #include <string> #include <vector> #include <Magick++.h> #include <Eigen/Core> /** * \brief Provides static functions to load and save images * */ class ImagePersister { public: template <class T> static void saveRGBA32F(T *data, int ...
#ifndef SRC_UTILS_IMAGE_PERSISTER_H_ #define SRC_UTILS_IMAGE_PERSISTER_H_ #include <string> #include <vector> #include <Magick++.h> #include <Eigen/Core> /** * \brief Provides static functions to load and save images * */ class ImagePersister { public: template <class T> static void saveRGBA32F(T *data, int ...
Add method to save a single component float image.
Add method to save a single component float image.
C
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
746d16a24272b06f866634934403dbef9d59fa28
include/Athena-Scripting/Utils.h
include/Athena-Scripting/Utils.h
/** @file Utils.h @author Philip Abbet Declaration of some utilities related to scripting */ #ifndef _ATHENA_SCRIPTING_UTILS_H_ #define _ATHENA_SCRIPTING_UTILS_H_ #include <Athena-Scripting/Prerequisites.h> #include <v8.h> namespace Athena { namespace Scripting { //------------------------------------------...
Add an utility function (CastJSObject)
Add an utility function (CastJSObject)
C
mit
Kanma/Athena-Scripting,Kanma/Athena-Scripting,Kanma/Athena-Scripting
8dc65c6cdce9d25b827eb893849dec36270aaa5c
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k10"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k11"
Update driver version to 5.03.00-k11
[SCSI] qla4xxx: Update driver version to 5.03.00-k11 Signed-off-by: Adheer Chandravanshi <7890d7472d5d21859aa8c530110140678588acf6@qlogic.com> Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
b7573553c881851d4b27382be707bdff08e14bce
exercises/002-blinking-led/main.c
exercises/002-blinking-led/main.c
#include <inc/hw_types.h> #include <driverlib/sysctl.h> #include <stdio.h> #include <string.h> #include <inc/hw_memmap.h> #include <inc/hw_sysctl.h> #include <driverlib/gpio.h> #include <driverlib/debug.h> int UP=0; int i; int main(){ SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_8...
Add blinking led example for TI Kit
Add blinking led example for TI Kit
C
mit
marceloboeira/unisinos-microprocessors
93cc322e16e5876c4d2236a91982ad483f392266
chapter1/1-10/external-longest.c
chapter1/1-10/external-longest.c
// // Created by matti on 16.9.2015. // #include <stdio.h> #define MAXLINE 1000 int max; char line[MAXLINE]; char longest[MAXLINE]; int getline(void); void copy(void); int main() { int len; extern int max; extern char longest[]; max = 0; while((len = getline()) > 0) { if (len > max) { ...
Add unfinished 1-10 external example
Add unfinished 1-10 external example
C
mit
melonmanchan/k-and-r
f187f7b6f2ca4b719c88199e65a8ac298f5164fe
test/cases/__attribute__/ctor_dtor_warn.c
test/cases/__attribute__/ctor_dtor_warn.c
// RUN: %check %s int x __attribute((constructor)); // CHECK: warning: constructor attribute on non-function int main() { void f() __attribute((constructor)); // CHECK: warning: constructor attribute on non-global function }
// RUN: %check %s int x __attribute((constructor)); // CHECK: warning: constructor attribute on non-function struct Q { int x __attribute((constructor)); // CHECK: warning: constructor attribute on non-function }; int main() { void f() __attribute((constructor)); // CHECK: warning: constructor attribute on non-glo...
Check ctor/dtor attribute on members
Check ctor/dtor attribute on members
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
5c4046786151a99e098a02b576cf036ecce32db4
scripts/sharedMainLayoutScripts/closeWindowHaltScript.c
scripts/sharedMainLayoutScripts/closeWindowHaltScript.c
sharedMainLayoutScripts: closeWindowHaltScript Close Window [ Current Window ] Halt Script February 9, 平成26 10:24:51 Imagination Quality Management.fp7 - closeWindowHaltScript -1-
Create window closing script with halt command.
Create window closing script with halt command. I was selecting Halt command from the button options, but felt it is better practice to put all commands in scripts, not buttons for better transparency.
C
apache-2.0
HelpGiveThanks/Library,HelpGiveThanks/Library
acd3a4a5b459b405418b1651f59c38bca4fa0050
TDTHotChocolate/FoundationAdditions/NSString+TDTAdditions.h
TDTHotChocolate/FoundationAdditions/NSString+TDTAdditions.h
#import <Foundation/Foundation.h> @interface NSString (TDTAdditions) /** @return a string representing a newly generated version 4 random UUID */ + (instancetype)randomUUID; /** @return The SHA1 of the receiver */ - (NSString *)sha1Digest; /** @return a new string by trimming non alphanumeric characters from ...
#import <Foundation/Foundation.h> @interface NSString (TDTAdditions) /** @return A string representing a newly generated version 4 random UUID */ + (instancetype)randomUUID; /** @return The SHA1 of the receiver */ - (NSString *)sha1Digest; /** @return A new string by trimming non alphanumeric characters from ...
Fix initial case for header documentation sentences
Fix initial case for header documentation sentences
C
bsd-3-clause
talk-to/Chocolate,talk-to/Chocolate
a9fe5d311909b20ea275fb985a7b12eb794180e6
source/common/halfling_sys.h
source/common/halfling_sys.h
/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #ifndef COMMON_HALFLING_SYS_H #define COMMON_HALFLING_SYS_H #include "common/typedefs.h" // Only include the base windows libraries #define WIN32_LEAN_AND_MEA...
/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #ifndef COMMON_HALFLING_SYS_H #define COMMON_HALFLING_SYS_H #include "common/typedefs.h" // Only include the base windows libraries #define WIN32_LEAN_AND_MEA...
Create define for asserting with a message
COMMON: Create define for asserting with a message
C
apache-2.0
RichieSams/thehalflingproject,RichieSams/thehalflingproject,RichieSams/thehalflingproject
3b85da737e88a6139139f79dd6466f32d7309f68
TableGen/CodeGenRegisters.h
TableGen/CodeGenRegisters.h
//===- CodeGenRegisters.h - Register and RegisterClass Info -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
Add initial support for register and register class representation. Obviously this is not done.
Add initial support for register and register class representation. Obviously this is not done. git-svn-id: a4a6f32337ebd29ad4763b423022f00f68d1c7b7@15804 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-3-clause
lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx
31f937755d32d1b6d6b2c30cecc6398f2aa00b3a
md5.h
md5.h
/* File: connection.h * * Description: See "md.h" * * Comments: See "notice.txt" for copyright and license information. * */ #ifndef __MD5_H__ #define __MD5_H__ #include "psqlodbc.h" #include <stdlib.h> #include <string.h> #ifdef WIN32 #define MD5_ODBC #define FRONTEND #endif #define MD5_PASSWD_LEN 35 /*...
/* File: md5.h * * Description: See "md5.c" * * Comments: See "notice.txt" for copyright and license information. * */ #ifndef __MD5_H__ #define __MD5_H__ #include "psqlodbc.h" #include <stdlib.h> #include <string.h> #ifdef WIN32 #define MD5_ODBC #define FRONTEND #endif #define MD5_PASSWD_LEN 35 /* From ...
Fix comment at top of file to match file name.
Fix comment at top of file to match file name.
C
lgpl-2.1
gavioto/psqlodbc,treasure-data/prestogres-odbc,Distrotech/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,treasure-data/prestogres-odbc,Distrotech/psqlodbc,hlinnaka/psqlodbc,Distrotech/psqlodbc,gavioto/psqlodbc,hlinnaka/psqlodbc,gavioto/psqlodbc
df008fe115c9c2ce79cf1a412f598101ee3788c4
tests/feature_tests/error_bool.c
tests/feature_tests/error_bool.c
int main() { struct A {} a; // error: '&&' operator requires scalar operands a && a; // error: '||' operator requires scalar operands a || a; // error: '!' operator requires scalar operand !a; }
int main() { struct A {} a; // error: '&&' operator requires scalar operands a && a; // error: '||' operator requires scalar operands 1 || a; // error: '||' operator requires scalar operands a || 1; // error: '!' operator requires scalar operand !a; }
Improve tests for boolean operators
Improve tests for boolean operators
C
mit
ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC
1534a6d6d9baddc9904cc160bb24cf716e1b5c94
tests/syscalls/sysconf_pagesize.c
tests/syscalls/sysconf_pagesize.c
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <stdio.h> #if defined(__GLIBC__) #include <unistd.h> #else /* * TODO(bsy): remove when newlib toolchain catches up * http://co...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <stdio.h> #include <unistd.h> int main(void) { long rv = sysconf(_SC_PAGESIZE); printf("%ld\n", rv); return rv != (1<<16);...
Clean up sysconf() test to address a TODO that depended on a toolchain roll
Clean up sysconf() test to address a TODO that depended on a toolchain roll BUG=https://code.google.com/p/nativeclient/issues/detail?id=3909 BUG=https://code.google.com/p/nativeclient/issues/detail?id=2714 TEST=run_sysconf_pagesize_test Review URL: https://codereview.chromium.org/655963003 git-svn-id: 721b910a23eff8...
C
bsd-3-clause
sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client
2041a58c8754e626666f6014b7dcae9b3513d20a
include/nme/NmeApi.h
include/nme/NmeApi.h
#ifndef NME_NME_API_H #define NME_NME_API_H #include "Pixel.h" namespace nme { enum { NME_API_VERSION = 100 }; class NmeApi { public: virtual int getApiVersion() { return NME_API_VERSION; } virtual bool getC0IsRed() { return gC0IsRed; } }; extern NmeApi gNmeApi; } // end namespace nme...
Put ImageBuffer into separate header
Put ImageBuffer into separate header
C
mit
madrazo/nme,thomasuster/NME,madrazo/nme,madrazo/nme,nmehost/nme,nmehost/nme,thomasuster/NME,thomasuster/NME,thomasuster/NME,thomasuster/NME,haxenme/nme,nmehost/nme,haxenme/nme,haxenme/nme,thomasuster/NME,madrazo/nme,madrazo/nme,madrazo/nme,haxenme/nme,haxenme/nme
2ab77e34c2e175d90c79dde9b708e3c5beff64de
include/sys/dirent.h
include/sys/dirent.h
/* * Copyright (c) 2007, 2008, 2009, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. */ #ifndef DIRENT_H_ #...
/* * Copyright (c) 2007, 2008, 2009, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. */ #ifndef DIRENT_H_ #...
Duplicate definition of NAME_MAX macro
Duplicate definition of NAME_MAX macro I broke the build in rBFIaee0075101b1; this is just a temporary band-aid and only masks the more general issue described in T58. If you have an idea for a better fix, please let me know. Signed-off-by: Zaheer Chothia <418c8e101762410c9c1204e516611673b0b87d3d@inf.ethz.ch>
C
mit
BarrelfishOS/barrelfish,BarrelfishOS/barrelfish,BarrelfishOS/barrelfish,8l/barrelfish,kishoredbn/barrelfish,BarrelfishOS/barrelfish,kishoredbn/barrelfish,kishoredbn/barrelfish,BarrelfishOS/barrelfish,kishoredbn/barrelfish,BarrelfishOS/barrelfish,8l/barrelfish,kishoredbn/barrelfish,8l/barrelfish,kishoredbn/barrelfish,Ba...
e76435c6c60bf1247d6bb91fe8cf5e57a896da55
src/main/c/emulator/src/config.h
src/main/c/emulator/src/config.h
#ifndef CONFIG_H #define CONFIG_H //#define QEMU #define SIM #define OS_CALL 0xC0000000 #define DTB 0xC3000000 #endif
#ifndef CONFIG_H #define CONFIG_H //#define QEMU #define SIM #ifndef OS_CALL #define OS_CALL 0xC0000000 #endif #ifndef DTB #define DTB 0xC3000000 #endif #endif
Allow to set custom DTB/OS_CALL addresses
Allow to set custom DTB/OS_CALL addresses Setting those from command line during compilation allows to create a custom setup without the need of modifying the sources.
C
mit
SpinalHDL/VexRiscv,SpinalHDL/VexRiscv,SpinalHDL/VexRiscv,SpinalHDL/VexRiscv,SpinalHDL/VexRiscv
d1808f380aed0fa19573909ada3e26233c80f87c
test/CodeGen/microsoft-call-conv.c
test/CodeGen/microsoft-call-conv.c
// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s void __fastcall f1(void); void __stdcall f2(void); void __thiscall f3(void); void __fastcall f4(void) { // CHECK: define x86_fastcallcc void @f4() f1(); // CHECK: call x86_fastcallcc void @f1() } void __stdcall f5(void) { // CHECK: define x86_stdcallcc void @f5() f...
Add missing test case, provided by Steven Watanabe.
Add missing test case, provided by Steven Watanabe. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@104037 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
5db8b0845e766877bebc23ad823c1681e2218624
vendor/brightray/browser/net_log.h
vendor/brightray/browser/net_log.h
// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef BROWSER_NET_LOG_H_ #define BROWSER_NET_LOG_H_ #include "base/files/scoped_file.h" #include "net/log/net_log.h" #include "net/log/file_net_log_observer.h" namespace brightray ...
// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef BROWSER_NET_LOG_H_ #define BROWSER_NET_LOG_H_ #include "base/files/scoped_file.h" #include "net/log/net_log.h" #include "net/log/file_net_log_observer.h" #include "net/url_req...
Add missing explicit include of net/url_request/url_request_context.h
Add missing explicit include of net/url_request/url_request_context.h
C
mit
brave/muon,brave/electron,brave/electron,brave/electron,brave/muon,brave/muon,brave/electron,brave/muon,brave/electron,brave/muon,brave/muon,brave/electron
711b144ed5c1bb22def8f0d7a46eb58a0bbc9bb6
test/tools/llvm-symbolizer/print_context.c
test/tools/llvm-symbolizer/print_context.c
// REQUIRES: x86_64-linux // RUN: %host_cc -O0 -g %s -o %t 2>&1 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s // // See PR31870 for more details on the XFAIL // XFAIL: avr #include <stdio.h> int inc(int a) { return a + 1; } int main() { printf("%p\n", inc); return 0; } ...
// REQUIRES: x86_64-linux // RUN: %host_cc -O0 -g %s -o %t 2>&1 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s #include <stdio.h> int inc(int a) { return a + 1; } int main() { printf("%p\n", inc); return 0; } // CHECK: inc // CHECK: print_context.c:7 // CHECK: 5 : #inc...
Revert "[AVR] Mark a failing symbolizer test as XFAIL"
Revert "[AVR] Mark a failing symbolizer test as XFAIL" This reverts commit 83a0e876349adb646ba858eb177b22b0b4bfc59a. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@309515 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift...
6bf6d60fb44205bab201688d949e3937ee8dbd26
include/net/RestrictMacro.h
include/net/RestrictMacro.h
#ifndef RESTRICTMACRO_H_ #define RESTRICTMACRO_H_ #ifdef COBRA_RESTRICT #define COBRA_RESTRICT_BREAK \ break; \ #define COBRA_RESTRICT_EXCEED_N_BREAK( EXP, NUM ) \ if (EXP > NUM) \ break; \ #define COBRA_RESTRICT_EXCEED_N_RETURN_FALSE( EXP, NUM ) \ if ( EXP > NUM ) \ return false; \ #else #defin...
#ifndef RESTRICTMACRO_H_ #define RESTRICTMACRO_H_ #ifdef COBRA_RESTRICT #define COBRA_RESTRICT_BREAK \ break; \ #define COBRA_RESTRICT_EXCEED_N_BREAK( EXP, NUM ) \ if (EXP > NUM) \ break; \ #define COBRA_RESTRICT_EXCEED_N_RETURN_FALSE( EXP, NUM ) \ if ( EXP > NUM ) \ return false; \ #else #defin...
Fix compilation error of RestrictionMacro.h in sf1 if COBRA_RESTRICT is not defined.
Fix compilation error of RestrictionMacro.h in sf1 if COBRA_RESTRICT is not defined.
C
apache-2.0
izenecloud/izenelib,izenecloud/izenelib,pombredanne/izenelib,pombredanne/izenelib,izenecloud/izenelib,izenecloud/izenelib,pombredanne/izenelib,pombredanne/izenelib
9b1a95eb03798b3b6d969eca13fbbf6a9b0156b0
vk_default_loader.c
vk_default_loader.c
#include "vk_default_loader.h" #include "vulkan/vulkan.h" #if defined(_WIN32) #elif defined(unix) || defined(__unix__) || defined(__unix) #include <dlfcn.h> static void* (*loadSym)(void* lib, const char* procname); static void* loadSymWrap(VkInstance instance, const char* vkproc) { return (*loadSym)(instance, vkproc)...
#include "vk_default_loader.h" #include "vulkan/vulkan.h" #if defined(_WIN32) #elif defined(unix) || defined(__unix__) || defined(__unix) #include <dlfcn.h> static void* (*symLoader)(void* lib, const char* procname); static void* loaderWrap(VkInstance instance, const char* vkproc) { return (*symLoa...
Fix no-return warning in loader, also change the internal variable names.
Fix no-return warning in loader, also change the internal variable names.
C
mit
vulkan-go/vulkan,vulkan-go/vulkan
21a451d7f90a7953e0eb64101188b136d076ad23
ouzel/RenderTarget.h
ouzel/RenderTarget.h
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include <algorithm> #include <memory> #include "Types.h" #include "Noncopyable.h" #include "Size2.h" namespace ouzel { namespace graphics { class Renderer; class Texture; class RenderTarget...
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include <algorithm> #include <memory> #include "Types.h" #include "Noncopyable.h" #include "Size2.h" #include "Color.h" namespace ouzel { namespace graphics { class Renderer; class Texture; ...
Add clear color to render target
Add clear color to render target
C
unlicense
Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,elvman/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,Hotspotmar/ouzel
4977c30315dca68e18a8605f235803380b2644dc
Source/SuggestionView/Source/SuggestionView/IMSuggestionView.h
Source/SuggestionView/Source/SuggestionView/IMSuggestionView.h
// // ImojiSDKUI // // Created by Nima Khoshini // Copyright (C) 2015 Imoji // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the /...
// // ImojiSDKUI // // Created by Nima Khoshini // Copyright (C) 2015 Imoji // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the /...
Fix warning with nonnull member for SuggetionView
Fix warning with nonnull member for SuggetionView
C
mit
imojiengineering/imoji-ios-sdk-ui,imojiengineering/imoji-ios-sdk-ui,alex-hoang/imoji-ios-sdk-ui,alex-hoang/imoji-ios-sdk-ui,kbot/imoji-ios-sdk-ui,imojiengineering/imoji-ios-sdk-ui,kbot/imoji-ios-sdk-ui,kbot/imoji-ios-sdk-ui,alex-hoang/imoji-ios-sdk-ui,imojiengineering/imoji-ios-sdk-ui,alex-hoang/imoji-ios-sdk-ui
25852400ccb5d7e35904cc3d270be741784ec22e
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.04.00.07-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 4 #define QLA_DRIVER_PATCH_VER 0 #defi...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.04.00.08-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 4 #define QLA_DRIVER_PATCH_VER 0 #defi...
Update the driver version to 8.04.00.08-k.
[SCSI] qla2xxx: Update the driver version to 8.04.00.08-k. Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com> Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
a96d949d521ea368bee3060dfe430fed5a631450
ProcessLauncher/ProcessNative.h
ProcessLauncher/ProcessNative.h
#pragma once #include "ProcessPlatform.h" namespace ugly { namespace process { class ProcessNative : public ProcessPlatform { public: ProcessNative(const std::string& path, const std::string& arguments); const std::string& GetFullCommandLine() const override { r...
#pragma once #include "ProcessPlatform.h" namespace ugly { namespace process { class ProcessNative : public ProcessPlatform { public: ProcessNative(const std::string& path, const std::string& arguments); const std::string& GetFullCommandLine() const override { r...
Fix memory corruption, trailing & in member variable type.
Fix memory corruption, trailing & in member variable type.
C
mit
Ilod/ugly,Ilod/ugly,Ilod/ugly
3ecfe194476fbead8cf8be9ccce138140945ce74
copasi/output/CUDFunctionDB.h
copasi/output/CUDFunctionDB.h
/***************************************************************************** * PROGRAM NAME: CUDFunctionDB.h * PROGRAMMER: Wei Sun wsun@vt.edu * PURPOSE: Define the user defined function DB object to hold all the user * defined function *************************************************************************...
Define a vector to hold user defined functions
Define a vector to hold user defined functions
C
artistic-2.0
jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI
57041b6f3337f733eff945ca0c43434eb20c8410
test/FrontendC/2010-03-5-LexicalScope.c
test/FrontendC/2010-03-5-LexicalScope.c
// RUN: %llvmgcc -S -O0 -g %s -o - | grep DW_TAG_lexical_block | count 3 int foo(int i) { if (i) { int j = 2; } else { int j = 3; } return i; }
// RUN: %llvmgcc -S -O0 -g %s -o - | grep DW_TAG_lexical_block | count 2 int foo(int i) { if (i) { int j = 2; } else { int j = 3; } return i; }
Adjust test case for lexical block pruning. Follow-on to r104842 and Radar 7424645.
Adjust test case for lexical block pruning. Follow-on to r104842 and Radar 7424645. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@104876 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm...
ca9976d6fea556430cdb1dd92dc69f0fc257ea96
test/CFrontend/2007-09-26-Alignment.c
test/CFrontend/2007-09-26-Alignment.c
// RUN: %llvmgcc -S %s -o - | grep {align 16} extern p(int *); int q(void) { int x __attribute__ ((aligned (16))); p(&x); return x; }
Test that local variables are aligned as the user requested.
Test that local variables are aligned as the user requested. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@42338 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm...
f779b0dc0bb152e1d1e9d4cab5de36c1ab1bf13e
libyaul/scu/bus/b/vdp1/vdp1/map.h
libyaul/scu/bus/b/vdp1/vdp1/map.h
/* * Copyright (c) 2012-2014 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #ifndef _VDP1_MAP_H_ #define _VDP1_MAP_H_ #include <scu-internal.h> /* Macros specific for processor */ #define VDP1(x) (0x25D00000 + (x)) /* Helpers specific to this processor */ #define T...
/* * Copyright (c) 2012-2014 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #ifndef _VDP1_MAP_H_ #define _VDP1_MAP_H_ #include <scu-internal.h> /* Macros specific for processor */ #define VDP1(x) (0x25D00000 + (x)) /* Helpers specific to this processor */ #define T...
Fix offsets to VDP1 registers
Fix offsets to VDP1 registers
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
6da70aa62048e85e652464e7a7dfe3d705c505e3
backend.native/tests/interop/kt43502/main.c
backend.native/tests/interop/kt43502/main.c
#include "libinterop_kt43502_api.h" int main() { libinterop_kt43502_symbols()->kotlin.root.printExternPtr(); }
#include "testlib_api.h" int main() { testlib_symbols()->kotlin.root.printExternPtr(); }
Fix KT-43502 testcase on windows
Fix KT-43502 testcase on windows
C
apache-2.0
JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native
9497abecbfcb29dc2c7daa90c98c7d4d23fedc29
tests/auto/common/declarativewebutils.h
tests/auto/common/declarativewebutils.h
/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Raine Makelainen <raine.makelainen@jolla.com> ** ****************************************************************************/ /* This Source Code Form is subject to the terms of the Mozilla Pu...
/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Raine Makelainen <raine.makelainen@jolla.com> ** ****************************************************************************/ /* This Source Code Form is subject to the terms of the Mozilla Pu...
Add beforeShutdown signal to mock object
Add beforeShutdown signal to mock object
C
mpl-2.0
rojkov/sailfish-browser,alinelena/sailfish-browser,sailfishos/sailfish-browser,alinelena/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,alinelena/sailfish-browser,alinelena/sailfish-browser,rojkov/sailfish-browser,rojkov/sailfish-browser
51bd503c3429ee5522bd065c71f6f5dbbfb0a876
Classes/xkcdAppDelegate.h
Classes/xkcdAppDelegate.h
// // xkcdAppDelegate.h // xkcd // // Created by Joshua Bleecher Snyder on 8/25/09. // Copyright Treeline Labs 2009. All rights reserved. // #define GENERATE_DEFAULT_PNG 0 #define AppDelegate ((xkcdAppDelegate *)[UIApplication sharedApplication].delegate) #define kUseragent @"xkcd iPhone app (xkcdapp@treelinelabs...
// // xkcdAppDelegate.h // xkcd // // Created by Joshua Bleecher Snyder on 8/25/09. // Copyright Treeline Labs 2009. All rights reserved. // #define GENERATE_DEFAULT_PNG 0 #define AppDelegate ((xkcdAppDelegate *)[UIApplication sharedApplication].delegate) #define kUseragent @"xkcd iPhone app (josh@treelinelabs.co...
Update the useragent a bit
Update the useragent a bit
C
mit
paulrehkugler/xkcd,paulrehkugler/xkcd,nameloCmaS/xkcd,nameloCmaS/xkcd
1866eb90a92ad4cd9956073d778b38e943b6edbd
NSBezierPath_CoreImageExtensions.h
NSBezierPath_CoreImageExtensions.h
// // NSBezierPath_CoreImageExtensions.h // Bibdesk // // Created by Adam Maxwell on 10/26/05. /* This software is Copyright (c) 2005,2007 Adam Maxwell. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ar...
Copy bezier path category from bibdesk to skim
Copy bezier path category from bibdesk to skim
C
bsd-3-clause
JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim
6b6a6f81adf148e75ad847b4bae40f54aa2e46cb
src/exercise120.c
src/exercise120.c
/* Exercise 1-20: Write a program "detab" that replaces tabs in the input with * the proper number of blanks to space to the next tab stop. Assume a fixed * set of tab stops, say every "n" columns. Should "n" be a variable or a * symbolic parameter? */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> int...
Add solution to Exercise 1-20.
Add solution to Exercise 1-20.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
ef62a17b0e154377a38d58e0913b8b5d6471e36b
src/expanduino/expanduino.h
src/expanduino/expanduino.h
#pragma once #include "expanduino-subdevice.h" #include "classes/meta.h" #define EXPANDUINO_MAX_RESPONSE_SIZE 128 class ExpanduinoInterruption { public: ExpanduinoSubdevice* source; ExpanduinoInterruption* next; }; class Expanduino { MetaExpanduinoSubdevice metaSubdevice; const char* vendorName; const ch...
#pragma once #include "expanduino-subdevice.h" #include "classes/meta.h" #define EXPANDUINO_MAX_RESPONSE_SIZE 128 class ExpanduinoInterruption { public: ExpanduinoSubdevice* source; ExpanduinoInterruption* next; }; class Expanduino { protected: MetaExpanduinoSubdevice metaSubdevice; ExpanduinoInterruption*...
Make public some attributes of Expanduino
Make public some attributes of Expanduino
C
unlicense
Expanduino/Expanduino-Arduino,Expanduino/Expanduino-Arduino
b9ace4e896cf2c070053a179a5e092dcb79e7d9c
MAGDebugKit/Classes/Logging/MAGLogging.h
MAGDebugKit/Classes/Logging/MAGLogging.h
#import <Foundation/Foundation.h> #import <CocoaLumberjack/CocoaLumberjack.h> extern DDLogLevel magDebugKitLogLevel; extern BOOL magDebugKitAsyncLogs; #define LOG_ASYNC_ENABLED magDebugKitAsyncLogs #define LOG_LEVEL_DEF magDebugKitLogLevel @interface MAGLogging : NSObject + (instancetype)sharedInstance; @property...
#import <Foundation/Foundation.h> #import <CocoaLumberjack/CocoaLumberjack.h> extern DDLogLevel magDebugKitLogLevel; extern BOOL magDebugKitAsyncLogs; #ifdef LOG_ASYNC_ENABLED #undef LOG_ASYNC_ENABLED #endif #define LOG_ASYNC_ENABLED magDebugKitAsyncLogs #ifdef LOG_LEVEL_DEF #undef LOG_LEVEL_DEF #endif #define LO...
Fix some warnings (redefined macro definitions)
Fix some warnings (redefined macro definitions)
C
apache-2.0
Magora-IOS/MAGDebugKit,Magora-IOS/MAGDebugKit
b0a039d70ab17fb7b68afc498ae635825c8300cd
Source/LuminoCore/Include/LuminoMath.h
Source/LuminoCore/Include/LuminoMath.h
#ifndef LUMINO_MATH_H #define LUMINO_MATH_H #include "Lumino/Math/MathUtils.h" #include "Lumino/Math/Vector2.h" #include "Lumino/Math/Vector3.h" #include "Lumino/Math/Vector4.h" #include "Lumino/Math/Matrix.h" #include "Lumino/Math/Quaternion.h" #include "Lumino/Math/AttitudeTransform.h" #include "Lumino/Math/Geometr...
#ifndef LUMINO_MATH_H #define LUMINO_MATH_H #pragma push_macro("min") #pragma push_macro("max") #undef min #undef max #include "Lumino/Math/MathUtils.h" #include "Lumino/Math/Vector2.h" #include "Lumino/Math/Vector3.h" #include "Lumino/Math/Vector4.h" #include "Lumino/Math/Matrix.h" #include "Lumino/Math/Quaternion....
Improve windows min max macro for MFC
Improve windows min max macro for MFC
C
mit
lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino
d19925f48fcbad32755c4cf0dca845a6487fe3c8
test/FrontendC/2007-02-16-WritableStrings.c
test/FrontendC/2007-02-16-WritableStrings.c
// Test the -fwritable-strings option. // RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \ // RUN: grep {private global} // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {private constant} char *X = "foo";
// Test the -fwritable-strings option. // RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \ // RUN: grep {internal global} // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {private constant} char *X = "foo";
Update test to match 95961.
Update test to match 95961. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@95971 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,ds...
1255e1b35e2133bc286dc205c6f1718914f50b81
test/Index/annotate-comments-unterminated.c
test/Index/annotate-comments-unterminated.c
// RUN: c-index-test -test-load-source all %s | FileCheck %s // RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -check-prefix=ERR %s // CHECK: annotate-comments-unterminated.c:9:5: VarDecl=x:{{.*}} RawComment=[/** Aaa. */]{{.*}} BriefComment=[ Aaa. \n] // CHECK: annotate-comments-unterminated.c:11:5: VarDecl=y:{{.*}...
Add a test for unterminated /* comments.
Add a test for unterminated /* comments. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@159267 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
1f2f31493e8bc97cdb9a9ff36c788503aec5718d
test/FrontendC/2009-03-09-WeakDeclarations-1.c
test/FrontendC/2009-03-09-WeakDeclarations-1.c
// RUN: $llvmgcc $test -c -o /dev/null |& \ // RUN: egrep {(14|15|22): warning:} | \ // RUN: wc -l | grep --quiet 3 // TARGET: *-*-darwin // XFAIL: alpha|ia64|sparc // END. // Insist upon warnings for inappropriate weak attributes. // Note the line numbers (14|15|22) embedded in the check. // O.K. extern int ext_weak_...
Check for warnings about inappropriate weak_imports. Darwin-specific; marked XFAIL for others.
Check for warnings about inappropriate weak_imports. Darwin-specific; marked XFAIL for others. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@66514 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm...
a5070fe2e9a42563db382217c27c6e4d75a26458
tests/regression/06-symbeq/33-symb_accfun.c
tests/regression/06-symbeq/33-symb_accfun.c
// PARAM: --set ana.activated[+] "'var_eq'" --set ana.activated[+] "'symb_locks'" #include <stdlib.h> #include <pthread.h> typedef struct { int myint; pthread_mutex_t mymutex; } mystruct; void acc(mystruct *s) { s->myint=s->myint+1; } // NORACE void *foo(void *arg) { mystruct *s = (mystruct *) arg; pthread_mut...
Add symb_locks test for access in function
Add symb_locks test for access in function
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
d0fbd28a7230f6500a19f5cf6216f18eef07d1d9
src/scenarios/base.h
src/scenarios/base.h
#pragma once #include <vector> #include <memory> #include <boost/noncopyable.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/lexical_cast.hpp> #include <boost/iterator/transform_iterator.hpp> #include "../factory.h" #include "../visualisation.h" #include "../agents.h" namespace scenarios { class base...
#pragma once #include <vector> #include <memory> #include <boost/noncopyable.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/lexical_cast.hpp> #include <boost/iterator/transform_iterator.hpp> #include "../factory.h" #include "../visualisation.h" #include "../agents.h" namespace scenarios { class base...
Allow scenarios inheritance for scenarios::scenario template
Allow scenarios inheritance for scenarios::scenario template
C
mit
martin-pr/group_motion_editing,martin-pr/group_motion_editing
3a50d847e098f36e3bf8bc14eea07a6cc35f7803
test/FixIt/fixit-errors-1.c
test/FixIt/fixit-errors-1.c
// RUN: cp %s %t // RUN: %clang_cc1 -pedantic -fixit %t // RUN: echo %clang_cc1 -pedantic -Werror -x c %t /* This is a test of the various code modification hints that are provided as part of warning or extension diagnostics. All of the warnings will be fixed by -fixit, and the resulting file should compile c...
// RUN: cp %s %t // RUN: %clang_cc1 -pedantic -fixit %t // RUN: %clang_cc1 -pedantic -Werror -x c %t /* This is a test of the various code modification hints that are provided as part of warning or extension diagnostics. All of the warnings will be fixed by -fixit, and the resulting file should compile cleanl...
Fix test to actually check the FixIt-applied code
Fix test to actually check the FixIt-applied code r102230 added an 'echo' making this a no-op. Also fixes FAIL on native Windows with no shell/GnuWin32. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@193938 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
bdb6a9aeec6ae5f94d7a9abe17fc78f6eefa0dc0
gst/glib-compat-private.h
gst/glib-compat-private.h
/* * glib-compat.c * Functions copied from glib 2.10 * * Copyright 2005 David Schleef <ds@schleef.org> */ #ifndef __GLIB_COMPAT_PRIVATE_H__ #define __GLIB_COMPAT_PRIVATE_H__ #include <glib.h> G_BEGIN_DECLS #if !GLIB_CHECK_VERSION(2,25,0) typedef struct stat GStatBuf; #endif #if GLIB_CHECK_VERSION(2,26,0) #def...
/* * glib-compat.c * Functions copied from glib 2.10 * * Copyright 2005 David Schleef <ds@schleef.org> */ #ifndef __GLIB_COMPAT_PRIVATE_H__ #define __GLIB_COMPAT_PRIVATE_H__ #include <glib.h> G_BEGIN_DECLS #if !GLIB_CHECK_VERSION(2,25,0) #if defined (_MSC_VER) && !defined(_WIN64) typedef struct _stat32 GStatB...
Fix GStatBuf definition for win32 when building against older glib. Now matches upstream glib definition.
Fix GStatBuf definition for win32 when building against older glib. Now matches upstream glib definition.
C
lgpl-2.1
Distrotech/gstreamer,ensonic/gstreamer,magcius/gstreamer,shelsonjava/gstreamer,jpakkane/gstreamer,mparis/gstreamer,ahmedammar/platform_external_gst_gstreamer,justinjoy/gstreamer,cablelabs/gstreamer,Lachann/gstreamer,justinjoy/gstreamer,ylatuya/gstreamer,magcius/gstreamer,magcius/gstreamer,Distrotech/gstreamer,StreamUti...
ffc1ab98c729f425243bc5e3cab8110f2c5abc32
tests/ctests/error_large_literal.c
tests/ctests/error_large_literal.c
int main() { // Issue: 3: error: integer literal too large to be represented by any integer type 1000000000000000000000000000; }
Add test for large integers
Add test for large integers
C
mit
ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC
d85f6007cddb22af28640298a9c73a3a6bb4d514
include/ofp/actionid.h
include/ofp/actionid.h
// Copyright 2014-present Bill Fisher. All rights reserved. #ifndef OFP_ACTIONID_H_ #define OFP_ACTIONID_H_ #include "ofp/constants.h" #include "ofp/actiontype.h" namespace ofp { class ActionID { public: public: enum { ProtocolIteratorSizeOffset = sizeof(OFPActionType), ProtocolIteratorAlignment = 4 }...
// Copyright 2014-present Bill Fisher. All rights reserved. #ifndef OFP_ACTIONID_H_ #define OFP_ACTIONID_H_ #include "ofp/constants.h" #include "ofp/actiontype.h" namespace ofp { class ActionID { public: enum { ProtocolIteratorSizeOffset = sizeof(OFPActionType), ProtocolIteratorAlignment = 4 }; expl...
Remove extra public access modifier.
Remove extra public access modifier.
C
mit
byllyfish/libofp,byllyfish/libofp,byllyfish/oftr,byllyfish/oftr,byllyfish/libofp,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr
95d84862445bd79fe523ffd1091d1bd55b7024af
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.44f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.45f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
Increase version to 1.44 in preparation for new release
Increase version to 1.44 in preparation for new release
C
apache-2.0
ariccio/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,MikeMarcin/UIforETW,google/UIforETW,mwinterb/UIforETW,google/UIforETW,ariccio/UIforETW,mwinterb/UIforETW,google/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW
af0b5cf70b1f96c329ef66c654d69847d8029c02
platform/stm32/templates/f3/stm32f3-discovery/board.conf.h
platform/stm32/templates/f3/stm32f3-discovery/board.conf.h
#include <stm32f3discovery.conf.h> CONFIG { uarts[1].status = ENABLED; }
#include <stm32f3discovery.conf.h> CONFIG { uarts[1].status = ENABLED; leds[0].status = ENABLED; leds[1].status = ENABLED; leds[2].status = ENABLED; leds[3].status = ENABLED; leds[4].status = ENABLED; leds[5].status = ENABLED; leds[6].status = ENABLED; leds[7].status = ENABLED; }
Add LEDs enable to platform/stm32/f3/stm32f3-discovery/
templates: Add LEDs enable to platform/stm32/f3/stm32f3-discovery/
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox
dfa3930196159638c475d37a89a7e0e5b395d92a
include/mgmt/mcumgr/zephyr_groups.h
include/mgmt/mcumgr/zephyr_groups.h
/* * Copyright (c) 2021 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_ZEPHYR_MCUMGR_GRP_H_ #define ZEPHYR_INCLUDE_ZEPHYR_MCUMGR_GRP_H_ #include <kernel.h> #ifdef __cplusplus extern "C" { #endif /* The file contains definitions of Zephyr specific mgmt commands */ #def...
/* * Copyright (c) 2021 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_ZEPHYR_MCUMGR_GRP_H_ #define ZEPHYR_INCLUDE_ZEPHYR_MCUMGR_GRP_H_ #include <kernel.h> #ifdef __cplusplus extern "C" { #endif /* The file contains definitions of Zephyr specific mgmt commands. The gro...
Fix collision with user defined groups
subsys/mgmt/mcumgr: Fix collision with user defined groups The commit moves definition of Zephyr specific mcumgr basic group to PERUSER - 1. This has been done to avoid collision with application specific groups, defined by users. Signed-off-by: Dominik Ermel <1a1d45a9cc0c98a37f8d0a0d2dbe3cacc0b2344f@nordicsemi.no>
C
apache-2.0
galak/zephyr,finikorg/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,galak/zephyr,galak/zephyr,galak/zephyr
802af5afb6b869036b2bd46b8e0704f1ea2b1e47
ExternData/Resources/Include/ED_XMLFile.h
ExternData/Resources/Include/ED_XMLFile.h
#if !defined(ED_XMLFILE_H) #define ED_XMLFILE_H void* ED_createXML(const char* fileName); void ED_destroyXML(void* _xml); double ED_getDoubleFromXML(void* _xml, const char* varName); const char* ED_getStringFromXML(void* _xml, const char* varName); int ED_getIntFromXML(void* _xml, const char* varName); void ED_getDoub...
#if !defined(ED_XMLFILE_H) #define ED_XMLFILE_H #include <stdlib.h> void* ED_createXML(const char* fileName); void ED_destroyXML(void* _xml); double ED_getDoubleFromXML(void* _xml, const char* varName); const char* ED_getStringFromXML(void* _xml, const char* varName); int ED_getIntFromXML(void* _xml, const char* varN...
Fix missing include (for size_t)
Fix missing include (for size_t)
C
bsd-2-clause
modelica-3rdparty/ExternData,modelica-3rdparty/ExternData,modelica-3rdparty/ExternData,modelica-3rdparty/ExternData
c85f8eafe16e04213d16b2ff55e7bbe7ed911d98
nofork.c
nofork.c
/* * preventfork.c * Copyright (C) 2010 Adrian Perez <aperez@igalia.com> * * Distributed under terms of the MIT license. */ #include <sys/types.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> pid_t fork (void) { return 0; } int daemon (int nochdir, int noclose) { if (!nochdir == 0) { ...
/* * nofork.c * Copyright (C) 2010 Adrian Perez <aperez@igalia.com> * * Distributed under terms of the MIT license. */ #include <sys/types.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> pid_t fork (void) { return 0; } int daemon (int nochdir, int noclose) { if (!nochdir == 0) { ...
Fix file name in comment header
Fix file name in comment header
C
mit
aperezdc/dmon
e170f2bff908bd06dcbcc1b113e9365098c337f9
cint/include/iosfwd.h
cint/include/iosfwd.h
#ifndef G__IOSFWD_H #define G__IOSFWD_H #include <iostream.h> typedef basic_streambuf<char, char_traits<char> > streambuf; #endif
#ifndef G__IOSFWD_H #define G__IOSFWD_H #include <iostream.h> #endif
Undo change proposed by Philippe. Too many side effects.
Undo change proposed by Philippe. Too many side effects. git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@5468 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
sawenzel/root,veprbl/root,root-mirror/root,buuck/root,0x0all/ROOT,pspe/root,simonpf/root,perovic/root,Duraznos/root,zzxuanyuan/root,esakellari/my_root_for_test,sbinet/cxx-root,mkret2/root,smarinac/root,jrtomps/root,0x0all/ROOT,sirinath/root,ffurano/root5,mattkretz/root,satyarth934/root,mhuwiler/rootauto,agarciamontoro/...
fbf9f480bc7faebf123213c2932022c7e0ba4321
wangle/concurrent/NamedThreadFactory.h
wangle/concurrent/NamedThreadFactory.h
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma onc...
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma onc...
Switch various calls to folly::setThreadName to set the current thread's name
Switch various calls to folly::setThreadName to set the current thread's name Summary: This is in preparation for killing the pthread_t overload of folly::setThreadName. Reviewed By: yfeldblum Differential Revision: D5012627 fbshipit-source-id: a4e6e2c2cb5bd02b1ebea85c305eac59355a7d42
C
apache-2.0
facebook/wangle,facebook/wangle,facebook/wangle
1210d9a9faf1f60edd489b74c9b74414fcacb6c2
src/Application.h
src/Application.h
// // Created by Dawid Drozd aka Gelldur on 05.02.16. // #pragma once #include <string> #include <memory> #include <api/ApiThreadPool.h> #include <data/Preferences.h> #include <platform/Bridge.h> #include <screen/ScreenCreator.h> #include "UILoop.h" class Application { public: Application(CrossMobile::Platform::B...
// // Created by Dawid Drozd aka Gelldur on 05.02.16. // #pragma once #include <string> #include <memory> #include <api/ApiThreadPool.h> #include <data/Preferences.h> #include <platform/Bridge.h> #include <screen/ScreenCreator.h> #include "UILoop.h" class Application { public: Application(CrossMobile::Platform::B...
Fix ApiThreadPool after android changes
Fix ApiThreadPool after android changes
C
apache-2.0
gelldur/DexodeEngine,gelldur/DexodeEngine,gelldur/DexodeEngine
cb7e078f9a6dcb0762ee5a006f40253e6e510879
TLKSocketIOSignalingDelegate.h
TLKSocketIOSignalingDelegate.h
// // TLKSocketIOSignalingDelegate.h // Copyright (c) 2014 &yet, LLC and TLKWebRTC contributors // #import <Foundation/Foundation.h> @class TLKSocketIOSignaling; @protocol TLKSocketIOSignalingDelegate <NSObject> @optional // Called when a connect request has failed due to a bad room key. Delegate is expected to ...
// // TLKSocketIOSignalingDelegate.h // Copyright (c) 2014 &yet, LLC and TLKWebRTC contributors // #import <Foundation/Foundation.h> @class TLKSocketIOSignaling; @class TLKMediaStreamWrapper; @protocol TLKSocketIOSignalingDelegate <NSObject> @optional // Called when a connect request has failed due to a bad room...
Fix missing class forward declaration that could cause build errors with some include orders.
Fix missing class forward declaration that could cause build errors with some include orders.
C
mit
otalk/TLKSimpleWebRTC,martinkubat/TLKSimpleWebRTC
e3e136ee56fdb815e408b5764cf0f1e54fe7ad17
sbr/seq_setprev.c
sbr/seq_setprev.c
/* * seq_setprev.c -- set the Previous-Sequence * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> /* * Add all the messages currently SELECTED to * the Previous-Sequenc...
/* * seq_setprev.c -- set the Previous-Sequence * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <h/utils.h> /* * Add all the messages currently SELECTED to *...
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
C
bsd-3-clause
mcr/nmh,mcr/nmh
f98fbd91e74a366419c67071b39519b28c0e112c
cbits/honk-windows.c
cbits/honk-windows.c
/* * Copyright 2011 Chris Wong. * * 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 2011 Chris Wong. * * 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 ...
Fix typo in header name
Fix typo in header name
C
apache-2.0
lfairy/honk
33e867ba6f31305b4591c77bfee8118fc3b4a349
chrome/browser/cocoa/objc_zombie.h
chrome/browser/cocoa/objc_zombie.h
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #pragma once #import <Foundation/Foundation.h> // Yo...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #pragma once #import <Foundation/Foundation.h> // Yo...
Add link to explanation of what we mean by zombie The person triaging / debugging a zombie crash may never have heard of this before.
Add link to explanation of what we mean by zombie The person triaging / debugging a zombie crash may never have heard of this before. BUG=None TEST=None Review URL: http://codereview.chromium.org/3763002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@62723 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ga...
79278824c6433ef6634532a1b5192961acc248a4
libqimessaging/c/qimessaging/c/object_c.h
libqimessaging/c/qimessaging/c/object_c.h
/* ** ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2012 Aldebaran Robotics */ #ifndef _QIMESSAGING_OBJECT_H_ #define _QIMESSAGING_OBJECT_H_ #include <qimessaging/c/api_c.h> #ifdef __cplusplus extern "C" { #endif typedef struct qi_object_t_s {} qi_object_t; //forward de...
/* ** ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2012 Aldebaran Robotics */ #ifndef _QIMESSAGING_OBJECT_H_ #define _QIMESSAGING_OBJECT_H_ #include <qimessaging/c/api_c.h> #ifdef __cplusplus extern "C" { #endif typedef struct qi_object_t_s {} qi_object_t; //forward de...
Remove unnecessary API export on typedef
Remove unnecessary API export on typedef Change-Id: Id9b225ad5a7a645763f4377c7f949e9c9bd4f890 Reviewed-on: http://gerrit.aldebaran.lan:8080/4588 Reviewed-by: llec <42f1a1c02cacc0f5b0188f0127ea77bedfdcf21a@aldebaran-robotics.com> Tested-by: llec <42f1a1c02cacc0f5b0188f0127ea77bedfdcf21a@aldebaran-robotics.com>
C
bsd-3-clause
bsautron/libqi,aldebaran/libqi,aldebaran/libqi,aldebaran/libqi-java,aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi-java,vbarbaresi/libqi
2efca45c3c1e2186386bb713d4b0b37eb3adee61
autowiring/C++11/boost_tuple.h
autowiring/C++11/boost_tuple.h
// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. #pragma once #include <boost/tuple/tuple.hpp> namespace std { template<typename... Ts> class tuple { public: tuple(const Ts&... ele): m_tuple(ele...) {} virtual ~tuple(void){} bool operator==(const tuple<Ts...>& other) cons...
// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. #pragma once #include <boost/tuple/tuple.hpp> #include "boost/tuple/tuple_comparison.hpp" namespace std { template<typename... Ts> class tuple { public: tuple(const Ts&... ele): m_tuple(ele...) {} virtual ~tuple(void){} boo...
Add boost tuple comparison header
Add boost tuple comparison header
C
apache-2.0
codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring
3dbfb109ef1ee964a95c283076821be2bcaa896e
include/visionaray/math/ray.h
include/visionaray/math/ray.h
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_MATH_RAY_H #define VSNRAY_MATH_RAY_H 1 #include "config.h" #include "vector.h" namespace MATH_NAMESPACE { template <typename T> class basic_ray { public: typedef T scalar_type; typedef vecto...
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_MATH_RAY_H #define VSNRAY_MATH_RAY_H 1 #include "config.h" #include "vector.h" namespace MATH_NAMESPACE { template <typename T> class basic_ray { public: typedef T scalar_type; typedef vecto...
Mark default ctor host/device for hcc
Mark default ctor host/device for hcc
C
mit
szellmann/visionaray,szellmann/visionaray
ce298391eaa951a637d4155212e4927ea576e003
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add a header file for the POSIX filesystem.
Add a header file for the POSIX filesystem. This header only exposes `TF_InitPlugin` as we need to call this function when registering the local filesystems statically.
C
apache-2.0
petewarden/tensorflow,petewarden/tensorflow,gunan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,annarev/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,Intel...
9c44b57857b611f81c040d6ca57cff0908029e77
mudlib/mud/home/System/lib/auto/second_auto.c
mudlib/mud/home/System/lib/auto/second_auto.c
#include <kotaka/privilege.h> #include <kotaka/paths.h> #include <kotaka/log.h> #include <trace.h> #include <type.h> #include <status.h> inherit "call_guard"; inherit "callout_guard"; inherit "touch"; inherit "object"; object canary; /**********/ /* status */ /**********/ void set_canary(object new_canary) { ACCE...
#include <kotaka/privilege.h> #include <kotaka/paths.h> #include <kotaka/log.h> #include <trace.h> #include <type.h> #include <status.h> inherit "call_guard"; inherit "callout_guard"; inherit "touch"; inherit "object"; object canary; /**********/ /* status */ /**********/ void set_canary(object new_canary) { ACCE...
Allow disable of save/restore object
Allow disable of save/restore object
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
b2340338a2ae45bc6e4481893fb7c70b9a662840
lib/StaticAnalyzer/Checkers/InterCheckerAPI.h
lib/StaticAnalyzer/Checkers/InterCheckerAPI.h
//==--- InterCheckerAPI.h ---------------------------------------*- C++ -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
//==--- InterCheckerAPI.h ---------------------------------------*- C++ -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
Add a missing forward def of CheckerManager. NFC.
Add a missing forward def of CheckerManager. NFC. This file doesn't include CheckerManager or forward declare it, so is sensitive to include order. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@235209 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
4a12cae7ef2612eb094c4b48e8b37cf837e3df55
arch/arm64/include/asm/spinlock_types.h
arch/arm64/include/asm/spinlock_types.h
/* * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANT...
/* * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANT...
Fix the endianness of arch_spinlock_t
arm64: Fix the endianness of arch_spinlock_t The owner and next members of the arch_spinlock_t structure need to be swapped when compiling for big endian. Signed-off-by: Catalin Marinas <15ce75b290ebaf27c3f9fd73ab848685ed3d8261@arm.com> Reported-by: Matthew Leach <968f99dd328b703d57aa48028082f52162903fed@arm.com> Ack...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
b129ff9f3ce7d5f931d16f6eb0d68b9ee95ebc22
InputPacket.h
InputPacket.h
#pragma once #include <cstdint> namespace ni { struct InputPacket { constexpr static int MAGIC = 0xD00D; constexpr static int TYPE_LENGTH = 16; constexpr static int DATA_LENGTH = 128; uint16_t magic; char type[TYPE_LENGTH]; uint16_t length; uint8_t data[DATA_LENGTH]; bool isValid() const; bool isS...
#pragma once #include <cstdint> #include "DeviceType.h" namespace ni { struct InputPacket { constexpr static int MAGIC = 0xD00D; constexpr static int DATA_LENGTH = 128; uint16_t magic; DeviceType type; uint16_t length; uint8_t data[DATA_LENGTH]; bool isValid() const; bool isSafe() const; }; }
Use DeviceType enum for the type field.
Use DeviceType enum for the type field.
C
mit
jack-karamanian/NetInput
f8c9e7d30e824f4b1a983b4b1134feba4385293e
src/gui/GuiText.h
src/gui/GuiText.h
// // Created by dar on 2/13/16. // #ifndef C003_GUITEXT_H #define C003_GUITEXT_H #include "GuiElement.h" #include <string> class GuiText : public GuiElement { public: GuiText(const std::string &string, int x, int y, char position, float scale, int color, char flags) { this->string = string; this...
// // Created by dar on 2/13/16. // #ifndef C003_GUITEXT_H #define C003_GUITEXT_H #include "GuiElement.h" #include <string> class GuiText : public GuiElement { public: GuiText(const std::string &string, int x, int y, char position, float scale, int color, char flags) { this->string = string; this...
Set "flags" variable in constructor
Set "flags" variable in constructor
C
mit
darsto/spooky,darsto/spooky
8f39850a0cc1114eeb77d3e71fa2eed98f61ca87
ffmpeg/lpms_ffmpeg.h
ffmpeg/lpms_ffmpeg.h
#include <libavutil/rational.h> typedef struct { char *fname; int w, h, bitrate; AVRational fps; } output_params; void lpms_init(); void lpms_deinit(); int lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start); int lpms_transcode(char *inp, output_params *params, int nb_outpu...
#ifndef _LPMS_FFMPEG_H_ #define _LPMS_FFMPEG_H_ #include <libavutil/rational.h> typedef struct { char *fname; int w, h, bitrate; AVRational fps; } output_params; void lpms_init(); int lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start); int lpms_transcode(char *inp, output...
Remove unused declarations from headers.
ffmpeg: Remove unused declarations from headers. Also add some include guards.
C
mit
livepeer/lpms,livepeer/lpms,livepeer/lpms,livepeer/lpms
809c60bbcec764ce8068515dac7d853d1d2771a6
pgf+/include/gf/IOException.h
pgf+/include/gf/IOException.h
// // IOException.h // pgf+ // // Created by Emil Djupfeldt on 2012-06-22. // Copyright (c) 2012 Chalmers University of Technology. All rights reserved. // #ifndef pgf__IOException_h #define pgf__IOException_h #include <gf/Exception.h> namespace gf { class IOException : public Exception { private: ...
// // IOException.h // pgf+ // // Created by Emil Djupfeldt on 2012-06-22. // Copyright (c) 2012 Chalmers University of Technology. All rights reserved. // #ifndef pgf__IOException_h #define pgf__IOException_h #include <gf/Exception.h> namespace gf { class IOException : public Exception { private: ...
Add a constructor taking an c error number.
Add a constructor taking an c error number.
C
bsd-2-clause
egladil/mscthesis,egladil/mscthesis,egladil/mscthesis
458cc64daaccf3d2e69222538aeaf3598eed1137
libkcal/kcalversion.h
libkcal/kcalversion.h
/* This file is part of libkcal. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This librar...
/* This file is part of libkcal. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This librar...
Increase libkcal version number, since we had bic changes since kde 3.3....
Increase libkcal version number, since we had bic changes since kde 3.3.... svn path=/trunk/kdepim/; revision=385823
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
48d1fe7a3839c98aa923e98e8c77574c9c611d9b
tensorflow_serving/util/inline_executor.h
tensorflow_serving/util/inline_executor.h
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
Correct mock -> fake in InlineExecutor documentation. Change: 163386931
Correct mock -> fake in InlineExecutor documentation. Change: 163386931
C
apache-2.0
sreddybr3/serving,penguin138/serving,penguin138/serving,tensorflow/serving,tensorflow/serving,penguin138/serving,sreddybr3/serving,tensorflow/serving,tensorflow/serving,sreddybr3/serving,penguin138/serving,sreddybr3/serving
2448675327ceaa844ae2fab4a15c46d0981cad17
test/test_encode_int.c
test/test_encode_int.c
#include <bert/encoder.h> #include <bert/magic.h> #include <bert/errno.h> #include "test.h" unsigned char output[6]; void test_output() { if (output[0] != BERT_MAGIC) { test_fail("bert_encoder_push did not add the magic byte"); } if (output[1] != BERT_INT) { test_fail("bert_encoder_push did not add the INT...
#include <bert/encoder.h> #include <bert/magic.h> #include <bert/errno.h> #include "test.h" unsigned char output[6]; void test_output() { if (output[0] != BERT_MAGIC) { test_fail("bert_encoder_push did not add the magic byte"); } if (output[1] != BERT_INT) { test_fail("bert_encoder_push did not add the INT...
Make use of test_bytes in the int encoder test.
Make use of test_bytes in the int encoder test.
C
mit
postmodern/libBERT
3d8ef87d5f4792e7fa48717d9c763a338718dbeb
LinkList_insert_node_nth_position.c
LinkList_insert_node_nth_position.c
#include <stdio.h> #include <stdlib.h> /* Linked List Implementation in C */ // This program aims at "Inserting a node at the n-th position" typedef struct node{ int data; struct node *link; } node; node* head; //global variable void insert_n(int x, int n){ node* temp; temp = (node*)malloc(sizeof(node)); temp->d...
Add Linked List Insert at nth position
Add Linked List Insert at nth position
C
mit
anaghajoshi/C_DataStructures_Algorithms
5a420f60da6ebf3aadaa5130ee5ce097d1f982b5
libraries/datastruct/hash/lookup-node.c
libraries/datastruct/hash/lookup-node.c
/* lookup-node.c -- hash */ #include <stdlib.h> #include "datastruct/hash.h" #include "impl.h" hash_node_t **hash_lookup_node(hash_t *h, const void *key) { int hash; hash_node_t **n; hash = h->hash_fn(key) % h->nbins; for (n = &h->bins[hash]; *n != NULL; n = &(*n)->next) if (h->compare(key, (...
/* lookup-node.c -- hash */ #include <stdlib.h> #include "datastruct/hash.h" #include "impl.h" hash_node_t **hash_lookup_node(hash_t *h, const void *key) { unsigned int hash; hash_node_t **n; hash = h->hash_fn(key) % h->nbins; for (n = &h->bins[hash]; *n != NULL; n = &(*n)->next) if (h->compare(key, (...
Make return type decl match hash_fn.
hash_lookup_node: Make return type decl match hash_fn.
C
bsd-2-clause
dpt/DPTLib
877bfcfaf592e63916333fd644bb8f30b673f35d
lib/sanitizer_common/sanitizer_placement_new.h
lib/sanitizer_common/sanitizer_placement_new.h
//===-- sanitizer_placement_new.h -------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- sanitizer_placement_new.h -------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix type for placement new on 32-bit Mac
[Sanitizer] Fix type for placement new on 32-bit Mac git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@158524 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
28f427e69ea72b113380a835c1096c1e15ca4d22
src/include/dev/char_device.h
src/include/dev/char_device.h
/** * @file * @description char devices */ #ifndef __CHAR_DEVICE_H #define __CHAR_DEVICE_H typedef struct chardev { int (*putc) (void); int (*getc) (int); } chardev_t; #define MAX_COUNT_CHAR_DEVICES 10 static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES]; static int chardev_c = 0; #define ADD_CHAR_DEVICE(__NA...
/** * @file * @description char devices */ #ifndef __CHAR_DEVICE_H #define __CHAR_DEVICE_H typedef struct chardev { int (*putc) (void); int (*getc) (int); } chardev_t; #if 0 #define MAX_COUNT_CHAR_DEVICES 10 static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES]; static int chardev_c = 0; #define ADD_CHAR_DEVICE...
Delete char_dev massive from header
Delete char_dev massive from header
C
bsd-2-clause
gzoom13/embox,vrxfile/embox-trik,Kefir0192/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,gzoom13/embox,mike2390/embox,mike2390/embox,embox/embox,embox/embox,abusalimov/embox,embox/embox,embox/embox,mike2390/embox,Kakadu/embox,Kakadu/embox,abusalimov/embox,vrxfile/embox-trik,Kefir0192/embox,abusalimov/embox,...
12b8bc1b01c53d08d4d2774407035fd483577d7c
test/FrontendC/2010-06-11-SaveExpr.c
test/FrontendC/2010-06-11-SaveExpr.c
// RUN: %llvmgcc -S %s // Test case by Eric Postpischil! void foo(void) { char a[1]; int t = 1; ((char (*)[t]) a)[0][0] = 0; }
Test case for Radar 8004649.
Test case for Radar 8004649. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@105949 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/...
26d810473db6b338ffcf6fb21cb7dc35e6d7cffc
src/fake-lock-screen-pattern.h
src/fake-lock-screen-pattern.h
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_ #define _FAKE_LOCK_SCREEN_PATTERN_H_ #include <gtk/gtk.h> #if !GTK_CHECK_VERSION(3, 0, 0) typedef struct { gdouble red; gdouble green; gdouble blue; gdouble alpha; } GdkRGBA; #endif typedef struct _FakeLockOption { void *module; gchar *real; gchar *dummy; } FakeLock...
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_ #define _FAKE_LOCK_SCREEN_PATTERN_H_ #include <gtk/gtk.h> #if !GTK_CHECK_VERSION(3, 0, 0) typedef struct { gdouble red; gdouble green; gdouble blue; gdouble alpha; } GdkRGBA; #endif typedef struct _FakeLockOption { void *module; gint width; gint height; gchar *rea...
Store size of drawing area
Store size of drawing area
C
mit
kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern
8d8f4eef73993a3ea51b47c2d7a7c238b627369a
src/modules/graphics/opengl.h
src/modules/graphics/opengl.h
#ifdef LOVR_WEBGL #include <GLES3/gl3.h> #include <GLES2/gl2ext.h> #include <GL/gl.h> #include <GL/glext.h> #else #include "lib/glad/glad.h" #endif #include <stdint.h> #pragma once #define GPU_BUFFER_FIELDS \ uint32_t id; \ uint8_t incoherent; #define GPU_CANVAS_FIELDS \ uint32_t framebuffer; \ uint32_t res...
#ifdef LOVR_WEBGL #include <GLES3/gl3.h> #include <GLES2/gl2ext.h> #include <GL/gl.h> #include <GL/glext.h> #else #include "lib/glad/glad.h" #endif #include <stdint.h> #pragma once #define GPU_BUFFER_FIELDS \ uint32_t id; \ uint8_t incoherent; #define GPU_CANVAS_FIELDS \ uint32_t framebuffer; \ uint32_t res...
Adjust Texture padding so it's 64 bytes;
Adjust Texture padding so it's 64 bytes;
C
mit
bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr
f503a09cc3e24c8a87a16ab55b8bf2eedb2f0b85
mlpack/trunk/src/mlpack/core/tree/bounds.h
mlpack/trunk/src/mlpack/core/tree/bounds.h
/** * @file tree/bounds.h * * Bounds that are useful for binary space partitioning trees. * * TODO: Come up with a better design so you can do plug-and-play distance * metrics. * * @experimental */ #ifndef TREE_BOUNDS_H #define TREE_BOUNDS_H #include <mlpack/core/math/math_lib.h> #include <mlpack/core/kernel...
/** * @file tree/bounds.h * * Bounds that are useful for binary space partitioning trees. * * TODO: Come up with a better design so you can do plug-and-play distance * metrics. * * @experimental */ #ifndef TREE_BOUNDS_H #define TREE_BOUNDS_H #include <mlpack/core/math/math_lib.h> #include <mlpack/core/math/r...
Include the correct files since math_lib.h no longer does that.
Include the correct files since math_lib.h no longer does that.
C
bsd-3-clause
ersanliqiao/mlpack,ranjan1990/mlpack,trungda/mlpack,darcyliu/mlpack,Azizou/mlpack,erubboli/mlpack,ranjan1990/mlpack,thirdwing/mlpack,ajjl/mlpack,BookChan/mlpack,Azizou/mlpack,ajjl/mlpack,bmswgnp/mlpack,stereomatchingkiss/mlpack,stereomatchingkiss/mlpack,Azizou/mlpack,bmswgnp/mlpack,theranger/mlpack,theranger/mlpack,tru...
920b443aae561319aff2332863b45535fe016453
android/expoview/src/main/jni/EXGL.c
android/expoview/src/main/jni/EXGL.c
#include <stdint.h> #include <jni.h> #include <JavaScriptCore/JSContextRef.h> #include "EXGL.h" JNIEXPORT jint JNICALL Java_host_exp_exponent_exgl_EXGL_EXGLContextCreate (JNIEnv *env, jclass clazz, jlong jsCtxPtr) { JSGlobalContextRef jsCtx = (JSGlobalContextRef) (intptr_t) jsCtxPtr; if (jsCtx) { return E...
#include <stdint.h> #include <jni.h> #include <JavaScriptCore/JSContextRef.h> #include "EXGL.h" JNIEXPORT jint JNICALL Java_host_exp_exponent_exgl_EXGL_EXGLContextCreate (JNIEnv *env, jclass clazz, jlong jsCtxPtr) { JSGlobalContextRef jsCtx = (JSGlobalContextRef) (intptr_t) jsCtxPtr; if (jsCtx) { return U...
Update to `UEX` prefix for unversioned C/C++ API
Update to `UEX` prefix for unversioned C/C++ API fbshipit-source-id: 57bd0cb
C
bsd-3-clause
exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/expon...