text
stringlengths
4
6.14k
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_environment_w32_spawnvp_09.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-09.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input from an...
#import <UIKit/UIKit.h> @interface UIFont (MysteryQuest) + (instancetype)mysteryQuestFontOfSize:(CGFloat)size; @end
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk // Copyright 2015 Arcam. See LICENSE file. #import "UPPBaseParser.h" @class UPPBasicDevice; /** Parser completion block @param devices If parsing succeeds, a new `UPPBasicDevice` object is returned @param error If parsing fails, an `NSError` object is r...
/* * PRS - Personal Radio Station * * Copyright 2003 Marc Mulcahy * */ #include <assert.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <pthread.h> #include <signal.h> #include <sys/types....
#ifndef XIVELY_FEED_H #define XIVELY_FEED_H #include <Client.h> #include <XivelyDatastream.h> #include <Printable.h> class XivelyFeed : public Printable { public: XivelyFeed(unsigned long aID, XivelyDatastream* aDatastreams, int aDatastreamsCount); virtual size_t printTo(Print&) const; unsigned long id() { re...
#pragma once #include "CompositeTypeDefinitionNode.h" namespace Three { class StructureNode : public CompositeTypeDefinitionNode { public: std::string nodeName() const; void accept(ASTVisitor& visitor); uint32_t packing() const; protected: void setParsedIntegerSpecifier(P...
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: ./sandbox/src/java/org/apache/lucene/bkdtree/OfflineLatLonReader.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_OrgApacheLuceneBkdtreeOfflineLatLonReader") #ifdef RESTRICT_OrgApacheLuceneBkdtreeOfflineLatLonReader #define INCLUDE...
#include <stdio.h> #include <stdlib.h> #include <string.h> /** * Reads CSV data from stdin that is of the form * * 2017/01/18 15:32:37,-6.09,64.39 * 2017/01/18 15:33:38,-6.12,64.58 * ... * * and in lines where the humidity value (the last one) is 100.00 * because of faulty measurements, replaces it with the la...
#ifndef ARRO_DATABASE_DB_H #define ARRO_DATABASE_DB_H #include <stdexcept> #include <thread> #include <google/protobuf/message.h> #include <list> #include <condition_variable> #include <memory> #include <functional> #include "INodeDefinition.h" #include "INodeContext.h" #include "Trace.h" namespace Arro { class D...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" #include "io.h" enum { Qdir = 0, Qbase, Qmax = 16, }; typedef long Rdwrfn(Chan*, void*, long, vlong); static Rdwrfn *readfn[Qmax]; static Rdwrfn *writefn[Qmax]; static Dirtab archdir[Qmax] = { ...
#ifndef _MINICLASSES_HEADER #define _MINICLASSES_HEADER namespace java { namespace lang { class Object; class Comparable; class String; class System; class Throwable; class Exception; class OutOfMemoryError; class ArrayIndexOutOfBoundsException; class RuntimeException; class NullPointerException; class Uns...
/* 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 it will be usefu...
/* * Copyright (C) 2013-2020 Canonical, Ltd. * * 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 ...
/************************************************************************* > File Name: test.c > Author: hobson > Mail: song1919@163.com > Created Time: 2015年01月14日 星期三 12时26分22秒 ************************************************************************/ #include <stdio.h> #include <pthread.h> #include <unistd.h> ...
/* * se.h -- definitions for the char module * * Copyright (C) 2001 Alessandro Rubini and Jonathan Corbet * Copyright (C) 2001 O'Reilly & Associates * * The source code in this file can be freely used, adapted, * and redistributed in source or binary form, so long as an * acknowledgment appears in derived sourc...
/******************************************************************************** * Marvell GPL License Option * * If you received this File from Marvell, you may opt to use, redistribute and/or * modify this File in accordance with the terms and conditions of the General * Public License Version 2, June 1991 (the...
/* WMix 3.0 -- a mixer using the OSS mixer API. * Copyright (C) 2000, 2001 * Daniel Richard G. <skunk@mit.edu>, * timecop <timecop@japan.co.jp> * * 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 Found...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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 la...
/* Definitions for the Philips SAA7196 digital video decoder, scaler, and clock generator circuit (DESCpro), as used in the PlanB video input of the Powermac 7x00/8x00 series. Copyright (C) 1998 - 2002 Michel Lanners <mailto:mlan@cpu.lu> The register defines are shamelessly copied from the meteo...
/* * Copyright (C) 2018 Sarod Yatawatta <sarod@users.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 Free Software Foundation; either version 2 of the License, or (at your option) any later version. This pro...
#ifndef FASTREAD_COLLECTORDATETIME_H_ #define FASTREAD_COLLECTORDATETIME_H_ #include <Rcpp.h> #include "Collector.h" #include "DateTime.h" #include "DateTimeParser.h" #include "DateTimeLocale.h" std::string formatStandard(const std::string& format) { std::string out; out.resize(100); // Standard time used by g...
/* * Copyright (C) 2010 Apple Inc. 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...
/* ggrd_velinterpol.c */ int ggrd_find_vel_and_der(double *, double, double, struct ggrd_master *, int, unsigned short, unsigned short, double *, double *, double *); void ggrd_get_velocities(double *, double *, double *, int, struct ggrd_master *, double, double); void ggrd_weights(double, double *, int, int, double [...
/* * BB: The portable demo * * (C) 1997 by AA-group (e-mail: aa@horac.ta.jcu.cz) * * 3rd August 1997 * version: 1.2 [final3] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Licences as by published * by the Free Software Foundation; eithe...
/* * Copyright (C) 2003 PMC-Sierra Inc. * Author: Manish Lachwani (lachwani@pmc-sierra.com) * * Copyright (C) 2006 Ralf Baechle (ralf@linux-mips.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 ...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011 Nokia Corporation * Copyright (C) 2011 Marcel Holtmann <marcel@holtmann.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 ...
/* THIS FILE IS A PART OF GTA V SCRIPT HOOK SDK http://dev-c.com (C) Alexander Blade 2015 */ #pragma once #include <windows.h> #include <string> #include <vector> // parameters are the same as with aru's ScriptHook for IV void OnKeyboardMessage(DWORD key, WORD repeats, BYTE scanCode, BOOL isExtended, BOOL...
#include "nps_radio_control.h" #include <glib.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <glib.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <sys/ioctl.h> #include <linux/joystick.h> static gboolean on_js_data_received(GIOChannel *source, GIOCondition condition...
/* $Id: ioctls.h,v 1.1.1.1 2010/03/11 21:10:21 kris Exp $ */ #ifndef _ASM_SPARC64_IOCTLS_H #define _ASM_SPARC64_IOCTLS_H #include <asm/ioctl.h> /* Big T */ #define TCGETA _IOR('T', 1, struct termio) #define TCSETA _IOW('T', 2, struct termio) #define TCSETAW _IOW('T', 3, struct termio) #define TCSETAF _IOW('T', 4,...
#ifndef GVFONT #define GVFONT // // gvfont.h // ///////////////////////////////////////////////////////////////////////////// #define _MAX_PATH 255 #define PREFONT "/usr/local/lib/jmce/" #define m_stdfont PREFONT"stdfont.15" #define m_spcfont PREFONT"spcfont.15" #define m_supfont PREFONT"spcfsupp.15" #de...
/*************************************************************************** YAM - Yet Another Mailer Copyright (C) 1995-2000 Marcel Beck Copyright (C) 2000-2019 YAM Open Source Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
/************************************************************************************* Grid physics library, www.github.com/paboyle/Grid Source file: ./lib/Cshift.h Copyright (C) 2015 Author: Peter Boyle <paboyle@ph.ed.ac.uk> This program is free software; you can redistribute it and/or modify...
// OpenCSG - library for image-based CSG rendering for OpenGL // Copyright (C) 2002-2016, Florian Kirsch, // Hasso-Plattner-Institute at the University of Potsdam, Germany // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License, // Version 2, ...
/** * \file rq_asset_correlation_mgr.h * \author Hendra * * \brief rq_asset_correlation_mgr provides a manager class for exchange * rate objects */ /* ** rq_asset_correlation_mgr.h ** ** Written by Hendra ** ** Copyright (C) 2002-2008 Brett Hutley ** ** This file is part of the Risk Quantify Library...
// -*- C++ -*- //========================================================================== /** * @file Null_Barrier.h * * $Id: Null_Barrier.h 80826 2008-03-04 14:51:23Z wotte $ * * Moved from Synch.h. * * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> */ //==============================...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
/* * Copyright (c) 2003-2010 University of Florida * * 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 prog...
#pragma once #include "gfx/gl_common.h"
/* * This file is part of the coreboot project. * * Copyright (C) 2007-2009 coresystems GmbH * * 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; version 2 of the License. * * This program...
/* * MRAG_STDTestL1.h * MRAG * * Created by Diego Rossinelli on 7/16/08. * Copyright 2008 CSE Lab, ETH Zurich. All rights reserved. * */ #pragma once #include "MRAGCommon.h" #include "MRAGrid.h" namespace MRAG { template <typename Wavelets, typename Block> class MRAG_STDTestL1 //LEVEL 1: crashes, mem...
#ifndef __DIRCRAWL_SOL_H__ #define __DIRCRAWL_SOL_H__ #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <sys/types.h> #include <stdlib.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <sys/queue.h> typedef enum file_type_e { FILE_TYPE_INVALID = 0, FILE_T...
#ifndef DT_BINDINGS_MEMORY_TEGRA124_MC_H #define DT_BINDINGS_MEMORY_TEGRA124_MC_H #define TEGRA_SWGROUP_INVALID 0xff /* 0x238 */ #define TEGRA_SWGROUP_AFI 0 /* 0x238 */ #define TEGRA_SWGROUP_AVPC 1 /* 0x23c */ #define TEGRA_SWGROUP_DC 2 /* 0x240 */ #define TEGRA_SWGROUP_DCB 3 /* 0x244 */ #d...
#ifndef GAMMA_SYNC_H_INC #define GAMMA_SYNC_H_INC /* Gamma - Generic processing library See COPYRIGHT file for authors and license information */ #include "Gamma/Node.h" namespace gam{ class Sync; /// Normalized unit synchronization observer class Synced1{ public: virtual ~Synced1(){} double spu() const { re...
#include "cantera/base/logger.h" #include <string> #include <fstream> class fileLog: public Cantera::Logger { public: fileLog(std::string fName) { m_fName = fName; m_fs.open(fName.c_str()); } virtual void write(const std::string& msg) { m_fs << msg << std::endl; } virtual...
/* * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) * From ASN.1 module "PKIXTSP" * found in "lpa2.asn1" * `asn1c -S/skeletons` */ #ifndef _TimeStampToken_H_ #define _TimeStampToken_H_ #include <asn_application.h> /* Including external dependencies */ #include "ContentInfo.h" #ifdef __cplusplus extern...
#include <linux/module.h> #include <linux/preempt.h> #include <linux/smp.h> #include <asm/msr.h> static void __rdmsr_on_cpu(void *info) { struct msr_info *rv = info; struct msr *reg; int this_cpu = raw_smp_processor_id(); if (rv->msrs) reg = per_cpu_ptr(rv->msrs, this_cpu); else reg = &rv->reg; rdmsr(rv->m...
/* * Berkeley Lab Checkpoint/Restart (BLCR) for Linux is Copyright (c) * 2003, The Regents of the University of California, through Lawrence * Berkeley National Laboratory (subject to receipt of any required * approvals from the U.S. Dept. of Energy). All rights reserved. * * Portions may be copyrighted by othe...
// Copyright (c) Charles J. Cliffe // SPDX-License-Identifier: GPL-2.0+ #pragma once #include "GLPanel.h" class SpectrumPanel : public GLPanel { public: SpectrumPanel(); void setPoints(std::vector<float> &points); void setPeakPoints(std::vector<float> &points); float getFloorValue(); vo...
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2008 Ralf Baechle (ralf@linux-mips.org) * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. * Copyright 201...
//----------------------------------------------------------------------------------- // // Bitfighter - A multiplayer vector graphics space game // Based on Zap demo released for Torque Network Library by GarageGames.com // // Derivative work copyright (C) 2008-2009 Chris Eykamp // Original work copyright (C) 2004 Gar...
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by GSdx.rc // #define IDC_PALTEX 2001 #define IDC_LOGZ 2002 #define IDC_CODECS 2003 #define IDC_RESOLUTION 2004 #define IDC_RESX_EDIT 2005 #de...
#ifndef _UMLATTRIBUTE_H #define _UMLATTRIBUTE_H #include "UmlBaseAttribute.h" #include <q3cstring.h> // This class manages 'attribute', notes that the class 'UmlClassItem' // is a mother class of the class's children. // // You can modify it as you want (except the constructor) class UmlAttribute : public UmlBaseAtt...
/* * Copyright (C) 2003 Robert Kooima - 2006 Jean Privat * * NEVERBALL 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. * ...
/* * $Id: c_agcurv.c,v 1.5 2008-07-23 16:16:40 haley Exp $ */ /************************************************************************ * * * Copyright (C) 2000 * * University Corporation fo...
/***************************************************************************** Kodovani: UTF-8 Soubor: scanner_define.h Projekt: IFJ06 Datum: 17.12.2006 Autori: Lukas Marsik, xmarsi03@stud.fit.vutbr.cz Libor Polcak, xpolca03@stud.fit.vutbr.cz Boris Prochazka, xproch63@stud.fit.vutbr.cz Martin Tomec, xto...
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ /* #undef AC_APPLE_UNIVERSAL_BUILD */ /* Make use of ARM4 assembly optimizations */ /* #undef ARM4_ASM */ /* Make use of ARM5E assembly...
// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GTKMM_TOOLBUTTON_P_H #define _GTKMM_TOOLBUTTON_P_H #include <gtkmm/private/toolitem_p.h> #include <glibmm/class.h> namespace Gtk { class ToolButton_Class : public Glib::Class { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef ToolButton CppObjec...
/* Armator - simulateur de jeu d'instruction ARMv5T à but pédagogique Copyright (C) 2011 Guillaume Huard Ce programme est libre, vous pouvez le redistribuer et/ou le modifier selon les termes de la Licence Publique Générale GNU publiée par la Free Software Foundation (version 2 ou bien toute autre version ultérieure ch...
/* * Copyright (C) 2008-2008 LeGACY <http://www.legacy-project.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 vers...
/* * AiksaurusKDE - A KDE interface to the Aiksaurus library * Copyright (C) 2001 by Jared Davis * * 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 (a...
/// @addtogroup privileged /// @{ /// @file syslog.h /// @brief syslog interface /// @author Gwenhwyvar /// @version 0.1.0 /// @date 2015-12-13 #ifndef __SEC_SYSLOG_H #define __SEC_SYSLOG_H varargs void syslog(int priority, string format, mixed *args...); #define LOG_SHIFT 8 // intern...
/* Copyright (C) 2011 Birunthan Mohanathas (www.poiru.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. This pr...
#include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <limits.h> #include <stdbool.h> int checkString(char *s,int i,int j,int len){ char X = 'a'+i; char Y = 'a'+j; int top =-1; char *stack = (char *)malloc(sizeof(char)*len); for(int i = 0; i ...
/* linux/drivers/video/samsung/s3cfb_extdsp.h * * Copyright (c) 2010 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * Header file for Samsung Display Driver (FIMD) driver * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License v...
/* * FeatureManager.h - header for the FeatureManager class * * Copyright (c) 2017-2022 Tobias Junghans <tobydox@veyon.io> * * This file is part of Veyon - https://veyon.io * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as publi...
/* Generated by CIL v. 1.7.0 */ /* print_CIL_Input is false */ struct _1_sort__opaque_Node_1; struct _IO_FILE; struct timeval; extern void signal(int sig , void *func ) ; extern float strtof(char const *str , char const *endptr ) ; typedef unsigned long size_t; typedef struct _IO_FILE FILE; extern __attribute__((...
/* * cstring.h * * Created on: Dec 30, 2014 * Author: muneer */ #ifndef CSTRING_H_ #define CSTRING_H_ /** * t_cstring * * A struct to pretend like a String */ typedef struct C_String { int size; char *value; } t_cstring; /** * Create and return a t_cstring type */ t_cstring *cstring_create(); /**...
#ifndef __STATEADDOBJECTS_H #define __STATEADDOBJECTS_H #include "EditorState.h" #include "editorapp.h" class CStateAddObjects : public CEditorState { public: CStateAddObjects(CStateHandler* aStateHandler,CEditorBrush* aBrush,CEditableLevel* aLevel); ~CStateAddObjects(void); public: void Draw(CEditorDrawer* aDrawe...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_WEB_AUTH_FLOW_H_ #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_WEB_AUTH_FLOW_H_ #include <string> #i...
/* ieee-utils/print.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough * * 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)...
/* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. 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 ...
/* * $Id$ * * This file is part of the OpenLink Software Virtuoso Open-Source (VOS) * project. * * Copyright (C) 1998-2012 OpenLink Software * * This project 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 Softwar...
/* Copyright (C) 2014 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. DCP-o-matic 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 (...
/* Sieve of Eratosthenes * * A method to calculate prime numbers */ #include <stdio.h> #include <stdlib.h> #include <errno.h> int main (int argc, char *argv[]) { /* limit = the amount of numbers to check are prime or not */ int limit, i, j; if (argc != 2 || ((limit = atoi(argv[1]))) <= 0) ...
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Founda...
#include "stdio.h" /** this progarm just use to test the scope of the global variables. */ int sp; // sp is the global variables. void shadowornot(void){ int sp; sp = 3; if(sp == 0){ printf("local variable with same name do not shadow the external variable. \n"); }else{ printf("local variable will ...
#include <std.h> /* * ======== unit headers ======== */ #ifndef test42_TestMod__M #define test42_TestMod__M #include "../../test42/TestMod/TestMod.h" #endif #ifndef test42_TestProg__M #define test42_TestProg__M #include "../../test42/TestProg/TestProg.h" #endif /* * ======== target data definitions (unit TestM...
/* ** $Id: propsheet_impl.h 7338 2007-08-16 03:46:09Z xgwang $ ** ** propsheet.h: the head file of PropSheet control. ** ** Copyright (C) 2003 ~ 2007 Feynman Software. ** Copyright (C) 2001 ~ 2002 Wei Yongming and others. ** ** NOTE: Originally by Wang Jian and Jiang Jun. ** ** Create date: 2001/11/19 */ #ifndef GUI_P...
/* * This file is part of PRO ONLINE. * PRO ONLINE 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. * PRO ONLINE is distributed ...
/* **************************************************************************** * * UNIVERSITY OF WATERLOO SE 350 RTX LAB * * Copyright 2020-2022 Yiqing Huang * All rights reserved. *------------------------------------------------------------------...
#ifndef _IP_H #define _IP_H struct iphdr { uint8_t verhdrlen; uint8_t service; uint16_t len; uint16_t ident; uint16_t frags; uint8_t ttl; uint8_t protocol; uint16_t chksum; in_addr src; in_addr dest; }; #endif /* _IP_H */
// Mandelbrot Rendering routines. All have the same signature, so we can easily switch routine using // function pointers. // Compute mandelbrot set inside supplied coordinates, returned in *image. Resolution variables used to // determine mandelbrot coordinates of each pixel. // Includes #include <stdio.h> #include...
/*************************************************************************** * Copyright (C) 2008 by Sindre Aamås * * aamas@stud.ntnu.no * * * * This pr...
/* * Copyright 2010-2017 Intel Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOU...
/* Ghost File System, or simply GhostFS Copyright (C) 2016 Péricles Lopes Machado This program can be distributed under the terms of the GNU GPL. See the file COPYING. */ #ifndef BASE_PROTOCOL_H #define BASE_PROTOCOL_H #include <stdint.h> #include <unordered_map> struct base_protocol { virtual ~base_pro...
/* K&R2 1-23: Write a program to remove all comments from a C program. Don't forget to handle quoted strings and character constants properly. C comments do not nest. This solution does not deal with other special cases, such as trigraphs, line continuation with \, or <> quoting on #include, since thes...
/* * Copyright 2014 vincent Sanders <vince@netsurf-browser.org> * * This file is part of NetSurf, http://www.netsurf-browser.org/ * * NetSurf 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; version 2 of...
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
/**************************************************************** * * * Copyright 2001, 2004 Sanchez Computer Associates, Inc. * * * * This source code contains the intellectual property * * of its copyright holder(s), and is made available * * under a license. If you do not know the terms of * * ...
// Copyright (C) 2003 Dolphin 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 by // the Free Software Foundation, version 2.0. // This program is distributed in the hope that it will be useful, // but WITHOUT ...
/* -*- Mode:C; c-basic-offset:4; tab-width:4; indent-tabs-mode:nil -*- */ /* * vmx.h: prototype for generial vmx related interface * Copyright (c) 2004, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License...
/* * $Id: sml.c,v 1.7 2006/05/30 04:37:13 darren Exp $ * * Copyright (c) 2002, Venkatesh Prasad Ranganath and Darren Hiebert * * This source code is released for free distribution under the terms of the * GNU General Public License. * * This module contains functions for generating tags for SML language files...
/* * Copyright (C) 2011-2014 Project SkyFire <http://www.projectskyfire.org/> * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2014 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Genera...
void twofft(float data1[], float data2[], float fft1[], float fft2[], unsigned long n) { void four1(float data[], unsigned long nn, int isign); unsigned long nn3,nn2,jj,j; float rep,rem,aip,aim; nn3=1+(nn2=2+n+n); for (j=1,jj=2;j<=n;j++,jj+=2) { fft1[jj-1]=data1[j]; fft1[jj]=data2[j]; } four1...
/* * arch/arm/include/asm/thread_info.h * * Copyright (C) 2002 Russell King. * Copyright (C) 2011, Red Bend Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifnde...
/**************************************************************** * * * Copyright 2001, 2003 Sanchez Computer Associates, Inc. * * * * This source code contains the intellectual property * * of its copyright holder(s), and is made available * * under a license. If you do not know the terms of * * ...
// GB Enhanced Copyright Daniel Baxter 2015 // Licensed under the GPLv2 // See LICENSE.txt for full license text // File : apu.h // Date : March 05, 2015 // Description : Game Boy Advance APU emulation // // Sets up SDL audio for mixing // Generates and mixes samples for the GBA's 4 sound channels + DMA channels #if...
/* * Copyright (C) 2004-2022 by the Widelands Development Team * * 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. ...
/* * The implementation of the TRM.generateTRM methods * * author Christian Pesch */ #include "trm_wrapper.h" /* * Utility procedures. */ void setLongJavaMember(JNIEnv *env, jobject obj, char *field, unsigned long value) { jclass cls = (*env)->GetObjectClass(env, obj); jfieldID fid = (*env)->GetFieldID(e...
#ifndef STYLEIMAGE_H #define STYLEIMAGE_H #include "style_global.h" #include "global/global.h" #include <QString> class StyleLine; class StyleFill; class STYLESHARED_EXPORT StyleImage { public: StyleImage(); void setScaleX(QString scaleX) {this->scaleX = scaleX.TOQREAL();} void setScaleY(QString scaleY...