text stringlengths 7.55k 41.9k |
|---|
/*
Copyright 2010-2013 SourceGear, LLC
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, softwar... |
/**
* tbxsosd/kctl.c
* Copyright (C) 2005-2012 Opersys 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 b... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cvodes/cvodes.h> /* prototypes for CVODE fcts., consts. */
#include <nvector/nvector_serial.h> /* access to serial N_Vector */
#include <sunmatrix/sunmatrix_dense.h> /* access to dense SUNMatrix */
#include <sun... |
// Copyright 2020-2021 Espressif Systems (Shanghai) PTE LTD
//
// 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 a... |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
#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... |
/*-
* Copyright (c) 2013, 2014 <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 condit... |
// I/O MEMORY MAPPED REGISTER DEFINITIONS
unsigned char volatile *UART_DATA = (unsigned char volatile *) 0xf000;
unsigned char volatile *UART_STATUS = (unsigned char volatile *) 0xf002;
unsigned short volatile *BUTTONS = (unsigned short volatile *) 0xf200;
unsigned char volatile *LEDS = (unsigned char volatile *) 0xf30... |
/*
* sparse.c -
*
* Implement sparse matrices for Yorick.
*
*-----------------------------------------------------------------------------
*
* This file is part of Yeti (https://github.com/emmt/Yeti) released under the
* MIT "Expat" license.
*
* Copyright (C) 1996-2020: <NAME>.
*
*--------------------------... |
#include "shor.h"
static bool testing_mode = 0; // turns on/off (expensive) sanity checks
/**
* Global vars for Shor.
* (not ideal but this alleviates the passing of many parameters a bit.
*/
uint32_t shor_n;
bool shor_bits_a[64];
bool shor_bits_N[64];
struct shor_wires_s {
BDDVAR top;
BDDVAR ctrl_first;... |
/*! \file bcmltm_nc_lta_validate.c
*
* Logical Table Manager - Node Cookies.
*
* This file contains routines to construct LT information
* for LT with Field Validation.
*
* This information is used by the LTM metadata during
* the FA and EE stages when calling into the Logical Table Adaptor LTA
* interface.
*... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/* OX: Open-Channel NVM Express SSD Controller
*
* - Open-Channel SSD Media Manager (header)
*
* Copyright (c) 2018, Microsoft Research
* Written by <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <string.h>
#include <liblightnvm.h>
#include <sched.h>
#include "../../include/libox.h"
#include "../../include/ox-... |
/**
* Copyright (c) 2015-2019 wimtecc, <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 use, copy, modify, merg... |
/*Criado por <NAME> - <NAME> 2018*/
#include "nRF24.h"
#define HIGH 1
#define LOW 0
void writeRegister(unsigned int reg, unsigned int _data);
void writeRegisterManyTimes(unsigned int reg, unsigned int* _data, int nBytes);
void RF24disablePipe(unsigned int _pipe);
unsigned int RF24msgSize();
void resetReceiveFlag();... |
/*
* tsha256r - A plain 256-bit Secure Hashing Algorithm 2 implementation (register)
*
* Copyright (c) 2021-2022 <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
... |
/*
* Image drop data pile management
* Copyright (C) 2014-2021 by <NAME> <<EMAIL>>
* See LICENSE for licensing information
*
* Background: We store a lot of Windows disk images. These images consist
* largely of heavily duplicated data (the vast majority of file data is not
* unique between images) resulting in ... |
/*
* Copyright (c) 2015, <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 ... |
/*
* This source code is public domain.
*
* Authors: <NAME> <<EMAIL>>
*/
//////////////////////////////////////////////
// AMS module loader //
//////////////////////////////////////////////
#include "libmodplug.h"
#pragma pack(1)
typedef struct AMSFILEHEADER
{
char szHeader[7]; // "Extrem... |
/*
* $Id: drawmesh.c 40886 2011-10-10 00:01:44Z campbellbarton $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 Licen... |
/* gsBig - Run Genscan on big input and produce GTF files. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "portable.h"
#include "fa.h"
#include "dystring.h"
#include "bits.h"
#include "verbose.h"
static char const rcsid[] = "$Id: gsBig.c,v 1.16 2009/09/23 18:42:16 angie E... |
/*-------------------------------------------------------------------------*/
/* Copyright 2010-2013 <NAME> University Linz Austria */
/*-------------------------------------------------------------------------*/
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <ctype.h>
#include <fcntl.h>
#include <li... |
/* <NAME>
* Creation Date: 6/8/2018
* Latest Version: 26/7/2019
* ----------------------------------------------------------------------------
* This is the main source file for the AVL Trees library.
* See the comments above each function definition for information about what
* each one does. See the library hea... |
/* Copyright (C) 2019 <NAME> */
/* Copyright (C) 2017 alexh.name */
/* I2C code by twartzek 2017 */
/* MQTT code by <NAME> 2018 */
/*
* Read the BME680 sensor with the BSEC library by running an endless loop in
* the bsec_iot_loop() function under Linux.
*
*/
/*#define _POSIX_C_SOURCE 200809L*/
#define _XOPEN_SOU... |
/* load PDF with PDFium
*
* 5/4/18
* - from pdfload.c
* 8/6/18
* - add background param
* 16/8/18
* - shut down the input file as soon as we can [kleisauke]
* 8/8/19
* - add locks, since pdfium is not threadsafe in any way
*/
/*
This file is part of VIPS.
VIPS is free software; you can redi... |
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 <NAME>
// Copyright(C) 2008 <NAME>
//
// This program is free software; you can redistribute it and/or
// modify it under the term... |
/** @file integrate.c
* @author <NAME>
*
* @brief Numerical integration
*/
#include "integrate.h"
#include "morpho.h"
#include "object.h"
#include "builtin.h"
#include "veneer.h"
#include "matrix.h"
#include "sparse.h"
#include "mesh.h"
#include "selection.h"
bool integrate_recognizequantities(unsigned int nquan... |
/*
* $Id: mirror.c,v 1.10 2002/10/17 20:02:31 ljb Exp $
* originally Id: mirror.c,v 1.26 1998/08/03 21:55:23 gerald Exp
*/
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <time.h>
#include <signal.h>
#include <ctype.h>
#include "mrt.h"
#include "t... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* This file is part of the Chelsio T4 Ethernet driver for Linux.
*
* Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL)... |
/* Copyright © 2019 <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 use, copy, modify, merge, publish, distrib... |
/* $Id: ikev2_proposal.c,v 1.30 2008/02/06 08:09:00 mk Exp $ */
/*
* Copyright (C) 2004 WIDE Project.
* 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... |
/* Copyright (C) 2002-2017 Free Software Foundation, Inc.
Contributed by <NAME>
F2003 I/O support contributed by <NAME>
This file is part of the GNU Fortran runtime library (libgfortran).
Libgfortran is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... |
/*************************************************************************
*
* JSIM Release 2.0 10/24/92
*
* JSIM is a simulator for circuits containing Josephson Junctions.
*
* Author: <NAME>, 1991
* University of California, Berkeley
* Dept. of Electrical Engineeri... |
/*
* Copyright 2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
* Copyright (c) 1991-1998 University of Maryland at College Park
* Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved.
* Copyright (c) 2013-2016 Carbonite, Inc. All Rights Reserved.
* All Rights Reserved.
*
* Permission to use, copy, modi... |
/***************************************************************************
* orb2ringserver.c:
*
* Transmit data from an Antelope ORB to a ringserver (via DataLink)
*
* This software requires the Antelope libraries and needs an Antelope
* build environment to compile.
*
* <NAME>, IRIS Data Managment Center
*... |
//Author:<NAME>
//Class:CS7500 Auburn University
//Project: Project 3: AUbatch -‐ A Pthread-‐based Batch Scheduling System
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <uni... |
/******************************************************************************
* 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)
**************************************... |
/* ------------------------------------------
* Copyright (c) 2017, Synopsys, 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 copyr... |
/*
* read-only driver for BIOS LBA devices.
* devbios must be initialised first and no disks may be accessed
* via non-BIOS means (i.e., talking to the disk controller directly).
* EDD 4.0 defines the INT 0x13 functions.
*
* heavily dependent upon correct BIOS implementation.
* some bioses (e.g., vmware) seem to... |
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... |
//Copyright 2013,2016 <>< <NAME>. This file licensed under the terms of the MIT license.
#include <math.h>
#include <float.h>
#include <string.h>
#include "linmath.h"
#define FLT float
#define LINMATHPI ((FLT)3.141592653589)
#define DEFAULT_EPSILON 0.001
void quatnormalize( FLT * qout, const FLT * qin );
void quatsc... |
/*
* Copyright (C) 2012-2013 ProFUSION embedded systems
*
* 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.1 of the License, or (at your option) any later version... |
/*
* PDB dumping utility
*
* Copyright 2006 <NAME>
*
* 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.
... |
/*
Copyright (c) 2011, 2012, <NAME>
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 AUTHOR DISCLAIMS ALL
WARRANTIE... |
/*
* Handling code page 8859-2.
* Copyright (c) 2004 Pertimm by <NAME>
* Dev : August 2004
* Version 1.0
*/
#include <loguni.h>
static unsigned OgCp8859_2[256];
/*
* Changes a Unicode char to a cp8859-2 char. This function returns
* a truncated char if the Unicode code does not correspond.
*/
... |
/* $Id$ */
/*--------------------------------------------------------------------*/
/*; Copyright (C) 2003-2019 */
/*; Associated Universities, Inc. Washington DC, USA. */
/*; */
/*; This program... |
/***************************************************************************
* Copyright (C) 2013 Andes Technology *
* <NAME> <<EMAIL>> *
* *
* This program is free softwar... |
/*
* Tests for PIO distributed arrays.
*
* <NAME>, 2/16/17
*/
#include <pio.h>
#include <pio_internal.h>
#include <pio_tests.h>
/* The number of tasks this test should run on. */
#define TARGET_NTASKS 4
/* The minimum number of tasks this test should run on. */
#define MIN_NTASKS 4
/* The name of this test. */
#... |
/*
* Copyright (c) 2017-2021, AT&T Intellectual Property. All rights reserved.
* Copyright (c) 2013-2016 by Brocade Communications Systems, Inc.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-only
*/
/*
* NPF ALG for FTP
*
* FTP ALG manages the payload of specific control messages and creates t... |
/*
* Copyright (c) 2021 HopeBayTech.
*
* This file is part of Tera.
* See https://github.com/HopeBayMobile for further info.
*
* 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
*
* ... |
#include <stdio.h>
#include "headers.h"
extern struct cpu_state e_cpu_context;
static const struct memory_range_handler_struct memory_handler_table[] = {
{ 0x0, 0xFEFF, MT_RAM },
{ 0xFF00, 0xFF03, MT_PIA },
{ 0xFF04, 0xFF1F, MT_DEDIC },
{ 0xFF20, 0xFF23, MT_PIA },
{ 0xFF24, 0xFFBF, MT_DED... |
/* The MIT License (MIT)
*
* Copyright (c) 2018 Monetra Technologies, LLC.
*
* 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 righ... |
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "cmark_ctype.h"
#include "config.h"
#include "parser.h"
#include "cmark.h"
#include "node.h"
#include "references.h"
#include "utf8.h"
#include "scanners.h"
#include "inlines.h"
#include "houdini.h"
#include "buffer.h"
#include "debug.h"
#define CODE... |
/* nbquery.c
* By Ron
* Created August, 2008
*
* (See LICENSE.txt)
*
*==Intro==
* [[nbquery]] is capable of sending out any type of NetBIOS request. These
* request types include:
* * NB
* * NBSTAT
* * Register
* * Refresh
* * Release
* * Conflict
* * Demand
*
* More on what each of them do below.
*
... |
/*
Copyright 2016 Vanderbilt University
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... |
/*
* videoarch.c
*
* Written by
* <NAME> <<EMAIL>>
*
* 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
* it under the terms of the GNU General Public License as published by
* the Free... |
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2021 <NAME> │
│ ... |
/*
* genedu 1.1
*
* copyright 2009-2011
*
* <NAME>
* Department of Organismic and Evolutionary Biology
* Harvard University
*
* <EMAIL>
*
* 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 Fr... |
/**
******************************************************************************
* @file stm32f1xx_hal_rtc.c
* @author MCD Application Team
* @brief RTC HAL module driver.
* This file provides firmware functions to manage the following
* functionalities of the Real Time Clock (RTC)... |
/*****************************************************************************\
** **
** FILE: qwkout.c **
** AUTHORS: Alexios **
**... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... |
#include <string.h>
#include "common.h"
#include "value.h"
#include "vm.h"
// : Variable_Map
Variable_Map variable_map_new()
{
Variable_Map map = (Variable_Map) {
.size = 0,
.names = NULL,
.values = NULL,
};
return map;
}
void variable_map_free(Variable_Map map)
{
for (int i = 0; i < sb_count(map.names); i... |
#include "util.h"
#include "layers.h"
#include <stdio.h>
#include <string.h>
const char *biome2str(int id)
{
switch (id)
{
case ocean: return "ocean";
case plains: return "plains";
case desert: return "desert";
case mountains: return "mountains";
case forest: return "forest";
case tai... |
/**
******************************************************************************
* @file Multi/Examples/MotionControl/IHM01A1_ExampleFor1Motor/Src/main.c
* @author <NAME>
* @version V1.10.0
* @date March 16th, 2018
* @brief This example shows how to use 1 IHM01A1 expansion board
*******... |
/* $NetBSD: iopsp.c,v 1.12.10.1 2002/12/12 23:36:42 he Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* mod... |
//-----------------------------------------------------------------------
// <copyright company="CoApp Project">
// Copyright (c) 2011 <NAME> . All rights reserved.
// </copyright>
// <license>
// The software is licensed under the Apache 2.0 License (the "License")
// You may not use the software exc... |
#include <pthread.h>
#include <sys/ioctl.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <malloc.h>
#include "ite/itp.h"
#include "filelist.h"
#include "ite/itv.h"
#include "ite/ith_video.h"
#include "jpg/ite_jpg.h"
#define RIFF 0x46464952 /* "RIFF" */
#define WAVE 0x45564157 /* "WAV... |
/* Close a shared object opened by `_dl_open'.
Copyright (C) 1996-2007, 2009, 2010, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#ifdef WIN32
#include <windows.h>
#endif
#include "libparsifal/parsifal.h"
#include "libparsifal/dtdvalid.h"
#include "libparsifal/isrcmem.h"
#include "xmlplint.h"
#include "curlread.h"
#include "stimer.h"
#include "uriresolver.h"
#ifdef _MSC... |
/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2015-2020 Micron Technology, Inc. All rights reserved.
*/
#include <hse_ut/conditions.h>
#include <hse_test_support/mock_api.h>
#include <hse_util/alloc.h>
#include <hse_util/slab.h>
#include <hse_ikvdb/limits.h>
#include "../kvset.h"
#include "../cn_t... |
/*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2012, <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 copy... |
/*
* Copyright 2010 <NAME> <<EMAIL>>
* Copyright 2014,2015 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 limitati... |
#include <string.h>
#include <stdlib.h>
#include <ncurses.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
// useful constant for the game logic
// statuses returned by a game state
#define FAILURE 0xFFFFFFFF
#define SUCCESS 0
#define RUNNING 2
// console window size
#define ROWS 35
#define COLS 120
// max ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
//DfuSe file definitions !
#define Psignature "DfuSe"
#define Isignature "Target"
#define DFUversion 0x01
#define DFUtargets 0x01
#define DFUalternate 0x00
#define DFUtarget_named 0x01
#define VERSION "0.10a"
typedef struct Hexlines {
... |
/*
* linux/fs/ext2/ialloc.c
*
* Copyright (C) 1992, 1993, 1994 <NAME> (<EMAIL>)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* BSD ufs-inspired inode and directory allocation by
* <NAME> (<EMAI... |
/*
* rdpg_oom_try.c
*
* Demo the kernel OOM killer by having this process call malloc()
* repetedly without freeing.
* Ultimately, the kernel will kill it via OOM.
* For a more "sure" kill, set the "force-page-fault" flag.
*
** WARNING **
* Be warned that running this intensively can/will cause
* heavy swapp... |
/* Copyright (C)2007 Sun Microsystems, Inc.
* Copyright (C)2011, 2013 <NAME>
*
* This library is free software and may be redistributed and/or modified under
* the terms of the wxWindows Library License, Version 3.1 or (at your option)
* any later version. The full license is in the LICENSE.txt file included
* w... |
/* list.c <<-- A template to be updated and
* <NAME> <<-- changed
* zicew
* ECE 2230 Fall 2018
* MP3
*
* Propose: Basic manipulation for lab3.
*
* Assumptions: This C file contains basic manipution for linked list.
* For instance, list_struct, list_destruct, finding lis... |
#include "server.h"
//Font: 3D-Ascii
// https://patorjk.com/software/taag/#p=display&f=3D-ASCII&t=Cat%20Spots
static const char *TAG = "[SERVER]";
static const char *TAG_GAME = "[SRV-GAME]";
static void shuffleArr(uint8_t *array, size_t n){
if (n > 1){
size_t i;
for (i = 0; i < n - 1; i++)
... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus - r4300prof.c *
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
* Copyright (C) 2008 <NAME> *
* ... |
#include "raylib.h"
#include <math.h>
#define ARRSIZE(x) (sizeof(x)/sizeof(x[0]))
typedef enum {
STPO_HIGHSCORE = 0
} StorageData;
float Rad2Deg(float value) {
return (360/(2*PI))*value;
}
int KeyMoveRightDown() {
int out = 0;
if (IsGamepadAvailable(GAMEPAD_PLAYER1)) {
if (Is... |
/*
* This file was ported to MPlayer from xine CVS real.c,v 1.8 2003/03/30 17:11:50
*/
/*
* Copyright (C) 2002 the xine project
*
* This file is part of xine, a free video player.
*
* xine is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publishe... |
#include "allegro.h"
#include "driver.h"
int use_mouse;
int joystick;
unsigned long ExKey1=0;
unsigned long ExKey2=0;
unsigned long ExKey3=0;
unsigned long ExKey4=0;
int num_joysticks=4;
#include "minimal.h"
static struct KeyboardInfo keylist[] =
{
{ "A", KEY_A, KEYCODE_A },
{ "B", KEY_B, KEYCODE_B },
{... |
#include "Vmx.h"
#include "Ept.h"
#include "Common.h"
#include "InlineAsm.h"
#include "GlobalVariables.h"
#include "Invept.h"
#include "HypervisorRoutines.h"
#include "Vmcall.h"
/* Check whether EPT features are present or not */
BOOLEAN EptCheckFeatures()
{
IA32_VMX_EPT_VPID_CAP_REGISTER VpidRegister;
... |
#include "Client.h"
#include "Logger.h"
#include <unistd.h>
#include <arpa/inet.h> // struct sockaddr_in{,6}, inet_ntop
#include <stdlib.h> // realloc, free
#include <string.h> // memset
#include <errno.h> // errno
#include <netdb.h> // struct addrinfo, getaddrinfo, freeaddrinfo
#define REQUEST_CONNECT 1
static cons... |
/*
* Copyright (c) 2009-2012, Newcastle University, UK.
* 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, ... |
/********************************************************************************************
*
* PNGU
*
* Original author: frontier (http://frontier-dev.net)
* Modified by Tantric, 2009-2010
*
********************************************************************************************/
#include "pngu.... |
#define _GNU_SOURCE
#include "../include/settings.h"
#include "../include/util.h"
#include "../include/vt.h"
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#define VT_DIM_FACTOR 0.4f
Vector_char Vt_command_to_string(const Vt* self, const VtCommand* command, size_t opt_limit_lines)
{
ASSERT(comman... |
/* Copyright 2018 Canaan 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 ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2010 Technische Universitaet Berlin
*
* 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 t... |
/*
* This code is derived from example code in the libopencm3 project:
*
* https://github.com/libopencm3/libopencm3-examples/tree/master/
* examples/stm32/f1/stm32-h103/usart_irq_printf
* and examples/stm32/f1/stm32-h103/usb_cdcacm
*
* Copyright (C) 2009 <NAME> <<EMAIL>>,
* Copyright (C) 2010, 20... |
/**
* Copyright (c) 2014-2015 Google Inc.
* Copyright (c) 2015 Motorola Mobility, LLC.
* 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 ab... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "ureg.h"
#include "mp.h"
#include "apbootstrap.h"
static Bus* mpbus;
static Bus* mpbuslast;
static int mpisabus = -1;
static int mpeisabus = -1;
extern int i8259elcr; /* mask of level-triggered interr... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
/*
* Copyright (c) 2014-2015 <NAME>
* Copyright (c) 2012-2014 <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... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "../../util/tmap_alloc.h"
#include "../../util/tmap_error.h"
#include "../../util/tmap_definitions.h"
#include "../../seq/tmap_seq.h"
#include "../../index/tmap_refseq.h"
#include ".... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.