text
stringlengths
4
6.14k
#include <assert.h> #include "modbus-acy.h" //char * //modbusValueToString(uint8_t *valArray, uint16_t valLen, int modbusType, char *strVal) void test_modbusValueToString_bool() { uint8_t valArray[2]; char strVal[8]; printf("test_modbusValueToString_bool\n"); valArray[0] = 0x01; assert(!strcmp("true", mo...
#ifndef TESTLISTSTYLE_H #define TESTLISTSTYLE_H #include <QObject> #include <QtTest/QtTest> // #include <KoTextShapeData.h> // #include <KoTextDocumentLayout.h> // #include <KoShape.h> // class TestListStyle : public QObject { Q_OBJECT public: TestListStyle() {} private slots: void testListStyle();...
/* MobileRobots Advanced Robotics Interface for Applications (ARIA) Copyright (C) 2004, 2005 ActivMedia Robotics LLC Copyright (C) 2006, 2007, 2008, 2009 MobileRobots Inc. Copyright (C) 2010, 2011 Adept Technology, Inc. This program is free software; you can redistribute it and/or modify it under the terms o...
// 0x80.c #include <stdio.h> int main() { printf("Bug:\t%f\n", ('\x80' >> 4) * 16.0f + 0.5f); printf("No bug:\t%f\n", ((unsigned char) '\x80' >> 4) * 16.0f + 0.5f); return 0; }
#ifndef PROTOCOL_H #define PROTOCOL_H namespace KMP { } #endif // PROTOCOL_H
#include <dryos.h> #include <property.h> #include <cfn-generic.h> int GUI_GetCFnForTab4(int); int GUI_SetCFnForTab4(int,int); int get_htp() { return GetCFnData(1, 3); } void set_htp(int value) { SetCFnData(1, 3, value); } GENERIC_GET_ALO int get_mlu() { return GetCFnData(2, 13); } void set_mlu(int value) { SetCFnDa...
/* Copyright (c) 2010, Code Aurora Forum. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope th...
/* * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische * Universitaet Berlin. See the accompanying file "COPYRIGHT" for * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. */ static char ident[] = "$Header: /cvsroot/rplay/rplay/gsm/gsm_create.c,v 1.1 1998/07/14 22:35:24 mrb Exp $"; #incl...
/* * Copyright (C) 2015 Red Hat * * This file is subject to the terms and conditions of the GNU General Public * License v2. See the file COPYING in the main directory of this archive for * more details. */ #include <drm/drm_backport.h> /* * alloc_anon_inode */ static const struct file_operations anon_inode...
#include "mex.h" #include "matrix.h" #include <string.h> #include <stdio.h> void separatefile(char * Ofile, char ** Nfile, int PageSize, int Pages) { FILE * pofile; FILE * pnfile; char str[4000]; char debugstr[140]; int i=0,j=0; int lines = 0,curline = 0; pofile = fopen( Ofile, "r+t"); lines = PageSize / 5; ...
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license contained ...
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2020 University of Padova, Dep. of Information Engineering, SIGNET lab. * * 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...
// ************************************************************************* // // Copyright 2004-2010 Bruno PAGES . // // This file is part of the BOUML Uml Toolkit. // // 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 // th...
#include "mint/kcompiler.h" #include "debug.h" #include "filesys.h" #include "k_fds.h" #include "mint/fcntl.h" #include "mint/errno.h" #include "mint/assert.h" #include "mintfake.h" #include "dosfile.h" #include "dosdir.h" #include "mintproc.h"
/* * IMFS_unlink * * Routine to remove a link node from the tree. * * COPYRIGHT (c) 1989-1999. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. *...
/* * Copyright 1997-2003 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Fou...
#ifndef TPPROTO_DESIGNCACHE_H #define TPPROTO_DESIGNCACHE_H /* DesignCache - Cache of Designs class * * Copyright (C) 2006, 2008 Lee Begg and the Thousand Parsec Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published...
#include <kernel/arch.h> #include <kernel/console.h> #include <kernel/kassert.h> #include <kernel/kernel.h> #include <kernel/kernel_image.h> #include <kernel/kheap.h> #include <kernel/kmalloc.h> #include <kernel/mm/memory.h> #include <kernel/multiboot.h> #include <kernel/panic.h> #include <kernel/time/time.h> #include ...
/* Shared library add-on to iptables for the SRCAUTH match. * * Written by Lukas Limacher, <lul@open.ch>, <limlukas@ethz.ch>, 02.07.2015 * Copyright (c) 2015 Open Systems AG, Switzerland * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License...
/* * Copyright (C) 2008 Analog Devices Inc. * Licensed under the GPL-2 or later. */ #ifndef _MACH_GPIO_H_ #define _MACH_GPIO_H_ <<<<<<< HEAD #define MAX_BLACKFIN_GPIOS 41 #define GPIO_PF0 0 #define GPIO_PF1 1 #define GPIO_PF2 2 #define GPIO_PF3 3 #define GPIO_PF4 4 #define GPIO_PF5 5 #define GPIO_PF6 6 #define G...
/* * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. Test this function is defined: int...
/* * $Id$ * * Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com> * * This file is part of paparazzi. * * paparazzi 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, or (at your ...
enum { DRUUGE_PACKAGE = 1 };
//--------------------------------------------------------------------------- #ifndef OverbyteIcsRecv1H #define OverbyteIcsRecv1H //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include "OverbyteIc...
/* arch/arm/mach-msm/include/mach/hardware.h * * Copyright (C) 2007 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distri...
/* * Copyright (C) 2001-2013 Jacek Sieka, arnetheduck on gmail point 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 2 of the License, or * (at your option) any later ...
/* vim:set noet ts=8 sw=8 sts=8 ff=unix: */ #ifndef __K_INI_H__ #define __K_INI_H__ #ifdef __cplusplus extern "C" { #endif #include <ktypes.h> kbool kini_getstr(const kchar *a_sec, const kchar *a_key, kchar *a_val, kint a_size, const kchar *a_path); kbool kini_getint(const kchar *a_sec, const kchar *a_key, kint *a_...
#include "lolevel.h" #include "platform.h" #include "keyboard.h" #include "kbd_common.h" long kbd_new_state[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }; long kbd_prev_state[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }; long kbd_mod_state[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }; int get_usb_bit() { long usb_phys...
/* * (C) Copyright 2000 * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published ...
#include "platform.h" char *hook_raw_image_addr() { return (char*)0x421E1120; } void *vid_get_viewport_live_fb()//found in sub_FF8E0788 { void **fb=(void **)0x5014; unsigned char buff = *((unsigned char*)0x4E5C); if (buff == 0) buff = 2; else buff--; return (void*)fb[buff]; } void *vid_get_bitmap_fb()...
/* -*- mode: c; tab-width: 4; indent-tabs-mode: n; c-basic-offset: 4 -*- * * $Id: nb_kernel101.h,v 1.1 2004/12/26 19:24:27 lindahl Exp $ * * This file is part of Gromacs Copyright (c) 1991-2004 * David van der Spoel, Erik Lindahl, University of Groningen. * * This program is free software; you can redis...
#ifndef __DIALOGEX_H__ #define __DIALOGEX_H__ #include "wrapengine.h" class wxDialogEx : public wxDialog, public CWrapEngine { public: bool Load(wxWindow *pParent, const wxString& name); bool SetLabel(int id, const wxString& label, unsigned long maxLength = 0); wxString GetLabel(int id); virtual int ShowModal()...
#ifndef TRANSLATOR_H_ #define TRANSLATOR_H_ extern int next_temp; extern int next_label; char *newtemp(); char *gen_expr(char * first_code, char * second_code, char ** lval, char * expr1, char * op, char * expr2); char *gen_assgnmnt(char *code, char *lval, char *rval); char *gen_if(char* expr_code, char* expr, char*...
/* * ===================================================================================== * * Filename: dep_struct.h * * Description: * * Version: 1.0 * Created: 01/04/2014 06:00:37 PM * Revision: none * Compiler: gcc * * Author: vyouzhi (), vyouzhi@gmail....
int selButton; GdkPixbuf *pix; GtkWidget *img; GtkAllocation allocation; cairo_surface_t *surface; cairo_t *cr; GError *pixbuf_error; void on_draw_event(GtkWidget *, cairo_t *, gpointer); void redraw(cairo_t *, gdouble, gdouble); void btn_destroyer_clicked(GtkWidget *, gpointer); void btn_submarine_clicked(GtkWidget *...
/* created by click/linuxmodule/fixincludes.pl on Tue Nov 25 22:39:38 2014 */ /* from /lib/modules/2.6.27.5-117.fc10.i686/build/include/linux/netpoll.h */ /* * Common code for low-level network console, dump, and debugger code * * Derived from netconsole, kgdb-over-ethernet, and netdump patches */ #ifndef _LINUX_N...
/* * DECnet An implementation of the DECnet protocol suite for the LINUX * operating system. DECnet is implemented using the BSD Socket * interface as the means of communication with the user level. * * DECnet Socket Timer Functions * * Author: Steve Whi...
/* Add subsystem definitions of the form SUBSYS(<name>) in this * file. Surround each one by a line of comment markers so that * patches don't collide */ /* */ /* */ #ifdef CONFIG_CPUSETS SUBSYS(cpuset) #endif /* */ #ifdef CONFIG_CGROUP_DEBUG SUBSYS(debug) #endif /* */ #ifdef CONFIG_CGROUP_SCHED SUBSYS(cpu_cg...
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/OfficeImport-Structs.h> #import <OfficeImport/XXUnknownSuperclass.h> __attribute__((visibility("hidden"))) @interface WXFieldMarker : XXUnknownSuperclass...
/* * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch> * Copyright (C) 2004 Microtronix Datacom Ltd. * * MMU support based on asm/page.h from mips which is: * * Copyright (C) 1994 - 1999, 2000, 03 Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * * NOMMU support based on asm/page.h from m6...
/*============================================================================= XMOTO This file is part of XMOTO. XMOTO 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 you...
//fontttf.h #ifndef FONTTTF_H #define FONTTTF_H #include <SDL.h> #include <SDL_ttf.h> //for TTF_ functions #include <string> #include "surface.h" class FontTTF { public: FontTTF(); FontTTF(std::string fileName, int size); ~FontTTF(); bool load(std::string fontName, int size); int put_te...
#ifndef COMMODITYDIALOG_H #define COMMODITYDIALOG_H #include <QModelIndex> #include <QDoubleValidator> #include <QDataWidgetMapper> #include "SettingsDialog.h" namespace Ui { class CommodityDialog; } /** * @brief * */ class CommodityDialog: public QDialog { Q_OBJECT public: /** * @brief * * @param parent...
//************************************************************************** // Código del usuario // // Francisco Javier Bolívar Lupiáñez //************************************************************************** #include <GL/gl.h> #include <vector> #include "vertex.h" using namespace std; void dibujar_ajedrez(co...
/*************************************************************************** qgsgrassplugin.h - GRASS menu ------------------- begin : March, 2004 copyright : (C) 2004 by Radim Blazek email : blazek@itc.it *************************...
/* ad.c - audio decoder interface */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "config.h" #include "stream/stream.h" #include "libmpdemux/demuxer.h" #include "libmpdemux/stheader.h" #include "ad.h" /* Missed vorbis, mad, dshow */ //extern ad_functions_t mpcodecs_ad_null; extern ad_func...
/* * @(#) $Id$ * Copyright (C) 2014-2016 David Necas (Yeti). * E-mail: yeti@gwyddion.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 * (...
/* $Id: perfctr.h,v 1.95 2005/10/02 13:01:30 mikpe Exp $ * Performance-Monitoring Counters driver * * Copyright (C) 1999-2005 Mikael Pettersson */ #ifndef _LINUX_PERFCTR_H #define _LINUX_PERFCTR_H #ifdef CONFIG_PERFCTR /* don't break archs without <asm/perfctr.h> */ #include <asm/perfctr.h> /* cpu_features flag...
#pragma once // SPDX-License-Identifier: GPL-2.0-or-later // Copyright (C) 2019 The MMapper Authors // Author: Ulf Hermann <ulfonk_mennhar@gmx.de> (Alve) // Author: Marek Krejza <krejza@gmail.com> (Caligor) #include <memory> #include "../expandoracommon/parseevent.h" #include "experimenting.h" class ParseEvent; clas...
/* * Copyright (C) 2000 Matthias Elter <elter@kde.org> * * 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....
/* * c't-Bot * * 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. * This program is distributed in the hope that ...
/* * 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. * * Written (W) 2012 Fernando José Iglesias García * Copyright...
#ifndef _OV9724_H_ #define _OV9724_H_ int ov9724_read(struct v4l2_subdev *sd, unsigned short reg, unsigned char *value); #endif
/* * $Id: xlate.h,v 1.12 2003/11/17 21:51:09 spoel Exp $ * * This source code is part of * * G R O M A C S * * GROningen MAchine for Chemical Simulations * * VERSION 3.2.0 * Written by David van der Spoel, Erik Lindahl, Berk Hess, ...
#include "bsp_icc.h" #include "osl_common.h" #include "uart.h" #include "gpio.h" #include "drv_nv_id.h" #include "drv_nv_def.h" #include "bsp_nvim.h" #define VIA_WAKEUP_BALONG_PIN GPIO_26_3 #define LPm3_UART5_IQR_ENABLE (0xaa) #define VIA_WAKEUP_BALONG (0x01) #define dm_print_info(fmt, ...) (printk("...
#ifndef _BOOL_H_ #define _BOOL_H_ #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #endif
/*************************************************************************************** * Genesis Plus * * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code) * Eke-Eke (2007,2008,2009), additional code & fixes for the GCN/Wii port * * This program is free software; you...
#ifndef KEYBOARD_H #define KEYBOARD_H #include <SDL.h> void KeyboardInit(); // return true for magic quit event (meta + esc) bool ProcessKeyEvent(SDL_KeyboardEvent* key); #endif
/* 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[4]; atomic_int atom_1_r1_1; atomic_int atom_2_r1_1; atomic_int atom_2_r8_0; void *t0(void *arg){ label_1:; atomic_store_e...
/* * Copyright 2009 Anton Staaf * * 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. * * This program is distribute...
/* This file is part of nextwall - a wallpaper rotator with some sense of time. Copyright 2004, Davyd Madeley <davyd@madeley.id.au> Copyright 2010-2013, Serrano Pereira <serrano@bitosis.nl> Nextwall is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
/** @author Asitha Nanayakkara <daun07@gmail.com> @section LICENSE Nooba Plugin API source file Copyright (C) 2013 Developed by Team Nooba 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...
/* * DrogonPidTuner.h * * This file is part of Drogon. * * Drogon 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. * * Drogon ...
/* MSync.exe : Synchronizes files in a current directory with files in another directory heirarchy Copyright (C) 2017 Comine.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...
// Copyright Eric Wolfson 2016-2017 // See LICENSE.txt (GPLv3) #ifndef RNG_H_ #define RNG_H_ #include <random> #include <time.h> static std::mt19937 random_number_generator(time(0)); bool roll(int); bool rollPerc(int); int randInt(int,int); int randZero(int); #endif
/*========================================================================= Program: ParaView Module: pqDesktopServicesReaction.h Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of t...
/* * scsi_netlink.c - SCSI Transport Netlink Interface * * Copyright (C) 2006 James Smart, Emulex Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of...
#ifndef PhiOS_DRIVERS_ACPI_SRAT #define PhiOS_DRIVERS_ACPI_SRAT #include "include/types.h" #include "include/errors.h" #include "include/compiler.h" #include "drivers/acpi/include/SDTHeader.h" /* * SRAT header */ #define SRAT_PROCESSOR_LOCAL_APIC_TYPE 0 #define SRAT_MEMORY_TYPE 1 #define ...
// Copyright (c) 2005 - 2015 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 <stdio.h> #include <fcntl.h> int main(int argc, char **argv) { int cin, fout; char c; if (argc > 1) fout = open(argv[1], O_WRONLY|O_CREAT, 0644); else fout = 1; while ((cin = getchar()) != EOF) { c = cin; if (c == '\n') c = '\r'; if (c == '\t') c = ' '; c |= 0x80; ...
/****************************************************************/ /** **/ /** Author: Jacob Hurst **/ /** File name: regionconfig.h **/ /** Date: Tuesday 13 Jan 2009 ...
/* This file is part of Telegram Desktop, the official desktop version of Telegram messaging app, see https://telegram.org Telegram Desktop 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 (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt...
//============== IV: Multiplayer - http://code.iv-multiplayer.com ============== // // File: CServerRPCHandler.h // Project: Server.Core // Author(s): jenksta // License: See LICENSE in root directory // //============================================================================== #pragma once #include <Network/CR...
#include <stdio.h> main() { int a, s, i; printf("Введите десятичное число\n"); scanf("%s", &a); s = 128; i = 1; while(i<=8) { i++ if(a>=s) { printf("1"); a-=s; } else printf("0"); s/-2; } return 0; }
/** * @file Dependence.h * * @version 1.0 * @created 01/28/2013 01:16:50 PM * @revision $Id$ * * @author Ryan Huang <ryanhuang@cs.ucsd.edu> * @organization University of California, San Diego * * Copyright (c) 2013, Ryan Huang * Licensed under the Apache License, V...
/** * Class: PresetMenu * Author: Jonathan David Hook * Email: j.d.hook@ncl.ac.uk * Web: http://homepages.cs.ncl.ac.uk/j.d.hook */ #ifndef PresetMenu_H #define PresetMenu_H #include <map> #include "ScrollMenu.h" #include "SplinePreset.h" namespace Waves { class PresetMenu : public ScrollMenu { public: ty...
#pragma once #include <stdarg.h> #include "rpc/server.h" #include "rpc/client.h" #include "rpc/utils.h" #include "log_service.h" namespace rlog { class RLog { public: static void init(const char* my_ident = nullptr, const char* rlog_addr = nullptr); static void finalize() { Pthread_mutex_lock(&mute...
#pragma once #include "Body.h" #include "LocalScope.h" #include "Parameter.h" #include "instance/Views.h" #include "meta/Flags.h" #include "meta/Optional.h" #include "meta/VectorRange.h" #include "meta/algorithm.h" #include "strings/View.h" #include <set> namespace instance { using Name = strings:...
#ifndef _MTYPE_H_ #define _MTYPE_H_ #include "memory.h" class ChessBoard; typedef unsigned int uint32; typedef short int16; typedef unsigned char uint8; typedef struct _ZobristNode{ uint32 hash; int16 value; bool operator !(){ if(hash == 0) return true; return false; } bool operator ==(...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "S1AP-PDU-Contents" * found in "../support/s1ap-r16.1.0/36413-g10.asn" * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps` */ #ifndef _S1AP_UEContextResumeFailure_H_ #define _S1AP_UEContextResumeFailure_H_ #inclu...
/* * C function that gets rss feeds from various news agencies and extracts the titles * Uses libcurl open source library to download feed.xml * The function accounts that the file downloaded is not necessarily a xml file and may not be "proper" */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include...
static const char help[] = "Petsc mat example.\n\n"; #include <petscmat.h> #undef __FUNCT__ #define __FUNCT__ "main" int main(int argc,char **argv) { /* Initialize the Petsc environment */ PetscInitialize(&argc,&argv,(char*)0,help); /* Write a PETSc program that creates a parallel matrix to host ...
/*\ * Binary analyzer for decompilation and forensics * Copyright (C) 2013 Quentin SANTOS * * 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 * (a...
#include "stack.h" STACK *createStack(int num_items,size_t unit_size) { STACK *newStack = (STACK *)malloc(1*sizeof(STACK)); newStack->block_list = NULL; newStack->items_per_block = num_items; newStack->item_size = unit_size; newStack->item_c = 0; return newStack; } void emptyStack(STACK *astack) { BLOCK_STAR...
// // ViewController.h // SavingMoreStuff // // Created by CICCC1 on 2016-07-20. // Copyright © 2016 Ideia do Luiz. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
#pragma once #ifndef ANIMOBJECT_H #define ANIMOBJECT_H #include "Object.h" class AnimObject : public Object { public: AnimObject(int pPosX, int pPosY, std::string pTextureName, int pTextureOffsetX, int pTextureOffsetY); virtual ~AnimObject(); virtual ErrCode Update(double dt); virtual ErrCode Draw(LPD3DXSPRI...
#define _SET(type,name,bit) type ## name |= _BV(bit) #define _CLEAR(type,name,bit) type ## name &= ~ _BV(bit) #define _TOGGLE(type,name,bit) type ## name ^= _BV(bit) #define _GET(type,name,bit) ((type ## name >> bit) & 1) #define _PUT(type,name,bit,value) type ## name = ( type ## n...
// // AlphaColl.h // // Created by Stefano Torre on 09/05/12. // #ifndef NEMO_ALPHACOLL_H_ #define NEMO_ALPHACOLL_H_ #include "Hereward/Edm/StorableObject.h" #include "Hereward/Edm/ConstHandle.h" #include "Hereward/Edm/Handle.h" #include "StorableContainers/ValueVector.h" #include "NemoObjects/Alpha.h" class EventR...
/* * A Command & Conquer: Renegade SSGM Plugin, containing all the single player mission scripts * Copyright(C) 2017 Neijwiert * * 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 versio...
// // AppDelegate.h // CZJTest // // Created by isExist on 2016/9/23. // Copyright © 2016年 isExist. All rights reserved. // #import <UIKit/UIKit.h> @interface CZJTestAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
/********************************************************************* CombLayer : MCNP(X) Input builder * File: include/SimMCNP.h * * Copyright (c) 2004-2020 by Stuart Ansell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
#ifndef HEADER_LIBDEVS_H #define HEADER_LIBDEVS_H #include <stdint.h> /* * Device model */ enum fake_type { /* Device is good. */ FKTY_GOOD, /* Device is at least partially damaged. */ FKTY_BAD, /* Device discards data after a given limit. */ FKTY_LIMBO, /* Device overwrites data after a given limit. */ ...
#include <glib.h> #include <gmp.h> #include <cv.h> #include <highgui.h> #include "colourmap.h" #include "game.h" #include "result.h" #ifndef EXPERIMENT_H #define EXPERIMENT_H #define MAX_THREADS 10 typedef struct { int update_rule; int percentage; int generations; int gui; int repetitions; in...
#include "Markup.h" char *XMLGetTag(char *Input, char **Namespace, char **TagType, char **TagData) { char *ptr, *tptr; int len=0, InTag=FALSE, TagHasName=FALSE; if (! Input) return(NULL); if (*Input=='\0') return(NULL); ptr=Input; //This ensures we are never dealing with nulls if (! *TagType) *TagType=CopyStr(*TagTy...
/* STM32F1 Test of timer IRQ using Output Compare The board used is the ET-STM32F103 with LEDs on port B pins 8-15 A Digital test output is provided on PC0 for triggering Timer 3 is setup without output compare to provide a timed interrupt. */ /************************************************************************...
/** * \file demoEnet.h * * \brief Function prototypes for the Ethernet */ /* * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ar...
#pragma once #include <vector> #include "storm/storage/BitVector.h" #include "storm/exceptions/InvalidArgumentException.h" namespace storm { namespace storage { class PomdpMemory { public: PomdpMemory(std::vector<storm::storage::BitVector> const& transitions, ...
/*************************************************************************** * ncm_dataset.h * * Mon Jul 16 18:04:45 2007 * Copyright 2007 Sandro Dias Pinto Vitenti * <sandro@isoftware.com.br> ****************************************************************************/ /* * numcosmo * Copyright...
/* ======================================================================================================================= File : FrequencyCounter.cpp ----------------------------------------------------------------------------------------------------------------------- Author : Kleber Kruger Email ...