text
stringlengths
4
6.14k
/* (c) 2009,2010,2011 Ian Clark This file is part of Yasst. Yasst 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) any later version. Yasst is distributed in ...
// // config.h // // Circle - A C++ bare metal environment for Raspberry Pi // Copyright (C) 2017 R. Stange <rsta2@o2online.de> // // 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 vers...
/**************************************************************************************** * * File: * CANArduinoNode.h * * Purpose: * Sends data to the Actuator unit with the rudder and wingsail angles over the CAN bus. * * Developer Notes: * The CAN frame ID nubmer that this node subscribe to are: * ...
/* * This file is part of DisOrder. * Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell * * 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 y...
// // SopinetChat_Bridging_Header.h // Pods // // Created by David Moreno Lora on 30/3/16. // // #ifndef SopinetChat_Bridging_Header_h #define SopinetChat_Bridging_Header_h #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #endif /* SopinetChat_Bridging_Header_h */
/* Substitute for and wrapper around <langinfo.h>. Copyright (C) 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at y...
/************************************************************************ c2circ.h ld-process-efm - EFM data decoder Copyright (C) 2019 Simon Inns This file is part of ld-decode-tools. ld-process-efm is free software: you can redistribute it and/or modify it under the terms of the GNU Genera...
/* * Tremotesf * Copyright (C) 2015-2018 Alexey Rochev <equeim@gmail.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) any late...
#pragma once #include "cGlobals.h" class Bloodworks; class cRenderableContainer; class cTextRenderable; class cTexturedQuadRenderable; class CreditsWindow { Bloodworks *bloodworks; cRenderableContainer *window; cTextRenderable *credits; cTexturedQuadRenderable *bg; float textY; float visibleTime; public: Cr...
/** * @file fprintf.c * * @author TacOS developers * * * @section LICENSE * * Copyright (C) 2010-2015 TacOS developers. * * 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 vers...
#ifndef HASHMAP_H #define HASHMAP_H #include <stdlib.h> // Why hashMap_uint no standard?? typedef unsigned int hashMap_uint; // A small struct to hold a hashed key, and a value pointer typedef struct hashMapItem { hashMap_uint key; void* value; } hashMapItem; // A struct to store a hashMap typedef struct hashMap {...
/* Copyright (C) 2017-2019 Peter S. Zhigalov <peter.zhigalov@gmail.com> This file is part of the `ImageViewer' program. 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 ...
/* * This file is part of dmrshark. * * dmrshark 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) any later version. * * dmrshark is distributed in...
#include <stdio.h> #define MAXLINE 1000 int myGetline(char line[], int maxline); main(int argc, char *argv[]) { int c, len; int i; char line[MAXLINE]; int tabstop; int spaceCount; if (argc == 1) tabstop = 8; else if (argc == 2) tabstop = atoi(*++argv); else { printf("Usage entab (8)(tabstop)\n"); re...
//=========================================================================== /*! * * * \brief Multi-objective optimization benchmark function CIGTAB 2. * * The function is described in * * Christian Igel, Nikolaus Hansen, and Stefan Roth. * Covariance Matrix Adaptation for Multi-objective Optimizatio...
#include <stdio.h> #include <unistd.h> #include <pthread.h> #include "futaux.h" #include "userlock.h" int A = 0, B = 0; volatile int invoke_futex_wait_requeue_pi = 0; volatile pid_t thread_tid = -1; void *thread(void *arg) { thread_tid = gettid(); printf("[2]\n"); userlock_wait(&invoke_futex_wait_requeue...
// // UCEmailViewTo.h // AlmappUC // // Created by Patricio López on 28-02-15. // Copyright (c) 2015 almapp. All rights reserved. // #import <UIKit/UIKit.h> #import "UCEmailViewCell.h" @interface UCEmailViewTo : UCEmailViewCell @end
/* This file is part of Ruspma. * * Ruspma 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) any later version. * * Ruspma is distr...
#include <stdio.h> #include <stdlib.h> int main() { int a,b,c,n,i=0; scanf("%d", &n); while(n--) { i++; scanf("%d %d %d", &a,&b,&c); if(a<=20 && b<=20 && c<=20) printf("Case %d: good\n", i); else printf("Case %d: bad\n", i); } ...
// Copyright (c) 2017 LiuLang. All rights reserved. // Use of this source is governed by General Public License that can be found // in the LICENSE file. #ifndef TELEPORT_BASE_STRING_UTIL_H #define TELEPORT_BASE_STRING_UTIL_H #include <QString> namespace teleport { QString GenerateRandomString(int len); } // name...
/* * ISA bus. */ #include <linux/device.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/init.h> #include <linux/dma-mapping.h> #include <linux/isa.h> static struct device isa_bus = { .init_name = "isa" }; struct isa_dev { struct device dev; struct device *next; un...
#include "unpipc.h" #include "square.h" int main(int argc, char **argv) { CLIENT *cl; square_in in; square_out *outp; if (argc != 4) err_quit("usage: client <hostname> <integer-value> <protocol>"); cl = Clnt_create(argv[1], SQUARE_PROG, SQUARE_VERS, argv[3]); in.arg1 = atol(argv[2]); if ( (outp = squarepr...
#include "shadylib.h" static t_class *triangulator_class; typedef struct _triangulator { t_object x_obj; t_float x_f; union shadylib_floatpoint invals[2]; int num; /* number of msg inlets: 0, 1, or 2 0 is all signals, 1 is an add inlet, 2 is a multiply inlet and an add inlet */ double x_phase; float x_c...
/* * Copyright (c) 2014 Broadcom Corporation * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt3D module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercia...
/** * * This file is part of Tulip (www.tulip-software.org) * * Authors: David Auber and the Tulip development Team * from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest * * Tulip is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Licens...
#include <stdio.h> #include <stdlib.h> #include "queue.h" void queueInit(Queue * queue) { queue->front = NULL; queue->rear = NULL; queue->route = 0; } int qIsEmpty(Queue * queue) { if (queue->front == NULL) { return TRUE; } else { return FALSE; } } void enQueue(Queue * queue, int minRoute, int minIndex...
#ifndef __SVR_TRANS_H__ #define __SVR_TRANS_H__ #include "spie.h" #define svr_request(func_name, req_struct, rsp_struct) \ extern int svr_request_##func_name##_routine(session_t *ses, req_struct##_t *req, \ rsp_struct##_t **rsp); \ int svr_request_##func_name(session_t *ses, struct evbuffer *in, \ ...
/* * File: prefix.h * Author: Patrick Robinson * * Created on 28. April 2015, 12:35 */ #ifndef PREFIX_H #define PREFIX_H typedef double atype_t; void prefix(unsigned int p, unsigned int n, atype_t values[n], atype_t (*f)(atype_t, atype_t)); #endif /* PREFIX_H */
#include "removefile.h" #include "removefile_priv.h" #include <TargetConditionals.h> removefile_state_t removefile_state_alloc() { removefile_state_t state = (removefile_state_t)calloc(1, sizeof(struct _removefile_state)); if (state != NULL) state->urand_file = -1; return state; } int removefile_state_free(remo...
/* * * Copyright (c) 2009 by Christian Dietrich <stettberger@dokucode.de> * * 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) any late...
/* * vdrive-command.h - Virtual disk-drive implementation. Command interpreter. * * Written by * Andreas Boose <viceteam@t-online.de> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify *...
/** ** Hatchit Engine ** Copyright(c) 2015 Third-Degree ** ** GNU Lesser General Public License ** This file may be used under the terms of the GNU Lesser ** General Public License version 3 as published by the Free ** Software Foundation and appearing in the file LICENSE.LGPLv3 included ** in the ...
/**** DIAMOND protein aligner Copyright (C) 2016-2021 Max Planck Society for the Advancement of Science e.V. Benjamin Buchfink Code developed by Benjamin Buchfink <benjamin.buchfink@tue.mpg.de> This program is free software: you can redistribute it and/or modify it under the terms of the...
/** * INDI driver for Point Grey Chameleon USB2 camera * * Copyright (C) 2017 Andy Nikolenko * 2013 Ben Gilsrud * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * v...
#include "inclino-sensors.h" #include <errno.h> #include "../libiio/iio.h" #include <stdio.h> #include <string.h> #include <signal.h> #define BUFFER_SIZE 10 #define MCP_68 "1-0068" #define MCP_69 "1-0069" static struct iio_context *ctx; void inclino_init(void) { /* Creation of an IIO context */ ctx = iio_c...
/* * Multicast datagram - Client */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> struct sockaddr_in localSock; struct ip_mreq group; int sockfd, datalen; char databuf[1024]; int main() { // Create socket...
/* * Copyright (C) 2008 Canonical Ltd * Copyright (C) 2012-2021 MATE Developers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope th...
/* ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio 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 ap...
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_toolButton_clicked(); void mousePressEv...
/* * Copyright (C) 2011 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WA...
#if !defined(RUNNER_H_INCLUDED) #define RUNNER_H_INCLUDED #include <set> // std::set #include <string> // std::string #include "phrqtype.h" #include "StorageBinList.h" #include "PHRQ_base.h" class CParser; class runner: public PHRQ_base { public: runner(PHRQ_io *io=NULL); runner(CParser & parser, PHRQ_io *io...
#ifndef PULSE_BACKEND_H #define PULSE_BACKEND_H #include <pulse/pulseaudio.h> #include "synesthesia-app.h" typedef struct pa_devicelist { uint8_t initialized; char name[512]; uint32_t index; char description[256]; } pa_devicelist_t; int get_pulse_devices(pa_devicelist_t **sources); gpointer pulse_inp...
#ifndef __GRIDDIVIDE_H_ #define __GRIDDIVIDE_H_ #include "matrix.h" #include "float.h" #include "math.h" #include "icpPointToPlane.h" #include <vector> #include <algorithm> #include <queue> using namespace std; struct Point_xyz { double x, y, z; int grid_x, grid_y, grid_z; int index; public: Po...
/* * $Revision: 2299 $ * * last checkin: * $Author:klein $ * $Date:2007-10-18 17:23:28 +0200 (Thu, 18 Oct 2007) $ ***************************************************************/ /** \file * \brief Declaration of an abstract heap base class for * priority queue implementation. * * \author Karsten K...
/* * Copyright (C) 2002 Anthony Lomax <anthony@alomax.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 Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * *...
int max(int a, int b); int min(int a, int b); int mean(int *array, int size, int *result); #ifdef ENABLE_DEBUG #define DEBUG_INFO() fprintf(stderr, "\n ** Debug and test compiled: %s %s **\n\n ",__DATE__, __TIME__); #define DEBUG(a, ...) fprintf(stderr, "[%s:%s():%d] ",__FILE__,__func__, __LINE__ ); fprintf(stde...
#ifndef ORDENACAO_MARCA_ID_H #define ORDENACAO_MARCA_ID_H #include "template_ordenacao_marca.h" class ordenacao_marca_id : public Template_Ordenacao_Marca { // Template_Ordenacao_Marca interface public: ordenacao_marca_id(); bool criterio(VIMS::Marca m1, VIMS::Marca m2) const; }; #endif // ORDENACAO_MARCA...
/* * Copyright (C) 2015 Canonical, Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY...
/*! flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB-XMEGA Module 1.0 Copyright (C) 2009-2011 ZTEX GmbH. http://www.ztex.de This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as publ...
/****************************************************************************/ /// @file MSEventControl.h /// @author Christian Roessel /// @author Daniel Krajzewicz /// @author Michael Behrisch /// @author Matthias Heppner /// @date Mon, 12 Mar 2001 /// @version $Id: MSEventControl.h 13811 2013-05-01 20:31:4...
/* This file is part of solidity. solidity 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) any later version. solidity is distributed in the hope that i...
/* Biblioteka JOSKIPI * Jêzyk Opisu Stanu Korpusu IPI * * (c) Instytut Informatyki Stosowanej Politechniki Wroc³awskiej * i Instytut Podstaw Informatyki PAN * Autorzy: Grzegorz Godlewski, Maciej Piasecki, Bartosz Broda, Adam Wardyñski * * Kod na licencji GPL. */ #ifndef JOSKIPI_RULEPARSER_H #define JOSKI...
/* * gen_functions.h * Converts md files for the Mental Health and Wellness Knowledge Base * https://github.com/andy5995/mhwkb * * Copyright 2017 Andy Alt <andy400-dev@yahoo.com> * With contributions from * * Daniel Kelly <myself@danielkelly.me> * * and others mentioned in * https://github.com/andy5995/mhwkb...
#ifndef QSIPGATERESTLIB_UICONTROL_H #define QSIPGATERESTLIB_UICONTROL_H #include <QObject> #include <QUrl> #include <QNetworkReply> #include <QNetworkRequest> #include <QNetworkAccessManager> #include "parsereply.h" namespace qsipgaterestlib { class UIControl : public QObject { Q_OBJECT public: explicit UIC...
/* * (C) Copyright 2010 * Stefan Roese, DENX Software Engineering, sr@denx.de. * * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _PPC405EZ_H_ #define _PPC405EZ_H_ #define CONFIG_NAND_NDFC /* Memory mapped register */ #define CONFIG_SYS_PERIPHERAL_BASE 0xef600000 /* Internal Peripherals */ #define CONFIG_SYS_NS...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NGAP-IEs" * found in "../support/ngap-r16.1.0/38413-g10.asn" * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps` */ #include "NGAP_EmergencyAreaID.h" int NGAP_EmergencyAreaID_constraint(const asn_TYPE_descriptor_...
#ifndef TSL1406_H #define TSL1406_H class TSLXX ; class TSL1406 : public TSLXX { public: TSL1406(uint8_t clkPin, uint8_t siPin, uint8_t analogPin); static volatile uint8_t pixels[ 768 ]; static uint8_t pixelBuffer[ 768 ]; const int L_ARRAY = 768; const int L_ARRAY_1 = 769; }; volatile uint8_t TSL1406:...
/** * @file integrator.c * @brief Integration schemes. * @author Hanno Rein <hanno@hanno-rein.de> * @details This file implements the leap-frog integration scheme. * This scheme is second order accurate, symplectic and well suited for * non-rotating coordinate systems. Note that the scheme is formally only ...
/////////////////////////////////////////////////////////// // // // SAGA // // // // System for Automated Geoscientific Analyses // // ...
#ifndef DAYTIME_SYSCLOCK_H #define DAYTIME_SYSCLOCK_H #include "common.h" int UpdateSystemClock(struct timeval *Time); int UpdateCMOSClock(struct tm *NewTimetm); #endif
/* * This file is protected by Copyright. Please refer to the COPYRIGHT file * distributed with this source distribution. * * This file is part of GNUHAWK. * * GNUHAWK is free software: you can redistribute it and/or modify is under the * terms of the GNU General Public License as published by the Free Softwa...
//test return 18 /** * Tests macros in macro parameters */ #define FOO(a, b) ((a) * (b)) #define BAR(a, b) ((a) + (b)) #define BAZ 2 int __test() { return FOO(3, BAR(BAZ, 4)); }
/********************************************************************* * * Copyright (C) Guus Bonnema, 2015 * * This file is part of the xmas-design tool. * * The xmas-design tool is free software: you can redistribute it * and/or modify it under the terms of the GNU General Public License * as publishe...
//------------------------------------------------------------------------------------------------- // <copyright file="regutil.h" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are covered by the // Common Public Li...
/* * strutils.h * * Copyright (c) 2015, Diego F. Asanza. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your op...
/************************************************************************ ** ** Copyright (C) 2015 Kevin B. Hendricks, John Schember ** ** This file is part of Sigil. ** ** Sigil 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...
/* To use the the relay in active-low mode */ #define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> volatile unsigned char value; /* When receive data over USART */ ISR(USART_RX_vect) { value = UDR0; if(value == 'F') { /* Relay Mode ON */ PORTB |= 0b00000001; } else if(value =...
#ifndef INTERNALDATABASEMODEL_H #define INTERNALDATABASEMODEL_H #include <QObject> #include <QVariant> #include <QVariantList> #include "ilwiscoreui_global.h" class ILWISCOREUISHARED_EXPORT InternalDatabaseModel : public QObject { Q_OBJECT public: explicit InternalDatabaseModel(QObject *parent = 0); Q_IN...
#ifndef __NVBIOS_CSTEP_H__ #define __NVBIOS_CSTEP_H__ u16 nvbios_cstepTe(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz); struct nvbios_cstepE { u8 pstate; u8 index; }; u16 nvbios_cstepEe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr); u16 nvbios_cstepEp(struct nvkm_bios *, int id...
/* * (C) 2015, Aurel Wildfellner * * This file is part of CraftUI. * * Beholder 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) an...
/** ****************************************************************************** * File Name : ETH.h * Description : This file provides code for the configuration * of the ETH instances. ****************************************************************************** ...
/* This source file is part of Rigs of Rods Copyright 2005-2012 Pierre-Michel Ricordel Copyright 2007-2012 Thomas Fischer For more information, see http://www.rigsofrods.com/ Rigs of Rods is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as publish...
#include "builtin_service.h" void builtin_service_manager_init(); service_method_t* builtin_service_manager_get_method(const char* service_class, const char* method_name); bool builtin_service_manager_is_class_exists(const char* service_class); builtin_service_t* builtin_service_manager_get_c...
// Copyright (c) 2005 - 2017 Settlers Freaks (sf-team at siedler25.org) // // This file is part of Return To The Roots. // // Return To The Roots 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 versio...
#include <3ds.h> #include <stdio.h> #include "draw.h" #include "draw_font.h" #include "fonts.h" int main(int argc, char **argv) { gfxInitDefault(); u8* buffer; while (aptMainLoop()) { hidScanInput(); unsigned int key = hidKeysDown(); //ã‰æ–Ê buffer = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NU...
#include "global.h" void write_loaded_unit(int absolute_x, int absolute_y, interface_struct *p_inter_data, field_struct *p_field_data) { int x, y, l_x, l_y; int maxy = (*p_field_data).maxy; int maxx = (*p_field_data).maxx; int l_maxx = (*p_inter_data).lp_data.maxx; int l_maxy = (*p_inter_data).lp_data.maxy; ...
/** * Copyright (C) 2016 Martin Ubl <http://pivo.kennny.cz> * * This file is part of PIVO suite. * * PIVO 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 ...
/* File: jagpjcswitch.h Project: jaguar-parser Author: Douwe Vos Date: May 13, 2017 e-mail: dmvos2000(at)yahoo.com Copyright (C) 2017 Douwe Vos. 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 ...
/* * Copyright (C) 2013 Vadim Kochan <vadim4j@gmail.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) any later version. * * ...
// Copyright 2014 eric schkufza // // 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 i...
/* * Author: KK <thumbd03803@gmail.com> * * button.h * */ #ifndef BUTTON_H #define BUTTON_H #include <iostream> #include <cstdio> #include <string> #include <SDL.h> #include "global.h" #include "window.h" using namespace std; enum ButtonState { BUTTON_NORMAL = 0, BUTTON_HOVERED, BUTTON_PUSHED }; class But...
#ifndef _CONTROLLER_H_ #define _CONTROLLER_H_ #include "servo.h" #define V_MAX 1000 // als define lösen!! #define sin_120 -0.5 #define cos_120 0.866028 void control_init(float t_i, float k_p, int delay); void control(struct MouseData *cur_delta_s); void omniwheelTransformation(struct Velocity * const velocity...
//==================================================================== // Copyright (c) 2015 Carsten Wulff Software, Norway // =================================================================== // Created : wulff at 2015-8-20 // =================================================================== // Thi...
/* This file is part of lib_gif Copyright (C) 2015 Julien Thevenon ( julien_thevenon at yahoo.fr ) 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 ...
/* Copyright 2010-2021 David "Alemarius Nexus" Lerch This file is part of electronicsdb. electronicsdb 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 ...
#pragma once #include <vector> class Card; class Player; class SmithyCard { public: SmithyCard(); ~SmithyCard(); static int getPrice(Card *card, Player *owner, std::vector<Player*> *otherPlayers); static void playAction(Card *card, Player *owner, std::vector<Player*> &otherPlayers); };
/* * Copyright (C) 2014 by Volodymyr Kachurovskyi <Volodymyr.Kachurovskyi@gmail.com> * * This file is part of Skwarka. * * Skwarka 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 Li...
/*************************************************************************** * The FreeMedForms project is a set of free, open source medical * * applications. * * (C) 2008-2016 by Eric MAEKER, MD (France) <eric.maeker@gmail.com> * * All righ...
#ifndef _LIBSVM_H #define _LIBSVM_H #ifdef __cplusplus extern "C" { #endif struct svm_node { int index; double value; }; struct svm_problem { int l; double *y; struct svm_node **x; }; enum { C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR, NU_SVR }; /* svm_type */ enum { LINEAR, POLY, RBF, SIGMOID, MATRIX }; /* kernel_t...
//========================================================================== // // include/netinet6/esp_twofish.h // //========================================================================== //####BSDCOPYRIGHTBEGIN#### // // ------------------------------------------- // // Portions of this software may have be...
/* HCSR0X.h - Library for sensor HCSR0X */ #ifndef HCSR0X_h #define HCSR0X_h #include <Arduino.h> #include "_macro.h" class HCSR0X { public: HCSR0X(uint8_t Trigger,uint8_t Echo, int max_range_in_cm = DEFAULT_RANGE); /*! @method @abstract Sets all the pins of the device. @discussion This...
/* * Auto generated Run-Time-Environment Component Configuration File * *** Do not modify ! *** * * Project: 'ble_app_hrs_freertos_s130_pca10028' * Target: 'nrf51422_xxac_s130' */ #ifndef RTE_COMPONENTS_H #define RTE_COMPONENTS_H #endif /* RTE_COMPONENTS_H */
////////////////////////////////////////////////////////////////////////// // Copyright 2012 Peter Atechian (Retep998) // ////////////////////////////////////////////////////////////////////////// // This file is part of NoLifeStory. // // ...
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo * This benchmark is part of SWSC */ #include <assert.h> #include <stdint.h> #include <stdatomic.h> #include <pthread.h> atomic_int vars[3]; atomic_int atom_1_r1_1; atomic_int atom_1_r6_2; void *t0(void *arg){ label_1:; atomic_store_explicit(&vars[0], 2, memo...
#include <gtk/gtk.h> int main(int argc, char *argv[]) { GtkWidget *window; GtkWidget *toggle; GtkWidget *label; GtkWidget *box; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); toggle = gtk_toggle_button_new(); label = gtk_label_new("TOGGLE"); box = gtk_vbox_new(TRUE, 5); gtk_containe...
#ifndef COMPUTEHASH_H #define COMPUTEHASH_H #include <QObject> #include "CheckFile_global.h" #include "util/util.h" class Factory; class CheckFilePrivate; class CHECKFILESHARED_EXPORT CheckFile : public QObject { Q_OBJECT public: explicit CheckFile(QObject *parent = 0); ~CheckFile(); ...
//API for the Qsys DMA Controller #include "fpga_dmac_api.h" //-----------------Generic functions--------------------// //(Addresses are multiplied by 4 because the peripheral has 32-bit (4byte) regs uint32_t fpga_dma_read_reg(void* addr, uint32_t reg) { return *((uint32_t*) (addr + 4*reg)); } void fpga_dma_write_r...
/* -*- buffer-read-only: t -*- vi: set ro: */ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ #line 1 /* Copyright (C) 1991,92,93,94,96,97,98,2000,2004,2007,2008 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it under ...
/* * * A simple C program which taunts the user * */ #include <stdio.h> int main(void) { char message[] = "UCSC Contest Problem Two is too hard for you, give up!"; printf("%s\n", message); return 0; }