text stringlengths 3.12k 18.7k |
|---|
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2005-2008 <NAME> <<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 Free Software Foundation; either version 2 of the License,... |
#include "rotatable.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fsdyn/charstr.h>
#include <fsdyn/fsalloc.h>
struct rotatable {
FILE *outf;
mode_t mode;
c... |
/*
* (C) Copyright 2018-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#include <semaphore.h>
#include "crt_utils.h"
#include "test_ep_cred_common.h"
static int resp_count;
static int sent_count;
static void
rpc_handle_shutdown_reply(const struct crt_cb_info *info)
{
DBG_PRINT("Shut... |
/*
* Copyright 2010-2017, Tarantool AUTHORS, please see AUTHORS file.
*
* 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 lis... |
/*
* program03.c
*
* Created on: Oct 24, 2015
* Author: <NAME>
* Purpose: This program will convert length and weight from Metric system to the US system according to the user choices
*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
// Constants declarations: Use entirely for conversion
#defin... |
/*----------------------------------------------------------------------
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 tel... |
/***********************************************************************
**
** REBOL [R3] Language Interpreter and Run-time Environment
**
** Copyright 2012 REBOL Technologies
** REBOL is a trademark of REBOL Technologies
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this... |
#include "ym64.h"
#include "ay8910.h"
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <libdragon.h>
#include "lzh5.h"
#include "utils.h"
typedef struct __attribute__((packed)) {
uint32_t nframes;
uint32_t attrs;
uint16_t ndigidrums;
uint32_t chipfreq;
uint16_t playfreq;
uint32_t loop;
uint16... |
/*
* $Header$
*
* Copyright 2006 Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obt... |
/*
* Application.h
*
* Created on: 13 Mar 2020
* Author: Michael
*/
#include "STD_Types.h"
#include "BIT_MATH.h"
#include "crypto.h"
#include "Application.h"
/***********************************************************************************************************************/
/**************************... |
/***************************************************************************
Atari I, Robot hardware
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
#include "irobot.h"
#define BITMAP_WIDTH 256
static UINT8 *polybitmap1,*polyb... |
#include "stm32_util.h"
#include <string.h>
int _write(int file, char *ptr, int len);
int _write(int file, char *ptr, int len) {
int i;
(void)file;
usart_wait_send_ready(STM32_USART);
for (i = 0; i < len; i++) {
if (ptr[i] == '\n') {
usart_send_blocking(STM32_USART, '\r');
... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* loadsF1.c
*
* Code generation for function 'loadsF1'
*
*/
/* Include files */
#include <string.h>
#include... |
/*
* dumb-init is a simple wrapper program designed to run as PID 1 and pass
* signals to its children.
*
* Usage:
* ./dumb-init python -c 'while True: pass'
*
* To get debug output on stderr, run with '-v'.
*/
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include <signal.h>
#include <stdio.h>
... |
// MBED OS
#include "cmsis_os2.h"
// HYPERBUS CMSIS driver
#include "hyperbus_api.h"
#include "mbed_wait_api.h"
#define BUFFER_SIZE 128
#define P_ERR 6
#define E_ERR 5
#define DUMMY 8
#define FAST_READ 1
#define FLASH_ADDR 0x200
#define OCTO_SPI 0x0
#define QUAD_SPI 0x1
#define SINGLE_SPI 0x2
uint8_t... |
/**
* @file ina219.c
*
* ESP-IDF driver for INA219/INA220 Zerø-Drift, Bidirectional
* Current/Power Monitor
*
* Copyright (C) 2019 <NAME> <<EMAIL>>
*
* BSD Licensed as described in the file LICENSE
*/
#include <esp_log.h>
#include <math.h>
#include <esp_idf_lib_helpers.h>
#include "ina219.h"
#define I2C_FREQ_... |
/*
* Code to handle sp_link_*() stuff for the public API
* Reference: http://developer.spotify.com/en/libspotify/docs/group__link.html
*
*/
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <spotify/api.h>
#include "artist.h"
#include "album.h"
#include "debug.h"
#include "link.h"
#include "uti... |
#include <pthread.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define WIDTH 78 /* スクリーン幅 */
#define HEIGHT 23 /* スクリーン高さ */
#define MAX_FLY 1 /* 描画するハエの数 */
#define DRAW_CYCLE 50 /* 描画周期(ミリ秒) */
int stopRequest; /* スレッド終了フラグ */
/*
* ミリ秒... |
/* $Id: menu.c,v 1.1 2008-03-27 00:41:33 vsc Exp $
Part of SWI-Prolog
Author: <NAME>
E-mail: <EMAIL>
WWW: http://www.swi-prolog.org
Copyright (C): 1985-2002, University of Amsterdam
This library is free software; you can redistribute it and/or
modify it under the ... |
/*
* Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, 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... |
/* Taken from $NetBSD: net.c,v 1.20 1997/12/26 22:41:30 scottr Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
* All rights reserved.
*
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
* contribut... |
#include <stm32f0xx_gpio.h>
#include <stm32f0xx_rcc.h>
#include <stm32f0xx_i2c.h>
#include <stm32f0xx_misc.h>
#include <stm32f0xx_syscfg.h>
#include <stm32f0xx_exti.h>
//HMC5883L I2C Pins
#define I_SDA GPIO_Pin_7
#define I_SCL GPIO_Pin_6
#define I_SDAPS GPIO_PinSource7
#define I_SCLPS GPIO_PinSource6
#defi... |
#include <ntddk.h>
#include <wdf.h>
#include <wdm.h>
#include "Msr.h"
#include "Vmx.h"
#include "Common.h"
#include "GlobalVariables.h"
#include "Dpc.h"
#include "InlineAsm.h"
#include "Vpid.h"
#include "Invept.h"
/* Allocates Vmx regions for all logical cores (Vmxon region and Vmcs region) */
BOOLEAN Vmx... |
/**
* LTTng to GTKwave trace conversion
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Copyright (C) 2013 Parrot S.A.
*/
#include "lttng2lxt.h"
#define IRQ_IDLE LT_IDLE
#define IRQ_RUNNING LT_S0
#define IRQ_PREEMPT (gtkwave_parrot ? LT_S2 : LT_0)
#define SOFTIRQ_IDLE LT_IDLE
#de... |
/* File: cr8f.c
Author: <NAME>, Dept. of Comp. Sci., U. of Iowa, Iowa City, IA 52242.
CoAuthor: <NAME>
Date: Mar. 5, 1996
Language: C (UNIX)
Purpose: DEC CR8-F Card Reader and Control
Based on the description in the Small Computer Handbook,
Digital Equipment Corporation, 1973, plus inspection of t... |
/*
* ESP32 hardware accelerated SHA1/256/512 implementation
* based on mbedTLS FIPS-197 compliant version.
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* Additions Copyright (C) 2016-2020, Espressif Systems (Shanghai) PTE Ltd
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Ap... |
/*******************************************************************************
SPI-I2S PLIB
Company:
Microchip Technology Inc.
File Name:
plib_i2s2.c
Summary:
I2S2 Source File
Description:
This file has implementation of all the interfaces provided for particular
SPI-I2S peripheral.
... |
/* ************************************************************************
* File: interpreter.h Part of CircleMUD *
* Usage: header file: public procs, macro defs, subcommand defines *
* *
* All rights re... |
/*
* The MIT License (MIT)
*
* Copyright (c) [2015] [<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, c... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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... |
#include "pch.h"
#include <stdlib.h>
#include <math.h>
#include <errno.h>
#include <string.h>
#include "dibuixos.h"
#define O_OCULTO 0
#define O_MOV 1
#define O_NOMOV 2
#define O_FIN 3
enum ESTATES { MOVE_CARS,ESPERE,FIN };
typedef struct CARACTER {
GLdouble rad0,rad,arad,x,y,div,scale,anc,anc0,aanc;
GLdou... |
/* GStreamer RTP KLV Depayloader
* Copyright (C) 2014-2015 <NAME> <<EMAIL>>>
* Copyright (C) 2014-2015 Centricular Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* v... |
/**************************************************************************//**
* @file main.c
* @version V1.00
* $Revision: 5 $
* $Date: 15/05/22 2:03p $
* @brief Change duty cycle and period of output waveform by PWM Double Buffer function.
*
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All r... |
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
* Copyright (C) 2014, 2018-2020 Intel Corporation
* Copyright (C) 2014-2015 Intel Mobile Communications GmbH
* Copyright (C) 2016 Intel Deutschland GmbH
*/
#include <linux/module.h>
#include <linux/stringify.h>
#include "iwl-config.h"
/* Highest firmware API v... |
/*===
top=1 type=1 bool=0 num=nan clen=0 str='(null)' str-is-NULL=1 ptr-is-NULL=1
top=2 type=2 bool=0 num=nan clen=0 str='(null)' str-is-NULL=1 ptr-is-NULL=1
top=3 type=3 bool=1 num=nan clen=0 str='(null)' str-is-NULL=1 ptr-is-NULL=1
top=4 type=3 bool=0 num=nan clen=0 str='(null)' str-is-NULL=1 ptr-is-NULL=1
top=5 type... |
#include "sndintrf.h"
#include "filter.h"
static filter* filter_alloc(void) {
filter* f = alloc_or_die(filter);
return f;
}
void filter_free(filter* f) {
free(f);
}
void filter_state_reset(filter* f, filter_state* s) {
int i;
s->prev_mac = 0;
for(i=0;i<f->order;++i) {
s->xprev[i] = 0;
}
}
... |
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <mm/pmm.h>
#include <sys/e820.h>
#include <lib/blib.h>
#include <lib/libc.h>
#include <lib/print.h>
#define PAGE_SIZE 4096
#define MEMMAP_BASE ((size_t)0x100000)
#define MEMMAP_MAX_ENTRIES 256
static struct e820_entry_t memmap[MEMMAP_MAX_ENTRIES]... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee ... |
/*******************************************************************************
* Copyright 2019 Intel Corporation. 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
*
* ... |
/**
@verbatim
Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
ADDI-DATA GmbH
Dieselstrasse 3
D-77833 Ottersweier
Tel: +19(0)7223/9493-0
Fax: +49(0)7223/9493-92
http://www.addi-data.com
<EMAIL>
This program is free software; you can redistribute it and/or modify it under
the terms o... |
/*
* buffer test suite.
*
* The canonical version of this file is maintained in the rra-c-util package,
* which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
*
* Written by <NAME> <<EMAIL>>
* Copyright 2002-2004, 2006, 2014-2015 <NAME> <<EMAIL>>
* Copyright 2011-2014
* The Board of T... |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the ADLINK Software License Agreement Rev 2.7 2nd October
* 2014 (the "License... |
/*
* (C) 2005-2019 MediaTek Inc. All rights reserved.
*
* Copyright Statement:
*
* This MT3620 driver software/firmware and related documentation
* ("MediaTek Software") are protected under relevant copyright laws.
* The information contained herein is confidential and proprietary to
* MediaTek Inc. ("MediaTek"... |
/*
* 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... |
/**
* Copyright (c) 2013 <NAME>
* Copyright (c) 2013 <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, cop... |
/*
* Copyright (c) 1993 <NAME>
* Copyright (c) 1993 <NAME>
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> and <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* m... |
/*
* ***** 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... |
#define _GNU_SOURCE
#include <sys/mman.h>
#include <fcntl.h>
#include "redis-nvm.h"
char* prefix = "/mnt/ramdisk/redis_nvm";
/* MMap hashtable file or data file. */
static int nvm_map_dict_file(const char* filename,
size_t filesize,
void** ret_addr,
... |
/* comptime.c */
RB_FCT( include );
RB_FCT( include_once );
/* getcharat.c */
RB_FCT( getcharat );
/* getlen.c */
RB_FCT( getlen );
/* getpos.c */
RB_FCT( getpos );
/* gettok.c */
RB_FCT( gettok );
/* main.c */
/* nativetest.c */
RB_FCT( getlen );
RB_FCT( charat );
RB_FCT( print );
RB_FCT( getchr );
RB_FCT( getas... |
/*
* Copyright (C) <NAME>
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_uint_t *conns;
} ngx_http_upstream_least_conn_conf_t;
typedef struct {
/* the round robin data must be first */
ngx_http_upstream... |
// 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 <sched.h>
#include <lib.h>
#include <mm.h>
#include <interrupts.h>
#include <naiveConsole.h>
#include <queue.h>
#include <string.h>
typedef struct _pcb_t { // P... |
/* hdf5_bind.c
Read currently maps the areas to netcdf compatible areas to
be compatible with the netcdf calls
Put/Write is not yet implemented.
v0.4 2017-04-27 <NAME>
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <dlfcn.h>
#include "hdf5_bind.h"
#include "../dvl.h"
#include "../dvl_internal.... |
/*
Copyright 2004-2005 (c) by <NAME>,
University of Alcala,
Computer Engineering Department.
For further information, please visit http://atc1.aut.uah.es
This software is provided under the terms of the GNU General Public v2
Licence. A full copy of the GNU GPL is provided in the file COPYING
... |
//**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// 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 s... |
#define _POSIX_C_SOURCE 200809L
#include <limits.h>
#include <wlr/types/wlr_cursor.h>
#include <wlr/util/edges.h>
#include "sway/desktop.h"
#include "sway/input/cursor.h"
#include "sway/input/seat.h"
#include "sway/output.h"
#include "sway/tree/arrange.h"
#include "sway/tree/node.h"
#include "sway/tree/view.h"
#include... |
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/signal.h>
#include <unistd.h>
#include "kom.h"
#include "err.h"
#ifdef NO_LOGGING
# undef log
# define log(...)
# undef log_first
# define log_first(...)
# define log_middle(...)
# ... |
/*
* Copyright (c) 2018-2020, Carnegie Mellon University
* See LICENSE for details
*/
#include "sys.h"
# define SPIRAL_FIXED_FRACBITS atoi(getenv("spiral_fp"))
# define SPIRAL_FIXED_ZEROBITS atoi(getenv("spiral_zb"))
# define spiral_fixed_tofixed(x) ((((signed int) ((x) * (double)(0x1 << (SPIRAL_FIXED_FRACBITS... |
/*
MIT License - Copyright 2021
-
<NAME> aka Dreg - <EMAIL>
-
http://www.rootkit.es/
http://github.com/David-Reguera-Garcia-Dreg/therealdreg
http://www.fr33project.org/
-
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2021 STMicr... |
/************************************************************************
** MODULE: RK5.C
** PROJECT: EPANET-MSX
** DESCRIPTION: Numerical solution of a system of first order
** ordinary differential equations dY/dt = F(t,Y).
** AUTHOR: <NAME>, US EPA - NRMRL
** VERSION... |
/*
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (C) 2011 CompuLab, Ltd. <www.compulab.co.il>
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Based on:
* linux/drivers/usb/otg/ulpi.c
* Generic ULPI USB transceiver support
*
* Original Copyright follow:
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
... |
/*
Copyright (c) 2012 250bpm s.r.o. All rights reserved.
Copyright (c) 2013 GoPivotal, Inc. 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 restr... |
/*
* File : att_pid.c
*
* Change Logs:
* Date Author Notes
* 2017-03-01 zoujiachi first version.
*/
#include <math.h>
#include "param.h"
#include "ap_math.h"
#include "global.h"
#include "console.h"
#include "filter.h"
#include "adrc_att.h"
#define MIN_TAKEOFF_THROTTLE 0.3f
#define ... |
/*
* Copyright © 2014 Intel Corporation
* Copyright © 2012 Collabora, Ltd.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without
* fee, provided that the above copyright notice appear in all copies
* and that both that copyright ... |
/*
* D E A T H S T A R - PacMan hardware version
*
*
* * * * * * *
*
* dstar.c
*
* DStar Z88 - C Demo
* Original TI game By <NAME>
* Converted to Z88 By <NAME>
* Game control: Stick1, Stick2, Coin2(restart)
*
* * * * * * *
*
* dstarz88 is a conversion of a TI86 game I found with
* ... |
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
* 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: (1) source code distributions
* retain the above copyrigh... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
/*----------------------------------------------------------------------------*/
/* Xymon RRD handler module. */
/* */
/* Copyright (C) 2004-2011 <NAME> <<EMAIL>> */
/* ... |
/*
* This module used for initializing parser_state, parsing console argumetns
* and memory management.
* Copyright (C) 2020-2022 LuaVela Authors. See Copyright Notice in COPYRIGHT
* Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
*/
#include "ujpp_utils.h"
#include "ujpp_main.h"
#include "... |
#include "H_Q_matrices_generation.h"
#include "bf_decoding.h"
#include "dfr_test.h"
#include "gf2x_arith_mod_xPplusOne.h"
#include "niederreiter.h"
#include "qc_ldpc_parameters.h"
#include "randombytes.h"
#include "rng.h"
#include <string.h>
void PQCLEAN_LEDAKEMLT12_LEAKTIME_niederreiter_keygen(publicKeyNiederreiter_... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
(LGPL) as... |
/*
* Copyright (C) 2008-2010 <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 ... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
double Ne_to_fpe(double Ne)
{
return 8978.18235285877*sqrt(abs(Ne));
}
double fpe_to_Ne(double fpe)
{
return 1.24057537429491*pow(fpe,2)*1e-8;
}
double heaviside(double x, double a)
{
if(x<=0) return a;
return 1.;
}
double N0_fun(double z)
{
... |
/*
ppu.c
Copyright 2018 <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 writing, softwa... |
#include "helpmenu.h"
#include "colors.h"
#include <assert.h>
#if defined(_DEBUG)
#include <stdio.h>
#endif
//typedef struct HELP_MENU_DATA {
//
//};
//enum {
// HELP_MENU_DATA_DIRSLIST,
// HELP_MENU_DATA_FONTVIEW,
// HELP_MENU_DATA_TYPING,
// HELP_MENU_DATA_MAX
//};
struct HELP_MENU {
ALLEGRO_BITMAP *b;
int w, h... |
#include "sprite_text_attributes.h"
const uint8_t BASE_TILE_BLANK = 0x7f;
static const SpriteTextCharAttributes attributes[128] = {
{ 0 }, // U+0000 (nul)
{ 0 }, // U+0001
{ 0 }, // U+0002
{ 0 }, // U+0003
{ 0 }, // U+0004
{ 0 }, // U+0005
{ 0 }, // U+0006
{ 0 }, // U+0... |
/*
* Copyright (C) 2012 <NAME> <<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 Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#include <linux/de... |
#define AUTIL_IMPLEMENTATION
#include "../autil.h"
#define AENGN_IMPLEMENTATION
#include "../aengn.h"
#define VERSION "0.2"
static struct aengn_rgba const black = {0x00, 0x00, 0x00, 0xff};
static struct aengn_rgba const white = {0xff, 0xff, 0xff, 0xff};
static struct aengn_rgba const iconc = {0xaa, 0xaa, 0xaa, 0x77};... |
/*
* Floppy controller/drive
* Intel 82077A
*/
#include <stdio.h>
#include <string.h>
#include "io.h"
#include "irq.h"
#include "log.h"
#define REG_STATUS_A 0x3F0
#define REG_STATUS_B 0x3F1
#define REG_DIGITAL_OUT 0x3F2
#define REG_TAPE_DRIVE 0x3F3
#define REG_MAIN_ST... |
/*
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and 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 DISCL... |
/*
* =====================================================================================
*
* Filename: core.c
*
* Description:
*
* Version: 1.0
* Created: 2017年02月15日 18时38分18秒
* Revision: none
* Compiler: gcc
*
* Author: <NAME> (), <EMAIL>
* Organizat... |
/*
* ION iCade input driver
*
* Copyright (c) 2012 <NAME> <<EMAIL>>
* Copyright (c) 2012 <NAME> <<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 Free
* Software Foundation; either version 2 of th... |
#include <linux/module.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/mm.h>
#include <linux/kfifo.h>
#include <linux/firmware.h>
#include <linux/syscalls.h>
#include <linux/uaccess.h>
#include... |
/* Test file for mpfr_factorial.
Copyright 2001-2016 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License ... |
#include "all.h"
static int
memarg(Ref *r, int op, Ins *i)
{
if (isload(op) || op == Ocall)
return r == &i->arg[0];
if (isstore(op))
return r == &i->arg[1];
return 0;
}
static int
immarg(Ref *r, int op, Ins *i)
{
return rv64_op[op].imm && r == &i->arg[1];
}
static void
fixarg(Ref *r, int k, Ins *i, Fn *fn)
{... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "btree.h"
void btreeInsert(Key key, BTree btree) {
if (!btree->root) {
btree->root = btreeNodeCreateNode(true, btree->t);
btree->root->keys[0] = key;
btree->root->keyCount++;
return;
}
if (!btreeNodeIsFul... |
/**
* BPF Simulator
*
* Copyright (c) 2012 Red Hat <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*/
/*
* This library is free software; you can redistribute it and/or modify it
* under the terms of version 2.1 of the GNU Lesser General Public License as
* published by the Free Software Foundation.
*
* This library is... |
/*
* i2c_se ns.c
*
* Created: 04/28/2018 15:24:48
* Author : Leo
* Version: 1.0
*/
#ifndef F_CPU
#define F_CPU 2000000UL // 2 MHz clock speed
#endif
#include <avr/io.h>
#include <util/delay.h>
#include <util/twi.h>
#include <avr/interrupt.h>
#include <math.h>
const int I2CAddress = 0x01;
int I2CReg=0x04;
volatile in... |
/*
Crown Copyright 2014 AWE.
This file is part of TyphonIO.
Released under the BSD 3-clause license.
For more details see license.txt
*/
/*
* Simple Quad mesh create, setup chunk, and write rountine
*
*/
#ifdef PARALLEL
#include "mpi.h"
#endif
#include "typhonio.h"
int
main (int argc, char *argv[])
{
... |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <sys/param.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <unistd.h>
int handle_opts(int argc, char* argv[], bool* is_server, char** client_addr) {
char* argv0 = a... |
/*
* Phoenix-RTOS
*
* UART 16550 device driver
*
* Copyright 2012-2015, 2020, 2021 Phoenix Systems
* Copyright 2001, 2008 <NAME>
* Author: <NAME>, <NAME>, <NAME>, <NAME>
*
* %LICENSE%
*/
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/file.h>
#include <sys/interrupt.h>
#include <sys/... |
//------------------------------------------------------------------------------
// msftest: test LAGraph_msf
//------------------------------------------------------------------------------
/*
LAGraph: graph algorithms based on GraphBLAS
Copyright 2019 LAGraph Contributors.
(see Contributors.txt for a ... |
/* ========================================
* PC controlled signal generator
*
* Author: <NAME> (<EMAIL>)
*
* ========================================
*/
#include "project.h"
#include "stdio.h"
#define RX_LEN 20
#define ERR_MSG ": invalid input_str. Type 'help' to see available input_strs\r\n"
#define CMD_LEN 4
#... |
/*
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SLEPc - Scalable Library for Eigenvalue Problem Computations
Copyright (c) 2002-2018, Universitat Politecnica de Valencia, Spain
This file is part of SLEPc.
SLEPc is distributed under a 2-clause BSD license (see LICENSE).
... |
// vim:ts=4:sts=4:sw=4:expandtab
// (c) <NAME> 2012
#include "result.h"
#include "statement.h"
#include <stdlib.h>
/* declaration */
typedef struct Result {
MYSQL_RES *r;
MYSQL_ROW_OFFSET start;
MYSQL_BIND *bind;
unsigned long *lengths;
my_bool *is_null;
VALUE fields;
VALUE types;
... |
//
// Cpuid.c
// HWSensors
//
// Created by Sergey on 20.03.13.
// Copyright (c) 2013 slice. All rights reserved.
//
//#include <stdio.h>
#include <machine/machine_routines.h>
#include <pexpert/pexpert.h>
//#include <i386/proc_reg.h>
#include <string.h>
#include "cpuid.h"
static i386_cpu_info_t cpuid_cpu_info;
i... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <GL/glut.h>
#include "FreeImage.h"
#include "nvidia_logo.h"
#include "shadow.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
static int gWindowWidth = 800;
static int gWindowHeight = 640;
enum
{
DL_NONE,
DL_TEAPOT,
... |
#include <linux/mali/mali_utgard.h>
#include "mali_kernel_common.h"
#include "mali_osk.h"
#include "platform_pmm.h"
#include "mach/mt_gpufreq.h"
#include <asm/atomic.h>
#include "arm_core_scaling.h"
#if defined(CONFIG_MALI400_PROFILING)
#include "mali_osk_profiling.h"
#endif
extern unsigned long (*mtk_thermal_get_gp... |
#include <stdio.h>
#include "snoopy.h"
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#include<stdlib.h>
#include <linux/if_ether.h>
#include <linux/ip.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <pthread.h>
void guardar_trama(FILE *fichero,struct ethhdr *eth,int long_... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.