text
stringlengths
65
6.05M
lang
stringclasses
8 values
type
stringclasses
2 values
id
stringlengths
64
64
/* Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ /// @author Nils Krumnack // // includes // #include <AsgTools/AnaToolHandle.h> // // main program // int main (int argc, char *argv []) { using namespace asg::msgUserCode; ANA_CHECK_SET_TYPE (int); if (argc < 2) { ANA_M...
C++
CL
6133f708c90af131dc1c279c8071667f3bcb6ecb3da3e249263514a2ba471286
#ifndef KUKA_ROS_CONTROLLER_INTERFACE_PASSIVE_DS_H_ #define KUKA_ROS_CONTROLLER_INTERFACE_PASSIVE_DS_H_ #include <ros/ros.h> #include <tf/transform_listener.h> #include "geometry_msgs/TwistStamped.h" #include "std_msgs/Float64MultiArray.h" #include "std_msgs/Float64.h" namespace ros_controller_interface{ class Ros...
C++
CL
9ad900352ee29d5e2e2d41857a965d95c873a7ae158c346200d11efd58ec0fe7
/********************************************************************* ** Program Filename: Backpack.hpp ** Author:Jose Bigio ** Date: December 5th, 2015 ** Description:File that provides class implemenation for Backpack class ** Input:N/A ** Output: For certain functions statements are printed indicating what ** is go...
C++
CL
ecd459e98f54f3b97b0a68e7ef42029ff497a04ca9106e662b617a743b48b185
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #pragma once #define MEMCACHED_ENGINE_H #include <cstdint> #include <cstdio> #include <cstring> #include <functional> #include <memory> #include <sys/types.h> #include <utility> #include "memcached/allocator_hooks.h" #include "memcached/cal...
C++
CL
2f7afbd258ad8d80d73ce94c161b7a03a6ee497d12f83348e681149a83a117d2
/* Yelo: Open Sauce SDK See license\OpenSauce\OpenSauce for specific license information */ #pragma once //#define XLIVE_NO_NETDLL //#define XLIVE_NO_XAPI //#define XLIVE_NO_XAM #define XLIVE_NO_XLIVE extern "C" { #include "XLive/XLive.Xapi.hpp" #include "XLive/XLive.NetDll.hpp" typedef struct...
C++
CL
b025e061c392662a4c95014bb21e87f65f1c079ec973b7cef24cc2e69035883f
#pragma once #include "JN_BasicActors.h" #include "JN_Scene.h" #include "BasicActors.h" #include "PxPhysicsAPI.h" using namespace physx; namespace Actors { class JN_Paddle : public Actors::Capsule { public: // Constructor JN_Paddle(const PxTransform& pose = PxTransform(PxIdentity), PxVec2 dimensions = PxVec...
C++
CL
86becfebcaac8a3c669f78cdf98451abc4095c794d7cb8bcc9c92d6be8621324
// btlsc_timedcbchannel.h -*-C++-*- // ---------------------------------------------------------------------------- // NOTICE // // This component is not up to date with current BDE coding standards, and // should not be used as an example f...
C++
CL
1866625dbb3e2e3f4b7231a4b2f89852b0dd9c29f3c4fff35a6c32ab41dcfa93
#pragma once #include "info.h" #include "../common.h" #include <CL/cl.h> namespace cl { namespace sycl { // Forward declaration template <typename EnumClass, EnumClass Value> struct param_traits; // Not in the specification, but is a nice addition template <typename EnumClass, EnumClass Value> using param_traits_t ...
C++
CL
b2b644ab3d060669e6ad94b75bf26876bfa44d8d660d998af88e3ebdaef5d6e0
#include <ctime> #include <memory> #include "libg3logger/g3logger.h" #include "serdp_recorder/VideoRecorder.h" #include "gpmf-write/GPMF_writer.h" using namespace libvideoencoder; namespace serdp_recorder { using namespace std; static char FileExtension[] = "mov"; using namespace libvideoencoder; //==...
C++
CL
cac2d0fd0a9f4ac80583e8a32545187e3e3ee3c223ad61d65901cf49becdec15
/********************************************************************** qtVlm: Virtual Loup de mer GUI Copyright (C) 2008 - Christophe Thomas aka Oxygen77 http://qtvlm.sf.net This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the F...
C++
CL
865211d09d3f90704079f046eda64bf69112321fe57d3157aadb0dbf74706e6e
/* * StmpTransPassive.h * * Created on: Jan 15, 2018 * Author: root */ #ifndef STMP_STMPTRANSPASSIVE_H_ #define STMP_STMPTRANSPASSIVE_H_ #include "StmpTrans.h" class StmpTransPassive: public StmpTrans { public: StmpTransPassive(StmpNet* stmpNet, Message* begin, uint dtid); virtual ~StmpTransPassive(); }...
C++
CL
0fb3746cca528b7adba7179a8bb6548cf9f1077b57158daf135eff4543367dcb
/* Copyright (c) Stanford University, The Regents of the University of * California, and others. * * All Rights Reserved. * * See Copyright-SimVascular.txt for additional details. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated doc...
C++
CL
76290d60db17725af7e7d496f28006836738f16afb330134f2d57a841cdf4f20
/** * Copyright (C) 2011 * University of Rochester Department of Computer Science * and * Lehigh University Department of Computer Science and Engineering * * License: Modified BSD * Please see the file LICENSE.RSTM for licensing information */ /** * Pipeline Implementation * * This algor...
C++
CL
1dfcbc3e678d79e0dced878eb441e8920d0f5bc0ae44e38cc70c2a7745ea4ceb
/**************************************************************************** ** ** Copyright (C) 2011 Kirill (spirit) Klochkov. ** Contact: klochkov.kirill@gmail.com ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version...
C++
CL
2f05ba77ec875c171e65cc64a94d04623beb8d605321c9b8bd499b7f2221c73a
#include <windows.h> #include <d3d11.h> #include <d3dx11.h> #include <dxerr.h> #include <stdio.h> #include "bullet.h" //Move the bullet foward, used by player to move based on camera direction, uses delta speed to ensure its the same speed across different frame rates void bullet::moveForward(double deltaTime) { m_mo...
C++
CL
cccc589ee8ee3b9292d5f54c6cf72be25b1638de869765e1807db1b5d978b573
#ifndef __PLATFORM_H__ #define __PLATFORM_H__ #ifdef __WINDOWS__ #pragma warning(disable:4996) #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <Winsock2.h> #include <MSWSock.h> #include <WS2tcpip.h> #include <direct.h> #include <unordered_map> #else #endif #include "vector" #include "...
C++
CL
d6979f0910be59fa03d9d74126454db88c411e31a219ac3f02a6115365be6076
#include "LaneDetector.h" #include <errno.h> #include <poll.h> #include <cmath> #include "sensor_msgs/Image.h" #include "std_msgs/ColorRGBA.h" #include "cv_bridge/cv_bridge.h" using namespace std; cv::Mat* current_img = NULL; pthread_rwlock_t imgproc_semaphore = PTHREAD_RWLOCK_INITIALIZER; void img_listener(const se...
C++
CL
367cc5a4374e19baec0ed8258a80f1bcfc23746d50962f85a59760aebdbe7a24
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: EquipRefitCfg.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "EquipRefitCfg.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_strea...
C++
CL
c1840bbe330d77b4fbfd7e69149ee50177b398364695c733c10d42cc41419c90
#ifndef _ZQ_CNN_VIDEO_FACE_DETECTION_INTERFACE_H_ #define _ZQ_CNN_VIDEO_FACE_DETECTION_INTERFACE_H_ #pragma once #include "ZQ_CNN_Net_Interface.h" #include "ZQ_CNN_BBoxUtils.h" #include "ZQ_CNN_MTCNN_Interface.h" #include "ZQ_CNN_CascadeOnet_Interface.h" #include "ZQ_CNN_FaceCropUtils.h" #include "ZQlib/ZQ_SVD.h" #in...
C++
CL
c678920119a1283fd4df7d3956874e975bf24c1037f3be87b95c42fb58824f5a
#include "send_break.h" #include "c_types.h" #include "eagle_soc.h" #include "uart_register.h" #include "Arduino.h" // More detailled information on the DMX protocol can be found on // http://www.erwinrol.com/dmx512/ // https://erg.abdn.ac.uk/users/gorry/eg3576/DMX-frame.html // there are two different implementation...
C++
CL
1e84737f5e41d52304ccdb2f8918900acac699974aaf7783c798f246f2d9f590
//-------------------------------------------------------------------------------- // // ウインドウ表示プログラム // Author : Xu Wenjie // Date : 2016-04-26 //-------------------------------------------------------------------------------- // Update : // //----------------------------------------------------------------------...
C++
CL
a5cbfa490a4c869dacfbb3f90f76bbf6b78b95f98795524fc1a34c0b38e16d15
#include "pch.h" #include "App/Log.h" #include <crtdbg.h> // STATIC_DATA (pod) static long s_staticMemAlloc = 0; ff::ScopeStaticMemAlloc::ScopeStaticMemAlloc() { LockMutex crit(GCS_MEM_ALLOC); if (++s_staticMemAlloc == 1) { _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) & ~_CRTDBG_ALLOC_MEM_DF); } asser...
C++
CL
737f003dce18e42404c144bd23b9ebdeda0d21dd6621ac31363f6f227951b15a
/* * The MIT License * * Copyright 2014 Robxley. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify,...
C++
CL
025238bf891ead8b1321898022b629df4a602973a2408a28e4591f7dddc6e450
/* Controls the assigning of randomized data to the nuclide grid structs and the material map. */ #include "vexs_header.h" void assign_random_data(problem_data &problem){ cout << "\n[Assigning random data]" << endl; unsigned long seed = 5; // TEMPORARY SEED //Kick the RNG off, since it initially gives a very l...
C++
CL
89826d01ee77a6db02019fe5324d53987cefb9e7e76bc5d5cc663a9a36791ed2
// Copyright (c) 2013 Vasili Baranau // Distributed under the MIT software license // See the accompanying file License.txt or http://opensource.org/licenses/MIT #ifndef Generation_PackingServices_PostProcessing_Headers_PressureService_h #define Generation_PackingServices_PostProcessing_Headers_PressureService_h #inc...
C++
CL
3b67b83c3a85b4322e6ab41e6a4206dc521ffc5104e78150aad1317934cfda27
/* * dnn_inference_engine.cpp - dnn inference engine * * Copyright (c) 2019 Intel Corporation * * 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/license...
C++
CL
e27773c77c65b48c4a15e246f0ec57e46dc74aa5fd49bba4c1cb2198c2cf2d44
/* * Copyright (c) 2007, 2011 University of Michigan, Ann Arbor. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any documentation, * advertising materials, and oth...
C++
CL
5562ab8f9c2e1a5eb066298b17d9a2d2e5419673086e3bf874c029178a0eba8c
#include "gfx_i.h" #include "GFX\gfx_bkgrndfx.h" #define MAX_ALPHA 255 //message for FX functions typedef enum { BKFXM_CREATE, BKFXM_UPDATE, BKFXM_DISPLAY, BKFXM_DESTROY } FXmessage; //signals for FX update typedef enum { BKFXsignal_animate, BKFXsignal_noanimate } BKFXsignal; /*************...
C++
CL
fe0ec83b4314f1bfd2f1bba9ed762a71eb17547be781a4410aec108f1c4b4856
#ifndef MAINWINDOWMF_H #define MAINWINDOWMF_H #include <QMainWindow> #include <QObject> #include <QGridLayout> #include <QPushButton> #include<QLabel> #include <QFileInfo> #include<QFileDialog> #include "preprocessing.h" #include "recorder.h" #include "renderarea.h" #include "indexmanager.h" namespace Ui { class Mai...
C++
CL
dd2203e680745cad3e2a36ff2c79c88634a0066db2ab06848361b7712f6f059c
// File: TopOpeBRepDS_Explorer.cxx // Created: Tue Jan 5 17:12:38 1999 // Author: Jean Yves LEBEY // <jyl@langdox.paris1.matra-dtv.fr> #define No_Standard_NoMoreObject #define No_Standard_NoSuchObject #include <TopOpeBRepDS_Explorer.ixx> #include <TopOpeBRepDS_define.hxx> #include <TopoDS.hxx> //======...
C++
CL
6876afddb59f070bf3cbac2de3eaa988b37017c0f3ae8dd2b427996fb6632ce5
#pragma once #include "Vertex.h" #include "Line.h" #include <vector> //projection plane constants const int DEPTH_X = 1; const int DEPTH_Y = 2; const int DEPTH_Z = 3; class Triangle { //vertex indices int v1index; int v2index; int v3index; //Vertices Vertex v1; Vertex v2; Vertex v3; Line lines[3]; glm::...
C++
CL
13e64497fea82d0ea949c6980527cc9eee51f7d26f4f21c6ac6aebfef8d1ca52
#ifndef __XSD_ENUMERATION_GRAPH_NODE_H__ #define __XSD_ENUMERATION_GRAPH_NODE_H__ #include <yars/configuration/xsd/graphviz/graph/XsdGraphNode.h> #include <yars/configuration/xsd/specification/XsdEnumeration.h> #include <string> #include <sstream> using namespace std; class XsdEnumerationGraphNode : public XsdGraph...
C++
CL
11de6f27cd8a93bda32832a322264be1381aa29adbfb538e2373e964dd81f498
// // libtgvoip is free and unencumbered public domain software. // For more information, see http://unlicense.org or the UNLICENSE file // you should have received with this source code distribution. // #include "AudioOutputAndroid.h" #include <stdio.h> #include "../../logging.h" extern JavaVM* sharedJVM; jmethodID...
C++
CL
a2b528b636b134ea3fa730b4246980f57ba93fc46d5c5ba57c467351560dc361
/********************************* PCF8574_HD44780_I2C Library for PCF8574 Breakout Board by Testato on ArduinoForum based on code from: - Mario H. **********************************/ #ifndef PCF8574_HD44780_I2C_h #define PCF8574_HD44780_I2C_h #include <inttypes.h> #include "Print.h" #include <Wire....
C++
CL
c5d5d19cebdfdc294966649bc8dcfede253cd317b9156b2455a4f1dc936d6221
#include "DataExchangeReaderListener.h" #include "AmbassadorPrivate.h" #include "DataExchangeTypeSupportC.h" #include "DataExchangeTypeSupportImpl.h" #include "InterationClass.h" #include "InterationInstanceImpl.h" #include "ObjectClass.h" #include "ObjectInstanceImpl.h" #include <iostream> #include <sstream> ...
C++
CL
7b0708fc50e7ea6f76f6f1972bee87812bc2c1ce4c297f342f8ec2e84535209c
// // Created by views on 26.05.18. // #ifndef SERVER_PLAYER_H #define SERVER_PLAYER_H #include "../NetWork/Client.h" #include "../Graph/SetGraph.h" #include "../../common/Constants/ConstValues.h" #include "GameObject.h" class Pacman : public Samples::Unit { public: explicit Pacman(Client *client); Samples:...
C++
CL
8cedfff6b8fa96451fcccddb8dae0dc15037643012c8a832676d9c12f3ccec5c
/*=========================================================================== * * File: EsmBook.H * Author: Dave Humphrey (uesp@m0use.net) * Created On: February 3, 2003 * * Description * *=========================================================================*/ #ifndef __ESMBOOK_H #define __ESMBOOK_H /*===...
C++
CL
5da96396ebe2ab005a932d7fb171e71336fb37dbc6f4841ce2c7ec3cacecf69b
#ifndef YMLESSONMANAGERADAPTER_H #define YMLESSONMANAGERADAPTER_H #include <QObject> #include <QJsonArray> #include <QJsonObject> #include "YMHttpClient.h" #include<QSsl> #include<QSslSocket> #include <openssl/des.h> #include "ymcrypt.h" #include<QDataStream> #include<QTextStream> #include<QSettings> #include <QMutex...
C++
CL
fb783bf363ddb64fbfb54f5c7c01417739b639be7dd83f2aa01851e685c290e4
// Declares clang::SyntaxOnlyAction. #include "clang/Frontend/FrontendActions.h" #include "clang/Tooling/CommonOptionsParser.h" #include "clang/Tooling/Tooling.h" // Declares llvm::cl::extrahelp. #include "llvm/Support/CommandLine.h" // recursive converter #include "clang/AST/ASTConsumer.h" #include "clang/AST/Recursi...
C++
CL
270691561434f1e828748939c51b08d8da96295e8c237bc71d2f8bd1105776b9
#pragma once #include "laser_agregator/Mesh.h" class Scene: public Mesh{ public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW void add(const Mesh& local_mesh); void clear(); void commit_sensor_poses(); void split_in_parts(); void sanity_check() const; friend std::ostream &operator<<(std::ostream&, c...
C++
CL
c860c8f559758ed438086d6d6484d54ecff726abffb09fe056694594cdb99437
#ifndef SERVOSWRAPPER_H #define SERVOSWRAPPER_H #include <node.h> #include <node_object_wrap.h> #include "../Servos.h" class ServosWrapper : public node::ObjectWrap { public: static void Init(); static void NewInstance(const v8::FunctionCallbackInfo<v8::Value>& args); private: explicit ServosWrapp...
C++
CL
facb9925158dec4b0bbf441afe961d9087881965a397d63618313aebbfdcda36
/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #pragma once #include "library/metavar_context.h" #include "library/equations_compiler/equations.h" namespace lean { class elaborator; expr compile_equation...
C++
CL
e6516a55a7841bf05becf3f6f7ffaf6f5ed09da207318f996edfb204998d6413
// 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_CHROMEOS_DOM_UI_PROXY_HANDLER_H_ #define CHROME_BROWSER_CHROMEOS_DOM_UI_PROXY_HANDLER_H_ #include "chrome/browser/chromeos/dom...
C++
CL
a1cfa70e7c080450fde05a8202f30e1aeaedffe1080cd7d49bbc3204c911469f
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2020 Ryo Suzuki // Copyright (c) 2016-2020 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/EngineLog.hpp> # include <Siv...
C++
CL
dd59bc70ff21c93398e4cf6626dffc1906317e9430a779cc1122f5817e1a4f06
#if !defined(AFX_FONTDLG_H__4241C445_D36D_11D5_BFC5_0050BABDFD68__INCLUDED_) #define AFX_FONTDLG_H__4241C445_D36D_11D5_BFC5_0050BABDFD68__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "../../resource.h" // FontDlg.h : header file // /////////////////////////////////////////////////////...
C++
CL
3441b39352f5e8919f87acdcf752913751d9917501335017d3e89959f1aaf171
/**************************************************************************** Copyright (c) 2013 Zynga Inc. Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
C++
CL
e84768425c852b0787a4893adfe8b387d067d1242706d523bf42534e50f3f0fa
#include "FileTools.h" #include <ipl98/cpp/image.h> #include <time/time_date.h> /* Without the next line, an object must be declared like this: ipl::CImage Img; */ using namespace ipl; class ImageProcessor { public: ImageProcessor(void); ~ImageProcessor (void); bool Setup(char *directoryName, int &imgWidth, int ...
C++
CL
8ef9f5b1c846bfeba25e079c30c51c90e30626de41d3a3b62eba30a9755d19ca
/* Author: Ryan Luna */ #ifndef MOVEIT_R2_TREE_KINEMATICS_PLUGIN_ #define MOVEIT_R2_TREE_KINEMATICS_PLUGIN_ // ROS #include <ros/ros.h> // MoveIt! #include <moveit/kinematics_base/kinematics_base.h> #include <moveit/robot_model/robot_model.h> #include <moveit/robot_state/robot_state.h> // NASA R2 #include <nasa_rob...
C++
CL
f825ce80155f95d50886ea2fcb3f8a5f1aeca79f1e4d3774c8a2ccf1b4dd4679
#pragma once #include "core/assert.h" #include "core/status.h" #include "core/types.h" // clang-format off // #if SDS_OS_WINDOWS // NOTE(sdsmith): windows.h must be included before GLAD. GLAD1 defines // APIENTRY, which is also defined by windows. GLAD2 solves this problem, but // there is no easy way around this in...
C++
CL
4fd9480588672187add6cf52b8d79bd50f2d1fd2d28d17454f9d2d4feccea74f
/* * Copyright (C) 2002, Trent Waddington * * See the file "LICENSE.TERMS" for information on usage and * redistribution of this file, and for a DISCLAIMER OF ALL * WARRANTIES. * */ /** \file boomerang.h * \brief Interface for the boomerang singleton object. */ /** \mainpage Introduction * * \section Intro...
C++
CL
d4932b9f51f79d95df45b4bc72c8b910c845fb139b4baaa34b31c7e2ba5c61e3
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* info.c :+: :+: :+: ...
C
CL
75d6378b663ce24ac6d259ee25383f32ba861cb582e383ec3a546dda5f6a01a8
// Copyright 2016 The Fuchsia 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 <ddk/device.h> #include <ddk/driver.h> #include <ddk/binding.h> #include <ddk/common/usb.h> #include <ddk/protocol/bluetooth-hci.h> #include <mage...
C
CL
8dc08c07ae14e25b5618ea57c4d594084fbe9b9deaf189e2fdfb91f0db54ffe7
/****************************************************************************/ /* */ /* Module IOSVC */ /* External Declarations */ /* ...
C
CL
f4894c94b7e821b52f8d92aaf54e4749733e521186aa4e2235fe0204b18d519d
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <windows.h> #include "slab.h" #include "buddy.h" #define SLAB_SIZE (2*BLOCK_SIZE) #define CACHE_NAMELEN (20) int blockNum; void* spaceS; char* cache_list; char* sizeN_list; CRITICAL_SECTION slabMutex; struct kmem_c...
C
CL
1d267d927852be486e79a7689889ecdcc92b19312032556f7ee6e1e99bb3bdf8
#include <stdint.h> /* Declarations of uint_32 and the like */ #include <pic32mx.h> /* Declarations of system-specific addresses etc */ #include "header.h" /* Declatations for these labs */ #define TMR2PERIOD ((80000000 / 256) / 10) // 100ms #if TMR2PERIOD > 0xffff #error "TimerPeriodIsTooBig" #endif int timeoutco...
C
CL
e509974087b9370c891355df9323c9a05f19b15340e659e41310fa2e4fbadb74
#include <util/delay.h> #include <avr/io.h> #include <stdio.h> #include "uart.h" #include "leds.h" #include "adc.h" /* * Wait (100 * 160000) cycles = wait 16000000 cycles. * Equivalent to 1 second at 16 MHz. */ void delay_10ms(int num) { uint16_t i; for (i=0; i < num; i++){ /* wait (40000 x 4) cycles = wait 16...
C
CL
234bc91142eabee942941e8d65ab9aa493505e7c78715b8e51cc60c79d7945cf
#ifndef __GENERAL_H__ #define __GENERAL_H__ #define CONFIG_SUPPORT_DEBUG_MESSAGE /** standar C * */ extern "C"{ #ifdef __cplusplus #define __STDC_CONSTANT_MACROS #define __STDC_FORMAT_MACROS #ifdef _STDINT_H #undef _STDINT_H #endif #include <stdint.h> #include <stdio.h> #include <...
C
CL
15a3bd24976e67fbb21b533a6c8bf36c347b817f85d440b5c3eff97d8524a0fa
#include<stdio.h> // The first index of the tag array is the 'index' // The second index of the tag array is the 'way' int tag[2][4]; int mru[2][4] = {{3, 2, 1, 0}, {3, 2, 1, 0}}; // This stores the ways for each set in the // most recently used order, that is the // 0th position for a set corresponds to // the most ...
C
CL
2c6024c942bb8c6fdc3d0248b41ecdae86d56868bb15c7141b3f7d26da389c73
/* Copyright (C) 2010-2015 Marvell International Ltd. Copyright (C) 2002-2010 Kinoma, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/lice...
C
CL
a60e26b0396a1d589c0848d83ae66697d204128889b552be3c38ba835f41b9e6
/************************************************************************** ************************* Restricted access *************************** *************************************************************************** This file must only be used for the development of the HSUSB ...
C
CL
0f6025285a78fcec82a27160da46a15cd8deaa725679d40cc249588f7244165e
/** * \file timer.c * \brief Simple command-line timing utility. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <oski/common.h> #include <oski/timer.h> static void usage (const char *progname) { fprintf (stderr, "%s [options] prog [prog_options ...]\n", progname); fprintf (stderr, "\...
C
CL
cafe82a39617848c65a3f8602d8382cc766c1aecc9ba8479cc964cd1b315e8ce
#include "game_server.h" #define SERVER_CMD_HELLO_WORLD 0 #define SERVER_CMD_JOIN 1 #define SERVER_CMD_ACK 2 #define SERVER_CMD_UPDATE 3 #define CLIENT_CMD_WELCOME 0 #define CLIENT_CMD_SPAWN_OBJ 1 void cmd_hello_world(game_server_t *game_server, packet_t *packet); void cmd_join(game_server_t *game_server, packet_t *...
C
CL
55c4e005b1a26a19f27a6b078c4bb079c70512f97bbdab337fcd8a6b3833d5a7
/*************************************************************************** Atari I, Robot hardware Games supported: * I, Robot Known issues: * none at this time **************************************************************************** I-Robot Memory Map 0000 ...
C
CL
ddb53765583f37ac0bc77801d1d4fad057b2d497dfc146f0047a81dbe60cf1e8
/***********************************************************/ /*Constants */ /***********************************************************/ #define ISENSOR_SLOPE_DUT 0.998 //2.8292 //3.484 //slope of the current sensor in [A/V] #define Y_INTERCEPT_DUT -2.491 /...
C
CL
f835e5047ce45cf6fd6ae93f4ec18b1e22d1ecf3f524b4eba13efb0be16f0ee0
/* * Project name: OLED B Click (SPI) * Copyright: (c) mikroElektronika, 2014. * Revision History: 20140918: - Initial release (BD); * Description: OLED B click carries a 96 x 39px blue monochrome passive matrix OLED display. The display is bright, has a wide viewing an...
C
CL
0d4475b27f47e0aac4de975e40e48a3dcf89650dc34bbbd764adbf4fa3e7b31b
/* * Copyright (C) 2008-2014 Chelsio Communications. All rights reserved. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file included in * this release f...
C
CL
e3f60410cfda858d8fc430c30a2dddc53f3e6f7fe044ac13eab8a7d8f186306b
/* * Copyright 2011 Ben Matthews <ben@kc2vjw.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option...
C
CL
bdec65d9729a88907adeb39a7c1bed4140766ef9e481d4aaac4298e67be139d5
#ifndef PS_PPP_SNOOP_H #define PS_PPP_SNOOP_H /*=========================================================================== P S _ P P P _ S N O O P . H DESCRIPTION The Data Services Snoop Header File. Contains shared variables and enums, as well as declarations for functions. Copyright (c...
C
CL
86b8052224ef6d3a4577607e60c34c662f0d4e77a67bc43c17300da7046808fe
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DYNAMIC LINKING LIBRARY Copyright(c) 1997-2002 BNSoft Corp. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ #ifndef _BNSOFT__PROCMNGR_H_ #define _BNSOF...
C
CL
3b3d4f50d99de1e9e7587b416358b9df38db6d3eb42a75f6330e7f0a073234bc
/* Copyright (c) 2018 Evan Wyatt * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions a...
C
CL
cb7d9ba4c332219a2a8d34530aabf906581518289700fdf55720a290f254378c
/******************************************************************************* @ddblock_begin copyright Copyright (c) 1997-2018 Maryland DSPCAD Research Group, The University of Maryland at College Park Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modif...
C
CL
fe6ecfd661285b39326fb975f2c28dd2508a886071df7eae13ce3f34033c79b8
/*****************************************************/ // Copyright © 2007-2012 Navico // Confidential and proprietary. All rights reserved. /*****************************************************/ #include "Pgn130826Mercury.h" #include "Nmea2kDefMercury.h" #include <string.h> /* for memcpy */ ...
C
CL
f70371c3cc42a8b21f91e3b0390c4b29bb0ac7be6a3b676e3a95e92828d67dd8
# ifndef TKERROR_CODES /* 0 = tkNO_ERROR 1-200 = Common 201-400 = tkshp 401-600 = tkgrd 601-800 = tkimg 801-1000 = tkdbf 1001-1200 = tkutils 1201-1400 = tkmap 1401-1600 = tktinvuc 1501-1600 = tkFeatureSpecific 1601-5000 = Reserved 5001- = UserDefined */ const char * ErrorMsg( long ErrorCode ); // 0 = tkNO_ERROR # def...
C
CL
006786e51de029f987a8b612ee4b51f6079bde1d0dc56a2a40c95475c1282da6
/* Copyright 2017 The Chromium OS 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 "adc.h" #include "adc_chip.h" #include "common.h" #include "console.h" #include "gpio.h" #include "hooks.h" #include "registers.h" #includ...
C
CL
0dd023059cfd3d308e32ff204d5cfa5166eb60caecb3acf0529ae3c7459c5e99
#ifndef GUARD_CONSTANTS_ABILITIES_H #define GUARD_CONSTANTS_ABILITIES_H #define ABILITY_NONE 0 #define ABILITY_STENCH 1 #define ABILITY_DRIZZLE 2 #define ABILITY_SPEED_BOOST 3 #define ABILITY_BATTLE_ARMOR 4 #define ABILITY_STURDY 5 #define ABILITY_DAMP 6 #define ABILITY_LIMBER 7 #define ABILITY_SAND_VEIL 8 #define ABI...
C
CL
1d631b91098e7345920478482d246274364b21230dedd1937ed1bb7e4e398a03
/*============================================================================= * Copyright 2002-2003 Texas Instruments Incorporated. All Rights Reserved. */ #ifndef BSP_I2C_PLATFORM_HEADER #define BSP_I2C_PLATFORM_HEADER #include "chipset.cfg"...
C
CL
19758209c744aabf4912b439392fc83d061b3e8f1aa86ac7d7af9107269f5e5b
/* * @file * * header file that contains the declarations for our structs * used in the shell as well as the function prototypes */ #ifndef _HISTORY_H_ #define _HISTORY_H_ #define HIST_MAX 100 #include <stdbool.h> /** * struct containing tokens of commands * and whether it is a pipe * and whether it is p...
C
CL
0ebfded4b7b3153ca25c1b743b8fe25e6ef55fe085ff4b3dea3ffebd8b92fb9c
/** * \file * \brief Pmap arch-independent code for serialisation */ /* * Copyright (c) 2018, 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, Universitaetstrass...
C
CL
aeeabf1a030a89032e44262493fb72df9f60c0564d053e721b7c8058d414ef91
#include "bits.h" #include <errno.h> #include "platform.h" #include "fe310_gpio.h" #include "gpio.h" #define MAX_GPIO_NUMBER 23 #define MIN_GPIO_NUMBER 0 struct fe310_gpio { uint8_t gpio_number; }; static int fe310_gpio_init(struct gpio_protocol *gpio, uint8_t gpio_number) { struct fe310_gpio *fe310_private_data =...
C
CL
f3a75329dbd282dbe6897566d0f4e5fbda0eba0955c2faf0b262182831dc59ae
/* * $Id: $ */ /* * Mesa 3-D graphics library * Version: 3.1 * Copyright (C) 1995 Brian Paul (brianp@ssec.wisc.edu) * * 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 ...
C
CL
0c1464e1505537c1cc01000eaf0439619aca0817943fa161044744aa1b1bb9e1
/* paving.f -- translated by f2c (version 20160102). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
C
CL
5468f8870e5f112ff73e21b13af2ca38fc811323500449e2666baf112dab2cc6
/* From: CFE Id: cfe_api.c,v 1.16 2002/07/09 23:29:11 cgd Exp $ */ /* * Copyright 2000, 2001, 2002 * Broadcom Corporation. All rights reserved. * * This software is furnished under license and may be used and copied only * in accordance with the following terms and conditions. Subject to these * conditions, yo...
C
CL
d33c763472e0337a40b58762412a209bb91bea36d1bfad79e2bc3ea608f3473e
/*********************************************************** * Name of program: * Authors: Benjamin Mankowitz Ari Roffe * Description: FIXME: Need a descr **********************************************************/ /* These are the included libraries. You may need to add more. */ #include <stdio.h> #include <s...
C
CL
da116676e31ffeb5eed45eb0e4628e3d7ba6402db90e318dedfa50eb22176c6c
/* $**************** KCG Version 6.4 (build i21) **************** ** Command: kcg64.exe -config R:/Repositories/modeling/model/Scade/System/OBU_PreIntegrations/Demonstrators/ERSA_EVC_Testrunner/config.txt ** Generation date: 2015-12-10T15:16:03 *************************************************************$ */ #include...
C
CL
b2b356fc4027c947bd2e90035f1b874db7fdcb4ebb9d12fec322ec9ba1e04798
#include <stdio.h> #include <ctype.h> // per les funcions isalpha, isdigit, ... #include <stdlib.h> #include "extract-words.h" /* Generator of next word of file (taking into account given criteria) */ char *extractWord(FILE *fileToSeparate) { int tmpWordCount = 0, isEndWord = FALSE; char tmpChar = ' '; ...
C
CL
e0d6953d7e9ba64353ef783cdd08bf76cdb8103b6053779d8632e482a1ec81cb
/* * Copyright (C) 2010-2016 Marvell International Ltd. * Copyright (C) 2002-2010 Kinoma, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www....
C
CL
939591c1a06e8ef9ec372a555b5a7f2e335e4f780716699be09d0e3628fd106f
/********************************************************************* * Copyright 2018, UCAR/Unidata * See netcdf/COPYRIGHT file for copying and redistribution conditions. *********************************************************************/ #include "config.h" #include <stdlib.h> #include <string.h> #include...
C
CL
448517bcfdc2746c78edbfb01a930d11cbd86aec4adefd7f26009354c9b620b7
// Nerd - Win32 platform layer // Copyright (C)2018 Matt Davies, all rights reserved. #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <crtdbg.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <nerd.h> //-----------------------------------------------------------------------...
C
CL
fd1ba307df9bd0d22b613b97b327ff94d88965f67436cb475e61fbb7c0336dae
/******************************************************************************* * Copyright (c) 2013 protos software gmbh (http://www.protos.de). * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distr...
C
CL
a41d2ec931715f7f5c5c285bdfc57095e01d78b6d8fd589f793baffa325599f1
/* * File: l3gd20.h * Author: Rich Primerano * * Created on September 2, 2013, 1:23 PM */ #ifndef L3GD20_H #define L3GD20_H #ifdef __cplusplus extern "C" { #endif #include "robot.h" // Accelerometer defines #define GYRO_FS_CODE 0 // full-scale: 0=250dps, 1=500dp...
C
CL
f093c109825b9a9761e54b16fdd70aa658b003edccf4ac3358d8a87786119a8e
// Queues.c // // Routines for keeping track of players // #include "WOFBot.h" void RemoveFromQueue(QueueHeader *qh, short nbr) { short i; QueueElement *qp,*lq; lq = NULL; for (i = 0,qp = qh->firstElement; i < qh->nbrElements; ++i,qp = qp->nextElement) { if (i == nbr) { if (lq) lq->nextElement = qp->...
C
CL
58334e0580667725c3c8634fe4d77ed570df1cdcf24c8a54f74607766784a3b6
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.2.0 * Git version: dcef523 * Options: --no-structs --no-pointers --no-math64 --max-funcs 4 --no-unions --output 18485.c * Seed: 3948471244 */ #include "csmith.h" static long __undefined; /* --- Struct/Union Declarations --- */ /* --- G...
C
CL
eabee3e032ca0512648476ace4cf222ed27648b077e233458660ab0a142dbeb8
#include "oomph.h" #include <assert.h> #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <spawn.h> #include <sys/types.h> #include <sys/wait.h> // TODO: copy/pasted from generated c code, not ideal // ------------ copy/pasta BEGIN struct StringList { REFCOUNT_HEADER int64_t len; int64_t alloc; str...
C
CL
ead4910a8c954d76dc20b9db6b7199278ebc7b6ffc30d73abebfc60065d1f224
/*** *wrt2err.c - write an LSTRING to stderr (OS/2 version) * * Copyright (c) 1996-2000, Microsoft Corporation. All rights reserved. * *Purpose: * This module contains a routine __wrt2err that writes an LSTRING * (one byte length followed by the several bytes of the string) * to the standard error handle (2). This is ...
C
CL
4c092a9c6c0a16a94e8326e4185bcfcae90494abf64198e6db073d9ea63ffabe
/* * Copyright (c) 2002-2019 Julien Nadeau Carriere <vedge@csoft.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
C
CL
f942d66e7a36fc92a6394284e5eac52541669da1b16586c528c55764e811439f
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <time.h> #include <string.h> #include <math.h> #include "graf_ER.h" #include "double_random.h" /* * gcc -o program main_one_thread.c graf_ER.c double_random.c -I. -std=c99 -Wall -lm -Ofast -O3 -m64 -march=native -fipa-pure-const -fipa-reference -fme...
C
CL
a469cee7f640a646cf5562d5816cbda86c71a4c63c85372a47c4997fa6580b00
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #if !defined(__cplusplus) #error C++11 required #endif #pragma once #include <PFEntity.h> #include <httpClient/async.h> extern "C" { /// <summary> /// Handle ...
C
CL
2cc100849a08fe9f3b821c711c624a9b23dadfd850d07f7d3bfff8e8daeaec33
#ifndef STATE_H #define STATE_H #define MAX_EVENT_CNT 5 typedef void (*State)(uint8_t); #define DEFAULT_EVENTS IDLE=0,ENTER=1,EXIT=2 typedef struct { State current_state; uint8_t event_code; State next_state; } Transition; typedef struct { uint8_t event_queue[MAX_EVENT_CNT]; ...
C
CL
376071100403d42400a8bdcb1141d6b09a98fcfeea5081c95d46137769df13ea
#ifndef CUT_GLOBALS_H #define CUT_GLOBALS_H #ifndef CUT_MAIN #error "cannot be standalone" #endif #define CUT_MAX_LOCAL_MESSAGE_LENGTH 4096 CUT_PRIVATE struct cut_Arguments cut_arguments; CUT_PRIVATE struct cut_UnitTestArray cut_unitTests = {0, 0, NULL}; CUT_PRIVATE FILE *cut_output = NULL; CUT_PRIVATE int cut_outpu...
C
CL
ad5f9f0d27635ab6648d92d4710cc6ef6454f5a58c288e8400327e431a880b3c
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
C
CL
07d6e63becc0a37eab297fba4af49ce87fd84ae22357005b05b0afb2b1d327d9