text
stringlengths
7.55k
41.9k
//TODO: don't copy/mount DeveloperDiskImage.dmg if it's already done - Xcode checks this somehow #import <CoreFoundation/CoreFoundation.h> #include <unistd.h> #include <sys/socket.h> #include <sys/un.h> #include <stdio.h> #include <signal.h> #include <getopt.h> #include <pwd.h> #include "MobileDevice.h" #define FDVEN...
/*============================================================================ FILE MIFload.c MEMBER OF process XSPICE Copyright 1991 Georgia Tech Research Corporation Atlanta, Georgia 30332 All Rights Reserved PROJECT A-8503 AUTHORS 9/12/91 <NAME> MODIFICATIONS <date> <person name> <nature of modifi...
/****************************************************************************** * libbmpread - tiny, fast bitmap (.bmp) image file loader * * <https://github.com/chazomaticus/libbmpread> * * Copyright (C) 2005, 2012, 2016 <NAME> <<EMAIL>> * * ...
/* * Copyright (c) 1997-1999 Massachusetts Institute of Technology * * 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 versio...
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
/* crypto/pem/pem_lib.c */ /* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME> (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as *...
/** ********************************************************************** ** Module: Error \file error.c ** This module implements the ERROR abstraction ************************************************************************/ /* * Development of this code was funded by the United States Government, * and is not...
#ifdef PHREEQC_IDENT static char const svnidphrqproto[] = "$Id: phrqproto.h 4 2009-04-21 17:29:29Z delucia $"; #endif /* advection.c */ int advection (void); /* basic.c */ LDBLE system_total (char *total_name, LDBLE * count, char ***names, char ***types, LDBLE ** moles); int basic_main (char *commands); void cm...
// SPDX-License-Identifier: GPL-2.0+ /* * MaxLinear/Exar USB to Serial driver * * Copyright (c) 2020 <NAME> <<EMAIL>> * * Based on the initial driver written by <NAME>: * * https://lore.kernel.org/r/20180404070634.nhspvmxcjwfgjkcv@advantechmxl-desktop * * Copyright (c) 2018 <NAME> <<EMAIL>> */ #include <...
/*- * Copyright 2008 by <NAME>. 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 and ...
/* * Copyright 2008 <NAME> <<EMAIL>> * * All Rights Reserved. * * 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, ...
/**************************************************************************** LCD Source File Company : Singular Software File Name : lcd.c Summary : functions to access LCD . Description : initialize and control LCD . ****************************************************************************/ /**********...
/* * usb_driver.c - USB Mass Storage Driver * See usbmass-ufi10.pdf and usbmassbulk_10.pdf */ #include <errno.h> #include <stdio.h> #include <sysclib.h> #include <thbase.h> #include <thsemap.h> #include <usbd.h> #include <usbd_macro.h> #include "scsi.h" #include <usbhdfsd-common.h> //#define DEBUG //comment out ...
/* * Copyright 2019 Advanced Micro Devices, Inc. * * 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, m...
#include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <signal.h> #include <poll.h> #include "open.h" #include "blocking.h" #include "e.h" #include "die.h" #include "randommod.h" #include "byte.h" #include "crypto_uint32.h" #include "uint16_pack.h" #include "uint32_pack.h" #include "uint64_pack.h" #i...
#include "hihw.h" #include "libconv.h" #include "dma.h" #include "lock.h" #include "int.h" #include "operators/hi_krnl_param_conv2d.h" #include "operators/hi_krnl_param_conv1s1_conv3s1_conv3s1.h" #include "hi_addr_def.h" #include "krnl_log.h" #include "hpu_util.h" // #include "qemu.h" #define LCMEM_CONV_A_IN0 MMA_B...
/* Copyright 2011 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/* * Copyright (C) 2013 by * <NAME> (<EMAIL>, <EMAIL>) * ... and other members of the Reconstruction Team of David Haussler's * lab (BME Dept. UCSC). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to dea...
/** Copyright 2009-2017 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
/* efgiso */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> /* #include "util.h" */ #include "vicmain_c" #include "zifmessage.h" #include "zvprintf.h" #define INTERVAL 5.0 #define STEP_LEGHTH 1.0 #define PI 3.14159265359 #define record_length 2000 #define NR_END 1 void calc_derivatives(...
/****************************************************************** * Copyright (c) 2003 * the Regents of the University of California. * * Unless otherwise indicated, this information has been authored by an * employee or employees of the University of California, operator of the Los * Alamos National Laboratory unde...
#include "./engine.h" void gsdl_init(const gsdl_init_info_t init, gsdl_props_t * props) { { // SDL Init i32 initializers = SDL_Init(SDL_INIT_EVERYTHING) + IMG_Init(IMG_INIT_PNG) + TTF_Init() + Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 2048); if ((initializers - IMG_INIT_PNG) != 0) { p...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program */ /* GCG --- Generic Column Generation */ ...
#include <signal.h> #include <string.h> #include <unistd.h> #include <sys/mman.h> #include "injectable/injectable.h" #include "procutil/procfs.h" #include "injection/fncall.h" #include "injection/inject.h" #include "tracepoint/patch.h" #include "process/process.h" #include "process/thread.h" #include "process/segmen...
#include "plan.h" #include "plan_internal.h" #include "meta_project.h" #include "asf.h" #include "asf_meta.h" #include "dateUtil.h" #include "beam_mode_table.h" #include "asf_vector.h" #include "sgpsdp.h" #include <stdlib.h> #include <assert.h> static int iabs(int a) { return a > 0 ? a : -a; } static void get_t...
/* * A modified version of Jochen Voss testgaus.c, the orginial can be found at * https://www.seehuhn.de/pages/ziggurat.html. * * testgauss.c - statistical tests for gaussian random numbers * * Copyright (C) 2005 <NAME>. * * This program is free software; you can redistribute it and/or modify * it under the t...
#define CFG_TOYBOX_CONTAINER 1 #define USE_TOYBOX_CONTAINER(...) __VA_ARGS__ #define CFG_TOYBOX_FIFREEZE 1 #define USE_TOYBOX_FIFREEZE(...) __VA_ARGS__ #define CFG_TOYBOX_ICONV 1 #define USE_TOYBOX_ICONV(...) __VA_ARGS__ #define CFG_TOYBOX_FALLOCATE 1 #define USE_TOYBOX_FALLOCATE(...) __VA_ARGS__ #define CFG_TOYBOX_UTM...
/* ----------------------------------------------------------- */ /* */ /* ___ */ /* |_| | |_/ SPEECH */ /* | | | | \ RECOGNITION ...
// REQUIRES AN SSSE3-CAPABLE X86 OR AMD64 CPU // (might not quite be right but you SHOULD have at LEAST SSSE3) #include "common.h" FILE *fp; int gpu_usage_saving2 = 0; int gpu_usage_saving = 0; // FIXME: memory error somewhere and valgrind can't be fucked finding it int gpu_usage = 0; int gpu_pal_bg_fbeg = 16; int g...
/* $OpenBSD: if.c,v 1.74 2015/10/05 15:40:39 uebayasi Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* * Copyright (c) 1983, 1988, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modifica...
#ifndef _MSC_VER #include <stdbool.h> #endif #include <stddef.h> #include <stdarg.h> #include <stdio.h> #ifdef _MSC_VER #define snprintf _snprintf #endif #ifdef _XBOX1 #include <xtl.h> #endif #include "shared.h" #include "libretro.h" #include "state.h" #include "genesis.h" #include "md_ntsc.h" #include "sms_ntsc.h" ...
extern float kmSQR(float s); extern float kmDegreesToRadians(float degrees); extern float kmRadiansToDegrees(float radians); extern float kmMin(float lhs, float rhs); extern float kmMax(float lhs, float rhs); extern unsigned char kmAlmostEqual(float lhs, float rhs); extern float kmClamp(float x, float min, float ma...
/** * \file * * \brief OV7740 image sensor capture example. * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redist...
/* * * * The MIT License. * Created on: 23.04.2021 * Author: <NAME> * <EMAIL> * Added/Deleted Few Function and modified * * I Add, structures, dynamic allocate memory and windows. Also i modified most of features. * The functions added entirely by me contain the prefix Window * * GFX_BW.h...
/****************************************************************************** * @file LCD.c * @brief Nano1xx TK_LCD Driver Sample code * @version 1.0.1 * @date 08, October, 2012 * * @note * Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights reserved. ******************************...
// Copyright 2021-2022 <NAME>. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
/** * Copyright (c) 2017-present, Facebook, Inc. * Copyright (c) 2010, the V8 project authors. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <math.h> #include "bignum_dtoa.h" #include "bignum.h" #include "ieee.h" stati...
/* *************************************************** waveform: libfdk-aac + librtmp example <NAME> 2021 Generates some soundwaves, encode them with libfdk-aac, casts it to RTMP url Twitch does not allow an audio-only RTMP stream, so there is a solid color screen as well Proper muxing would allow video and audio ...
/* Copyright (C) 1995-2001 Activision, Inc. 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 option) any later version. This library is distribu...
#include "GenerateWaveform.h" /************ Parsing arguments function ************/ /* Function to convert string input TDI string to TDItag */ static GenWavetag ParseGenWavetag(char* string) { GenWavetag tag; if(strcmp(string, "hlm")==0) tag = hlm; else if(strcmp(string, "h22TD")==0) tag = h22TD; else if(st...
#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...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this...
/* * File: ip-address.c * Description: IPv6 address utilities * Author(s): <NAME>, <NAME> * * Copyright 2013 Silicon Laboratories, Inc. *80* */ // For strnlen(3) in glibc. #define _GNU_SOURCE #include "core/ember-stack.h" #include "address-management.h" #include "rip.h" #include "...
/* * linux/fs/msdos/inode.c * * Written 1992,1993 by <NAME> */ #ifdef MODULE #include <linux/module.h> #include <linux/version.h> #else #define MOD_INC_USE_COUNT #define MOD_DEC_USE_COUNT #endif #include <linux/msdos_fs.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/errno.h> #include <lin...
// // Pi-Nex Sterownik C.O dla Raspberry Pi 0 1.1 // Działa dzięki Mongoose - Embedded Web Server / Embedded Networking Library // - https://www.cesanta.com // //#pragma GCC diagnostic push //#pragma GCC diagnostic ignored "-Wunused-but-set-variable" #include "mongoose/mongoose.h" #include "bcm_host.h" #include "...
#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...
/* * tfcrypt -- high security Threefish encryption tool. * * tfcrypt is copyrighted: * Copyright (C) 2012-2019 <NAME>. All rights reserved. * * tfcrypt is licensed to you under the terms of std. MIT/X11 license: * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software...
#pragma once // structure offset for asm code #define CPLANE_NORMAL_X 0 #define CPLANE_NORMAL_Y 4 #define CPLANE_NORMAL_Z 8 #define CPLANE_DIST 12 #define CPLANE_TYPE 16 #define CPLANE_SIGNBITS 17 #define CPLANE_PAD0 18 #define CPLANE_PAD1 19 // 0-2 are axial planes #define PLANE_X 0 #define PLA...
/* ** File: dp.c Version 1.01, Oct. 17, 2007 ** Original: eth.c Version 1.00, Jan. 14, 1997 ** ** Author: <NAME> <<EMAIL>> ** ** This file contains the ethernet device driver main task. ** It has to be integrated with the board specific drivers. ** It is a rewriting of Minix 2.0.0 ethernet driver (dp8390.c) ** t...
/******************************************************************************************* * Copyright (c) 2006-7 Laboratorio di Sistemi di Elaborazione e Bioingegneria Informatica * * Universita' Campus BioMedico - Italy * * ...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <locale.h> #include <stddef.h> char isim[256] = ""; int skor = 0; int oncekifikra = 7; int hata = 0; int random(int max) { int r = rand()%max; return r; } int say(char str[256]){ int i; int len = strlen(str); int...
/* Written by <NAME> (2019) * Distributed under the MIT License */ #include <unistd.h> #include <stdio.h> #include <signal.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <sys/mman.h> #include <stdint.h> #include <sys/time.h> #include <sys/resource.h> #include <mpi.h> #include <assert.h> #inc...
#include "malnSet.h" #include "malnComp.h" #include "malnBlk.h" #include "mafTree.h" #include "malnBlkSet.h" #include "malnCompCursor.h" #include "sonLibList.h" #include "sonLibString.h" #include "stSafeC.h" #include "common.h" #include "jkmaf.h" #include "genomeRangeTree.h" struct malnSet { struct Genomes *genome...
/* bam_md.c -- calmd subcommand. Copyright (C) 2009-2011, 2014-2015 Genome Research Ltd. Portions copyright (C) 2009-2011 Broad Institute. Author: <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
/* * rarpd.c RARP daemon. * * 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. * * Authors: <NAME>, <<EMAIL>> ...
#include "hamt.h" #include <assert.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* #include "mem.h" */ /* Pointer tagging */ #define HAMT_TAG_MASK 0x3 /* last two bits */ #define HAMT_TAG_VALUE 0x1 #define tagged(__p) (HamtNode *)((uintptr_t)__p | HAMT_TAG_VA...
/* $OpenBSD: fmt.c,v 1.36 2016/01/07 18:02:43 schwarze Exp $ */ /* Sensible version of fmt * * Syntax: fmt [ options ] [ goal [ max ] ] [ filename ... ] * * Since the documentation for the original fmt is so poor, here * is an accurate description of what this one does. It's usually * the same. The *mechanism* u...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <time.h> #include <dirent.h> #include <stdbool.h> #include <regex.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <signal.h> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/st...
/************************************************************************************* * qTESLA: an efficient post-quantum signature scheme based on the R-LWE problem * * Abstract: high-level functions of the signature scheme **************************************************************************************/ #incl...
#include <stdint.h> #include <inttypes.h> #include <signal.h> #include <rte_eal.h> #include <rte_ethdev.h> #include <rte_cycles.h> #include <rte_lcore.h> #include <rte_mbuf.h> #include <rte_ring.h> // fifo's #include <rte_errno.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #includ...
/* * Copyright (c) 2022 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
/* * Copyright 2012 Red Hat Inc. * * 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, merge, publish, d...
#include "SHA2_512.h" static void Hacl_Hash_Lib_LoadStore_uint64s_from_be_bytes(uint64_t *output, uint8_t *input, uint32_t len) { for (uint32_t i = (uint32_t )0; i < len; i = i + (uint32_t )1) { uint8_t *x0 = input + (uint32_t )8 * i; uint64_t inputi = load64_be(x0); output[i] = inputi; } } static v...
/* * BRIEF MODULE DESCRIPTION * Au1x00 USB Device-Side Serial TTY Driver (function layer) * * Copyright 2001-2002 MontaVista Software Inc. * Author: MontaVista Software, Inc. * <EMAIL> or <EMAIL> * * Derived from drivers/usb/serial/usbserial.c: * * Copyright (C) 1999 - 2001 <NAME> (<EMAIL>) * Copyright (...
/* * Copyright (c) 1996-2004 <NAME>. * This file contains functions to compute the constants * appearing in the tube formula. */ #include "notR.h" //#include <R.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "tube.h" static double *fd, *ft; static int globm, (*wdf)...
// // main.c // mknapsack // // Created by Bai on 14/03/2020. // Copyright © 2019 UNNC. All rights reserved. // #include <stdio.h> #include <math.h> #include <stdlib.h> #include <time.h> #include <stdio.h> #include <stdbool.h> #include <string.h> /* global parameters */ int RAND_SEED[] = {1,20,30...
/* * Copyright 2018 International Business Machines * * 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 applicab...
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Copyright (c) 2012 Synaptics, Inc. 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 restr...
#include "server.h" //data on client, file, etc. for each thread sharingTr_data thread_data[NUM_THREAD]; const char* commands[] = {"!register", "!share", "!list", "!get","!quit"}; const char* err_get[] = {"ERR-SHARED","ERR-FOUND","ERR-SK"}; //Declaring main method for thread void* sharing_thread (void* thread_data); ...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * 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 ...
#include "config.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> #include <limits.h> #include <Eina.h> #include <Ecore.h> #include <Ecore_Ipc.h> #include <xcb/xcb.h> #include <xcb/xcb_keysyms.h> #include <xcb/shape.h> #inc...
/* * Copyright 2011 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
/* The MIT License Copyright (c) 2015 Genome Research Ltd. Author: <NAME> <<EMAIL>> 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 limit...
/* * Copyright (C) 2020-2022 Alibaba Group Holding Limited */ #include <string.h> #include "k_api.h" #include "aos/kernel.h" #include "lwip/err.h" #include "lwip/netif.h" #include "lwip/tcpip.h" #include "lwip/ip_addr.h" #include "netif/etharp.h" #include "uservice/uservice.h" #include "uservice/eventid.h" #includ...
//----------------------------------------------------------------------------- // landuse.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (Build 5.1.001) // 03/19/15 (Build 5.1.008) // Author: <NAME> // // Pollutant buildup and washoff functions. // // Build 5.1.008: //...
#include "sdcard.h" #include "mmio.h" #include "gpio.h" #include "mylib.h" #include "helper.h" void card_dout(int32_t d); void card_clk(int32_t d); uint8_t card_din(); void card_cson(); void card_csoff(); // send & get SPI data uint8_t send_cmd( uint8_t c ); // get R1 responce uint8_t command_response(); // wait time...
#include "dxppng.h" #include <string.h> #include <malloc.h> #include <zlib.h> #ifdef WIN32 typedef unsigned __int8 u8; typedef unsigned __int16 u16; typedef unsigned __int32 u32; typedef unsigned __int64 u64; static void* memalign(unsigned int align,unsigned int size) { return malloc(size); } #else #include <pspty...
/* daalainfo - based on Ogginfo * * A tool to describe ogg file contents and metadata. * * Copyright 2002-2005 <NAME> <<EMAIL>> * Licensed under the GNU GPL, distributed with this program. */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <stdarg.h> #include <getopt.h> #in...
/* ------------------------------------------------------------------------------- Copyright (C) 1999-2007 id Software, Inc. and contributors. For a list of contributors, see the accompanying CONTRIBUTORS file. This file is part of GtkRadiant. GtkRadiant is free software; you can redistribute it and/or m...
/*- * Copyright (c) 2018 <NAME> <<EMAIL>> * 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 co...
#include "chess.h" bool AI_on = false; int DEPTH = 5; void loadBools(){ gameOver = lastTurnBoardConfiguration.gameOver; leftBlackRookDidNotMove = lastTurnBoardConfiguration.leftBlackRookDidNotMove ; leftWhiteRookDidNotMove = lastTurnBoardConfiguration.leftWhiteRookDidNotMove; rightBlackRookDidNotMove ...
/** * collectd - src/aggregation.c * Copyright (C) 2012 <NAME> * * 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...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <utils.h> #...
/* $Id: data.c,v 1.7 2006/05/06 12:06:39 quozl Exp $ */ #include "copyright.h" #include "config.h" #include "defs.h" #include "struct.h" #include "data.h" struct player *players; struct player *me; struct torp *torps; struct context *context; struct status *status; struct ship *myship; struct stats *mystats; struct ...
#include <stdio.h> #define SPHERE_LIBRARY_CODE #include <sp/sphere.h> #include <string.h> #include <setjmp.h> extern jmp_buf exitenv; int verify_file_checksum(char *filename) ; int sp_close(SP_FILE *sp) { char *proc="sp_close " SPHERE_VERSION_STR; char *write_name; char *read_name; SP_INTEGER lint=0,...
/* * This file is part of the coreboot project. * * Copyright (C) 2014 Rockchip Electronics * * 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 ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> #include <time.h> #include <pcap.h> #include "thc-ipv6.h" #define MAX_ENTRIES 16 int plife = 99999, rlife = 4096, llife = 2048, reach = 0, trans =...
/* Copyright (C) 2001-2021 Artifex Software, Inc. 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 ...
/***************************************************************************** // // Copyright (c) 2005 Broadcom Corporation // All Rights Reserved // No portions of this material may be reproduced in any form without the // written permission of: // Broadcom Corporation // 16215 <NAME> // ...
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
/* * This file is part of RPIO. * * Copyright * * Copyright (C) 2013 <NAME> <<EMAIL>> * * License * * 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 versi...
/* Copyright 2009 Meebo, 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/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
/** * @brief Show processes sorted by resource usage. * * @copyright * This file is part of ToaruOS and is released under the terms * of the NCSA / University of Illinois License - see LICENSE.md * Copyright (C) 2021-2022 <NAME> */ #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #in...
;/* Short: gibbergen - Generate language specific pronounceable non-dictionary words Author: <NAME> Version: 2.0.7 DESCRIPTION: A command line utility that generates new pronouncable words in your language of choice. It builds language rules based on a template text file, then generates random wo...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* * Postscript output for xgraph * * <NAME> * <NAME> */ #include "copyright.h" #include <stdio.h> #include "xgraph.h" /* * Basic scaling parameters */ #define VDPI 1200.0 #define LDIM 11.0 #define SDIM 8.5 #define MICRONS_PER_INCH 2.54E+04 #define POINTS_PER_INCH 72.0 #define INCHES_PER_POINT 1.0/72.0...
/* Advanced Micro Devices Inc. AMD8111E Linux Network Driver * Copyright (C) 2004 Advanced Micro Devices * Copyright (C) 2005 <NAME> <<EMAIL>> [etherboot port] * * Copyright 2001,2002 <NAME> <<EMAIL>> [ 8139cp.c,tg3.c ] * Copyright (C) 2001, 2002 <NAME> (<EMAIL>)[ tg3.c] * Copyright 1996-1999 <NAME> [ pcnet32...
/* * Copyright (c) 2016 RedBear * * 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, merge, publish, di...
#include "gui_print.h" extern struct page_def *fam_pages[]; extern const char *fam_pages_descr[]; extern const int fam_pages_len[]; int print_win (gui_obj *gui){ int show_print = 1; int i = 0, update = 0; static double page_w = 297.0, page_h = 210.0; static double ofs_x = 0.0, ofs_y = 0.0, scale = 1.0; ...
// why not just have a 160 length // fifo // at 0 copy to start // at 8 just copy above it // and keep incing the index // (yes this wastes memory) // but it is is a very simple way to do it.... // fifo code needs a rework as it is beyond slow // constantly copying around data it ideally should not //...