text stringlengths 7.55k 41.9k |
|---|
/*
* このファイルは tecsgen によりテンプレートとして自動生成されました
* このファイルを編集して使用することが意図されていますが
* tecsgen の再実行により上書きされてしまうため、通常
* gen/tArp_template.c => src/tArp.c
* のように名前, フォルダを変更してから修正します
*/
/* #[<PREAMBLE>]#
* #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください
* tecsmerge によるマージに使用されます
*
* 属性アクセスマクロ #_CAAM_#
* arpEntry int... |
/*
This file is part of CanFestival, a library implementing CanOpen Stack.
Copyright (C): <NAME> and <NAME>
See COPYING file for copyrights details.
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 Found... |
#include <unistd.h>
#include <rte_eal.h>
#include <rte_ethdev.h>
#include <rte_mbuf.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include "exp.h"
#include "flow_rules.h"
#include "vport.h"
#define RX_RING_SIZE (512)
#define TX_RING_SIZE (512)
#define NUM_MBUFS (32768)
#define MBUF_CACHE_SIZE (512)
... |
#include <stm32f10x_gpio.h>
#include <stm32f10x_rcc.h>
#include <stm32f10x_i2c.h>
#include <stm32f10x_exti.h>
#include <stm32f10x_usart.h>
#include <misc.h>
#include <string.h>
#include <delay.h>
#include <ili9320.h>
#define DS3231_addr 0xD0 // I2C 7-bit slave address shifted for 1 bit to the left
#define DS3231_... |
/*
* Copyright (c) 2013, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/
* All rights reserved.
*/
/*
* This file is licensed according to the BSD 3-clause license as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2010 Free Software Foundation, Inc.
*
* GRUB 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 ... |
/*
* gc-profiler.c - A heap profiler
*
* Author:
* <NAME> <<EMAIL>>
*
*/
#include <string.h>
#include <glib.h>
#include <mono/io-layer/io-layer.h>
#include <mono/metadata/class.h>
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/object.h>
#include <mono/metadata/profiler.h>
#include <mono/meta... |
/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*-
*/
/**
* Utilities for the quality of service module mod_qos.
*
* qsgeo.c: resolves the country codes of IP addresses
*
* See http://mod-qos.sourceforge.net/ for further
* details.
*
* Copyright (C) 2018 <NAME>
*
* Licensed to the Apache Software F... |
/*
* ic_mep.c
*
* Created on: Jun 26, 2014
* Revised on: Oct 17, 2014
* 1. Add the function that can read input matrix file with header line or column
* Author: <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <mpi.h>
#include "matutils.h"
... |
/*----------------------------------------------------------------------------*/
/* Xymon monitor library. */
/* */
/* This is a library module, part of libxymon. ... |
/* map.c * by burlapjack 2021
* procedural map generation
*/
#include <stdlib.h>
#include <ncurses.h>
#include <math.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include "../include/gr_map.h"
#include "../include/gr_component.h"
#include "../include/gr_path.h"
/*---------------------- Initialize ... |
/*
* Transaction_tests.c
*
* Created on: Oct 30, 2012
* Author: apopoola
*/
#include <stdio.h>
#include "stdarg.h"
#include <time.h>
#include "openssl/ssl.h"
#include "openssl/ripemd.h"
#include "openssl/rand.h"
#include "../src/Object/Message/Transaction.h"
#include "../src/Object/Message/TransactionInput.... |
/*
* Copyright (C) 2012 Invensense, 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 distributed in the hope that it will be useful,
* but ... |
/*
* skill.c - send a signal to process
* Copyright 1998-2002 by <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) a... |
/**
* \file gui_keyboard.c
* \brief Software keyboard widget
*/
/*
* Copyright (c) 2020 <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 rest... |
/*
* Copyright (C) 2008 - 2011 The OpenTitus team
*
* Authors:
* <NAME>
*
* "Titus the Fox: To Marrakech and Back" (1992) and
* "Lagaf': Les Aventures de Moktar - Vol 1: La Zoubida" (1991)
* was developed by, and is probably copyrighted by Titus Software,
* which, according to Wikipedia, stopped buisness in... |
/*
* Copyright (c) 2000-2006 Silicon Graphics, Inc.
* 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 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be ... |
/*--------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tell me if ... |
/* 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 ... |
/* This program is licensed under the GNU Library General Public License, version 2,
* a copy of which is included with this program (LICENCE.LGPL).
*
* (c) 2000-2001 <NAME> <<EMAIL>>
*
*
* Comment editing backend, suitable for use by nice frontend interfaces.
*
* last modified: $Id: vcedit.c 16826 2010-01-27 0... |
#define _GNU_SOURCE
#include <stdio.h>
#include <magic.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef __linux__
#include <alloca.h>
#endif
#include <pthread.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys... |
/* Windows/DOS NE (New Executable) dumper
*
* Copyright (C) 2012 <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:
*
* * Redistributions of source code must retain t... |
/*-
* Copyright (c) 2005 <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 a... |
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/bits/sgx/sgxtypes.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/cpuid.h>
#include <openenclave/internal/sgx/td.h>
#include <openenclave/internal/thread.h>
#include "../tracee.h"
#include "conte... |
/* brukccd.c from ccd2ipf.c, <NAME>, TAMU, 25 April 2006 */
/* proteus.c conversion 033.26 */
/* based on difoff.c */
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
int ccdata[1024][1024];
unsigned char ccbyte[4096]; unsigned short ccshort[4096];
unsigned int ccint[4096];
int readline(char *ch, int max... |
/*---------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* <NAME> @ SMU
*---------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2020, Lawrence Livermore National Security
* and Southern Methodist Univer... |
/*
* Copyright (c) 2015-2020 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*
* @precisions normal z -> s d c
*
*/
#include "common.h"
#include "dplasma/types.h"
#include "parsec/data_dist/matrix/two_dim_... |
/*
* RIPEMD160.c - European RIPE Message Digest, 160 bit (RIPEMD-160)
*
* The algorithm is by <NAME>, <NAME>, and <NAME>.
*
* The code below is based on the reference implementation by Bosselaers.
* It is available at the time of writing from
* http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html
*
* Hacked... |
/* SPDX-License-Identifier: MIT
* Copyright (c) 2014-2021 <NAME>
*/
#include "../core/kos_misc.h"
#include "../inc/kos_error.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
static int status = 0;
static int arg_reference = 0;
#define TEST_INT(str, hi, lo, error) do { ... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Driver for Digigram miXart soundcards
*
* low level interface with interrupt handling and mail box implementation
*
* Copyright (c) 2003 by Digigram <<EMAIL>>
*/
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/pci.h>
#include <linux/io.h>
#... |
/* clusterClone - cluster together clone psl alignment results */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "portable.h"
#include "psl.h"
#include "obscure.h"
static char const rcsid[] = "$Id: clusterClone.c,v 1.9 2004/07/16 22:27:09 hiram Exp $";
float minCover = 80.0;... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define HELP 0
#define LS 1
#define CD 2
#define MKDIR 3
#define TOUCH 4
#define RMF 5
#define RMD 6
#define WRITE 7
#define READ 8
#define EXIT 9
#define DISK "disk.dat" //磁盘块号文件
#define DNodeNum 128 //目录节点数目
#define FNodeNum 1024 //文件节点数目
#define Blk... |
/* Author: <NAME> <<EMAIL>>. License: WTFPL, see file LICENSE */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sched.h>
#include <lock.h>
#include <endianess.h>
#include <timekeeping.h>
#include <gpio.h>
#include <drivers/spi.h>
#include <drivers/enc28j60.h>
#include <net.h>
#include <net/netp... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1980, 1986, 1993
* The Regents of the University of California. 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. Redistr... |
/**
* Unnecessarily Redundant Care Unit for The Elderly (URCUTE)
* 2017 (C) <NAME>, <NAME> [NUS CEG2]
* MIT License
*/
#include "lpc17xx_pinsel.h"
#include "lpc17xx_gpio.h"
#include "lpc17xx_i2c.h"
#include "lpc17xx_ssp.h"
#include "lpc17xx_timer.h"
#include "lpc17xx_uart.h"
#include "lpc17xx_rtc.h"
... |
/*
* (C) Copyright 2016 Kurento (http://kurento.org/)
*
* 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) 2016 <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... |
/* OX: Open-Channel NVM Express SSD Controller
*
* - OX Controller Core Execution
*
* Copyright 2016 IT University of Copenhagen
*
* Written by <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... |
/*
* Copyright (C) 2004-2010 NXP Software
* Copyright (C) 2010 The Android Open Source Project
*
* 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/... |
/*
* wordout.c
*
* (Word 2007 format)
*
* Copyright (c) <NAME> 2007-2020
*
* Source code released under the GPL version 2
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "str.h"
#include "fields.h"
#include "utf8.h"
#include "bibformats.h"
/*******************************************... |
/****
Copyright (C) 1996 McGill University.
Copyright (C) 1996 McCAT System Group.
Copyright (C) 1996 ACAPS Benchmark Administrator
<EMAIL>
This program is free software; you can redistribute it and/or modify
it provided this copyright notice is maintained.
This program... |
/*
* NAME: main.c
* AUTHOR: <NAME>
* DESCRIPTION: Contains the main function for Yahtzee where a
* player can play the console version of Yahzee
*/
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <co... |
/*****************************************************************************
* vout_intf.c : video output interface
*****************************************************************************
* Copyright (C) 2000-2007 VLC authors and VideoLAN
*
* Authors: <NAME> <<EMAIL>>
*
* This program is free software; y... |
#define BGBDYC_SLOT_ABSTRACT 0
#define BGBDYC_SLOT_DIRECT 1
#define BGBDYC_SLOT_INDIRECT 2
#define BGBDYC_SLOT_STATIC 3
#define BGBDYC_SLOT_INTERFACE 4
#define BGBDYC_SLOT_DYNAMIC 5 //method: idx gives slot
#define BGBDYC_SLOT_PROTOTYPE 6 //prototype
#define BGBDYC_FLAG_PUBLIC 0x0001
#define BGBDYC_FLAG_PRIVATE ... |
// ECE 6110 - Quiz 2 - <NAME>
//
// This code implements a function generator, where a user can choose from a sine, sawtooth, or square wave. The amplitude of all
// three functions is adjustable from 1-9, as well as the frequency, in Hz. For a square wave, the duty cycle can also be chosen.
//
// All choices are enter... |
/*
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Publi... |
#include "ri_fft_convolve.h"
#include <string.h>
#include <math.h>
#include <assert.h>
#include "ri_convolve.h"
#include "ri_fft.h"
#include "ri_ring_buffer.h"
/* FFT点数 */
#define RIFFTCONVOLVE_FFT_SIZE 2048
/* メモリアラインメント */
#define RIFFTCONVOLVE_ALIGNMENT 16
/* ある整数が2の冪乗か判定. 0:2の冪乗ではない, それ以外:2の冪乗 */
#define IS_POWE... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
#include "layer.h"
#include "function.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
//
// Affine
//
Affine* create_affine(Matrix* W, Vector* b) {
Affine* A = malloc(sizeof(Affine));
A->W = W;
A->b = b;
A->X = NULL;
A->dW = NULL;
A->db = NULL;
memset(A->original_x_shape, ... |
#include "config.h"
#include "bformatdec.h"
#include "ambdec.h"
#include "mixer_defs.h"
#include "alu.h"
#include "threads.h"
#include "almalloc.h"
typedef struct BandSplitter {
ALfloat coeff;
ALfloat lp_z1;
ALfloat lp_z2;
ALfloat hp_z1;
} BandSplitter;
static void bandsplit_init(BandSplitter *spl... |
/*-------------------------------------------------------------------------
*
* rangetypes_typanalyze.c
* Functions for gathering statistics from range columns
*
* For a range type column, histograms of lower and upper bounds, and
* the fraction of NULL and empty ranges are collected.
*
* Both histograms have... |
/* $Id: tiffdump.c,v 1.9 2005/07/25 13:48:58 dron Exp $ */
/*
* Copyright (c) 1988-1997 <NAME>ler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) th... |
/*
* Copyright © 2010 Intel Corporation
* Copyright © 2011 <NAME>
* Copyright © 2012-2013 Collabora, Ltd.
*
* 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, includi... |
/**
* Copyright (c) 2009-2018 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*/
#include "parsec/parsec_config.h"
#include <string.h>
#include <assert.h>
#include <errno.h>
#if defined(PARSEC_HAVE_MPI)
#in... |
/* Mode: C;
* mii-diag.c: Examine and set the MII registers of a network interfaces.
Usage: mii-diag [-vw] interface.
This program reads and writes the Media Independent Interface (MII)
management registers on network transceivers. The registers control
and report network link settings and errors. Examples are... |
/* Copyright 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* System module for Chrome EC : hardware specific implementation */
#include "bkpdata.h"
#include "clock.h"
#include "console.h"
#include "cpu.h"... |
//-----------------------------------------------------------------------------
// Copyright (C) Merlok - 2017
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-------------------------------... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <tests_internal.h>
static void test_ro (void)
{
Key * key;
key = keyNew ("/", KEY_END);
key->flags |= KEY_FLAG_RO_VALUE;
succeed_if (keySetString (key, "a") == -1, "read only string, not allowed to... |
/*
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Copyright 2020, UT-Battelle, LLC.
*
* LLNL-CODE-741539
* All rights reserved.
*
* This is the license for UnifyFS.
* For details, see https://github.com/LLNL/UnifyFS.
* Please rea... |
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#define DATA_SIZE 1000
//Info of trains is opened using this function
void tinfo()
{
/* Variable to store user content */
char data[DATA_SIZE];
/* File pointer to hold reference to our file */
FILE * fP;
char ch;
/*
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned char ubyte;
#define KEY_LEN 8
typedef ubyte key_t[KEY_LEN];
const static ubyte PC1[] = {
57, 49, 41, 33, 25, 17, 9,
1, 58, 50, 42, 34, 26, 18,
10, 2, 59, 51, 43, 35, 27,
19, 11, 3, 60, 52, 44, 36,
63, 55, 47, 39, 31, ... |
/* This program is part of ROSE but is meant to run on a system that doesn't have the ROSE libraries. Its purpose is to
* execute a subordinate program one instruction at a time as a sort of debugger and provide register and memory information
* across the network. */
#define _GNU_SOURCE
#define __STDC_FORMAT_MACR... |
/*
* Copyright (c) 2016 Mellanox Technologies. 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) Version 2, available from the file
* COPYING in the main directory of this sou... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#if defined(_WIN32) && !defined(__NUTC__)
# include <io.h>
# define unlink _unlink
#else
# include <unistd.h>
#endif
#include "cgnslib.h"
/* from cgns_internal: so we can reset expected error messages */
void cgi_error(const char *format, ...... |
/*
* (C) Copyright IBM Corporation 2002, 2004
* 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
* on the rights... |
/*
*@file: just a demo, for reference only. the demo in consist of ext_interrupt, sms, voice and data methods to wakeup 4G module,
* maybe user just need one or two methods in it; In addition it is necessary for user to call "Ql_SLP_WakeLock_Lock()" in
* the beginning of ext_interrupt/sms/voice/data callback for ... |
/*
** Copyright 2011, The Android Open-Source Project
**
** 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 applica... |
/* $OpenBSD: smbutil.c,v 1.7 2009/10/27 23:59:57 deraadt Exp $ */
/*
Copyright (C) <NAME> 1995-1999
This software may be distributed either under the terms of the
BSD-style license that accompanies tcpdump or the GNU GPL version 2
or later */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys... |
#include "md_gro.h"
#include <core/md_common.h>
#include <core/md_str.h>
#include <core/md_allocator.h>
#include <core/md_arena_allocator.h>
#include <core/md_log.h>
#include <core/md_file.h>
#include <core/md_array.inl>
#include <md_util.h>
#include <string.h>
#define MD_GRO_MOL_MAGIC 0xbabcebf677bfaf67
typedef s... |
// Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <assert.h>
#include <fcntl.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/********************************************************************************************
* SIDH: an efficient supersingular isogeny cryptography library
*
* Abstract: elliptic curve and isogeny functions
*********************************************************************************************/
#include "utils.... |
#define _GNU_SOURCE
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <sched.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/prctl.h>
#include <sys... |
/* file: hf_riscv_sim.c
* description: HF-RISCV simulator
* date: 11/2015
* author: <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define MEM_SIZE 0x00100000
#define SRAM_BASE 0x40000000
#define EXIT_TRAP 0xe0000000
#define IRQ... |
//
// General-purpose Photovoltaic Device Model gpvdm.com - a drift diffusion
// base/Shockley-Read-Hall model for 1st, 2nd and 3rd generation solarcells.
// The model can simulate OLEDs, Perovskite cells, and OFETs.
//
// Copyright 2008-2022 <NAME> https://www.gpvdm.com
// r.c.i.mackenzie at googlemail.com
//
// Per... |
//*********************************************************************************
//Author: <NAME>
//
//Date: January 2015
//
//Description: Radio TX code made with internal timer
// - variably-spaced header (16bit)
// - use timer for precise bit timing
// - pulse position modulation (PPM) for data
// ... |
/* xmlToSql - Convert XML dump into a fairly normalized relational database. */
/* This file is copyright 2005 <NAME>, but license is hereby
* granted for all use - public, private or commercial. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "dystring.h"
#include "options.h"
#include "portab... |
/**
* Kinesis Video Producer Response functionality
*/
#define LOG_CLASS "Response"
#include "Include_i.h"
#define CA_CERT_FILE_SUFFIX ((PCHAR) ".pem")
/**
* Create Response object
*/
STATUS createCurlResponse(PCurlRequest pCurlRequest, PCurlResponse* ppCurlResponse)
{
ENTERS();
STATUS retSt... |
/*------------------------------------------------------------------------------
-- --
-- This software is confidential and proprietary and may be used --
-- only as expressly authorized by a licensing agreement from ... |
/*
* ***** 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 ... |
/* (N)compress42.c - File compression ala IEEE Computer, Mar 1992.
*
* Authors:
* <NAME> (decvax!harpo!utah-cs!utah-gr!thomas)
* <NAME> (decvax!mcvax!jim)
* <NAME> (decvax!vax135!petsd!peora!srd)
* <NAME> (decvax!decwrl!turtlevax!ken)
* <NAME> (decvax!ihnp4!ames!jaw)
* ... |
#include "geminc.h"
#include "gemprm.h"
#include "drwids.h"
#include "vgstruct.h"
#include "cascmn.h"
#include "proto_sigavgf.h"
#define JET_LINE 6
#define LMULT 1
#define LDIR 1
#define LSIZE 1.20F
#define LWIDTH 7
#define LENBUF 256
void tangwnd ( float *plat, float *plon, int... |
/*
Adapted from https://github.com/rui314/chibicc
MIT License
Copyright (c) 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 righ... |
#include "Doom.h"
#include <IntMath.h>
#define MAXSEGS 32 /* Maximum number of segs to scan */
/**********************************
By traversing the BSP tree, I will create a viswall_t array describing
all walls are are visible to the computer screen, they may be projected off
the left and right sides but this i... |
/* $OpenBSD: cgfourteen.c,v 1.26 2003/06/28 17:05:33 miod Exp $ */
/* $NetBSD: cgfourteen.c,v 1.7 1997/05/24 20:16:08 pk Exp $ */
/*
* Copyright (c) 2002, 2003 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... |
#include "lib.h"
#include "i8259.h"
#include "keyboard.h"
#include "processes.h"
#include "signals.h"
#include "spinlock.h"
// The keyboard shortcuts we have so far are
// - Ctrl+L to clear the screen (1)
// - Ctrl+C to send the SIGNAL_INTERRUPT signal (1)
// - Alt+4 to switch to graphics tty (1)
// - Alt+1,2,3 to... |
#define _POSIX_SOURCE
#define _POSIX_C_SOURCE 199309L /* for nanosleep */
#include <termios.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <signal.h>
#include <netdb.h>
#include <time.h>
#include <poll.h>
#include <fcntl.h>
#include ... |
/************************************************************
* HMMER - Biological sequence analysis with HMMs
* Copyright 1992-1995 <NAME>
*
* This source code is distributed under the terms of the
* GNU General Public License. See the files COPYING and
* GNULICENSE for details.
*
***********************... |
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <stdint.h>
#include <fcntl.h>
#include <pwd.h>
#include <syslog.h>
#include <limits.h>
#include <sys/types.h>
#include <time.h>
#include "mqexec.h"
void * zmqctx;
// W... |
/*
* RTEMS/EPICS driver for Greensprings/SBS Octal UART
*
* Based on tyGSOctal.c by <NAME> as updated by <NAME>.
*/
#include <epicsStdio.h>
#include <epicsStdlib.h>
#include <epicsString.h>
#include <epicsThread.h>
#include <epicsExit.h>
#include <epicsInterrupt.h>
#include <epicsTypes.h>
#include <epicsExport.h>... |
/*
* main.c -- main sequence of comparator
*
* SPDX-License-Identifier: BSD-2-clause
*/
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#ifdef __sun
#include <alloca.h>
#endif
#include <sys/stat.h>
#include <errno.h>
#include <time.h>
#include ... |
#include <stdio.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <emscripten/emscripten.h>
#include "main.h"
#include "math.h"
#include "text.h"
#include "texture.h"
#include "generator.h"
#include "entity.h"
#include "player.h"
#include "spell.h"
#include "enemy.h"
#include "item.h"
// sdl vars
SDL_Window *window... |
/**
* audio logger
* (C) 2013, for the university of british columbia radio society.
* Bugs, comments: <EMAIL>
*/
/**
*TODO:
*
* ** Logs 10 seconds of audio at a time, to hopefully reduce the effect of lag to 7.5s a day
* General cleanup
* make sure time is synchronized nicely
* modularize so that easy ou... |
/* -*- C -*- */
/*
* Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates
*
* 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... |
#include "mapMaker.h"
bool createNewMap(warperTilemap* tilemap, int tileSize)
{
bool quit = false;
bool fullQuit = false;
SDL_Keycode key;
bool loadMap = false;
cScene inputScene;
cCamera inputCamera;
initCCamera(&inputCamera, (cDoubleRect) {0, 0, global.windowW, global.windowH}, 1.0, 0, 5... |
/*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#include <string.h>
#include <math.h>
#include <assert.h>
#include "os-features.h"
#include "plotimage.h"
#include "cairoutils.h"
#include "ioutils.h"
#include "sip_qfits.h"
#include "log.h"
#include "... |
/**
******************************************************************************
* @file lora.c
* @author <NAME>
* @version V1.0
* @date Oct 2, 2021
* @brief Module for using the RFM95 or SX1276.
******************************************************************************
*/
#include <lora/l... |
/*
* lws abstract display
*
* Copyright (C) 2019 - 2022 <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 limitation the
* righ... |
/*
* 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 use... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.