text stringlengths 5.8k 28.2k |
|---|
/*
read_adcirc_fort_compact_mex.c
Mex read function for ADCIRC fort files, for the "compacted" global output format
the calling function (read_adcirc_fort.m) handles
most error checking.
12 Jul, 2007
*/
#include <math.h>
#include <stdio.h>
#include "mex.h"
#include "opnml_mex5_allocs.c"
#define BUFFER_SIZE 132
#... |
/*
* Copyright (C) 1999 by <NAME>
* Copyright (C) 1999, 2000, 2003 by <NAME>
* Copyright (C) 2001 by <NAME>
* Copyright (C) 2004 <NAME> <<EMAIL>>
* Copyright (C) 2008 <NAME> <<EMAIL>>
* Copyright (C) 2014-2017 <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Publi... |
/***************************************************************************
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2007-2021 Intel Corporation. All rights reserved.
... |
/* read_psrfits.c */
#include <stdio.h>
#include <string.h>
#include "fitsio.h"
#include "psrfits.h"
int is_search_PSRFITS(char *filename)
// Return 1 if the file described by filename is a PSRFITS file
// Return 0 otherwise.
{
fitsfile *fptr;
int status=0;
char ctmp[80], comment[120];
// Read the pr... |
/*
Copyright (c) 2001 by <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, distribute, subli... |
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* 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 co... |
/*
* Copyright (C) 2011, 2012, 2013 Citrix Systems
*
* 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, thi... |
#include "common.h"
//#define MAX_PLAYERS 4
/*딜러들의 공유하는 카드덱 전역변수*/
int card_values[52];
int card_suits[52];
int ncard;
/*딜러들은 한 카드덱을 공유*/
pthread_mutex_t card_mutex;
/*카드 패 전역변수*/
int players_hand_values[MAX_PLAYERS][20], dealers_hand_values[MAX_PLAYERS][20];
int players_hand_suits[MAX_PLAYERS][20], dealers_hand_sui... |
/*
Copyright 2007, 2008 <NAME> (<EMAIL>)
This file is part of Velvet.
Velvet 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 ver... |
/*! \file bcm56960_a0_meter_fp_egr_drv.c
*
* This file defines bcm56960_a0 chip specific attributes for EFP Meter.
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Switch Software License
*
* This license governs the use... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hthread.h>
#include "stringMatching.h"
#define LOG_SERIAL 1
#include <log/log.h>
#define HWTI_ZERO_BASEADDR (void*)(0x63000000)
#define HWTI_ONE_BASEADDR (void*)(0x63010000)
#define HWTI_ZERO_INITHEAP (void*)(0x63007600)
#define HWTI_ONE_INITHEAP (v... |
#include "GroveTempHumiBaroBME280.h"
#include <stdlib.h>
#include <math.h>
#include "../HAL/GroveI2C.h"
#define BME280_ADDRESS (0x76 << 1)
#define BME280_REG_DIG_T1 (0x88)
#define BME280_REG_DIG_T2 (0x8A)
#define BME280_REG_DIG_T3 (0x8C)
#define BME280_REG_CHIPID (0xD0)
#define BME280_REG_CONTROLHUMID (0x... |
/*
Command method argument handling functions
*/
#include "class.h"
/* Forward functions */
int arg_obtain();
/* (ARGWIPE) -- Discard any pending, unprocessed arguments on
the argument declaration list. */
void P_argwipe()
{ /* -- */
while (!... |
#include "bggen.h"
#include "palette.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define NSCR_FLIPNONE 0
#define NSCR_FLIPX 1
#define NSCR_FLIPY 2
#define NSCR_FLIPXY (NSCR_FLIPX|NSCR_FLIPY)
typedef struct BGTILE_ {
unsigned char indices[64];
COLOR32 px[64]; //red... |
/*
MIT License
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 restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... |
/* -----------------------------------------------------------------------------
*
* (c) The University of Glasgow 2002
*
* Definitions for package `unix' which are visible in Haskell land.
*
* ---------------------------------------------------------------------------*/
#ifndef HSUNIX_H
#define HSUNIX_H
#ifdef... |
/**
* \file
*
* \brief Unit tests for USART driver
*
* Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
... |
/*-
* Copyright (c) 2004-2005 <NAME> <<EMAIL>>
* Copyright (c) 2001-2003 <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 ... |
/*
bmp.c - a simple Windows BMP file loader
based on the example at:
https://elcharolin.wordpress.com/2018/11/28/read-and-write-bmp-files-in-c-c/
Modified for use on M68000 powered Sharp X68000 by <NAME> (2020).
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#incl... |
/*
* digita.c
*
* Copyright 1999-2001 <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 of the License, or (at your option) any later version.
*
* This... |
/*****************************************************************************\
** **
** FILE: utils.c **
** AUTHORS: Alexios **
**... |
// Trabalho Covid
// <NAME> - RA: 2203049
// <NAME> - RA: 2201615
// Recomenda-se a execução no ambiente linux mint o qual foi desenvolvido.
// Necessario um arquivo nomeado como entrada.txt com os comandos a serem executados.
// Obs.: A ordem dos comandos não é um problema.
#include<stdio.h>
#include<stdlib.h>
#inclu... |
#include "types.h"
#include "defs.h"
#include "spinlock.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "images.h"
#include "video.h"
// Window management data structures
static unsigned short *buffer;
static Window *windows;
static Window **window_stack;
static unsigned int wi... |
/*
american fuzzy lop++ - fuzzer header
------------------------------------
Originally written by <NAME>
Now maintained by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>>
Copyright 2016, 2017 Google Inc. All rights ... |
//
// rgba.c
//
// Copyright (c) 2012 <NAME> <<EMAIL>>
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rgba.h"
/*
* Consume whitespace.
*/
#define WHITESPACE \
while (' ' == *str) ++str;
/*
* Parse color channel value
*/
#define CHANNEL(NAME) \
c = 0; \
if (*str >= '0' && *str ... |
#include <time.h>
#include <errno.h>
#include <sys/fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "driver/gpio.h"
#include "esp_system.h"
#include "esp_heap_caps.h"
#include "tftspi.h"
#include "tft.h"
#inclu... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "game.h"
/////////////
//utilities//
/////////////
void Lire_Entier(int *res, int min, int max) {
do {
scanf("%d", res);
if (*res < min || *res > max)
printf("Veuillez rentrer un entier entre %d et %d : ", min, max);
... |
#include "dsm.h"
#include "common_impl.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <poll.h>
/* indique l'adresse de debut de la page de numero numpage */
static char *num2address( int numpage )
{
char *pointer = (char *)(BASE_ADDR+(numpage*(PAGE_SIZE)));
if( pointer >= (... |
/* trashLoad - generate trash file activity load test. */
/* Copyright (C) 2013 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "sqlNum.h"
#include "options.h"
#include "trashDir.h"
... |
/* Copyright 2012-2017, <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:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions an... |
/* vi: set sw=4 ts=4: */
/* dhcpc.c
*
* udhcp DHCP client
*
* <NAME> <<EMAIL>> July 2001
*
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include <getopt.h>
#include <syslog.h>
#include "common.h"
#include "dhcpd.h"
#include "dhcpc.h"
#include "options.h"
/* Something is defi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "file.h"
#include "scanner.h"
#include "memory.h"
// "Constructor"
Scanner* initScanner(void* vm, int fileno, const char* source) {
#ifdef DEBUG_TRACE_SCANNER
printf("scanner:initScanner(%d, %p)\n", fileno, source);
#endif
Sc... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netdb.h>
#include <tls.h>
#include <sys/select.h>
#include <errno.h>
#include "llhttp.h"
#include "common.h"
#include "httpheaderlist.h"
#include "deps/cJSON.h"
#include "deps/base64.... |
/* $Id: sun4-timer.c,v 1.3 2010/06/05 14:38:23 fredette Exp $ */
/* machine/sun4/sun4-timer.c - implementation of Sun 4 timer emulation: */
/*
* Copyright (c) 2006 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
/************************************************************************/
/* */
/* Bootloader Programmer */
/* Author: <NAME>, <EMAIL> */
/* */
/* Adapted to DEV-CPP by Bingo
/* Updated to reflect PD's 17a version - 10-11-07 /Bingo
/*********************************************... |
/*-
* Copyright (c) 2010-2011 Juniper Networks, Inc.
* All rights reserved.
*
* This software was developed by <NAME> under contract
* to Juniper Networks, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:... |
/*
* Copyright 2013 Freescale Semiconductor, Inc.
* Copyright 2018-2019 NXP
*
* MikroBUS: blep click board(nRF8001) aci library
*
* 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 v... |
/*
* Copyright (c) 2018, Commonwealth Scientific and Industrial Research
* Organisation (CSIRO)
* All rights reserved.
*
* Advertising can take place at the same time as scanning, however
* this comes at the cost of variable transmit timing.
*
* Current behaviour appears to be that the first transmission of ... |
/*
* Copyright (c) 2015, ETH Zuerich.
* Copyright (c) 2016, Hewlett Packard Enterprise Development LP.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-809... |
/*****************************************************************************
Copyright(c) 2013 FCI Inc. All Rights Reserved
File name : fc8080_tun.c
Description : fc8080 tuner driver source file
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public L... |
/* Copyright 2016 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.
*/
#include "dcrypto.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/param.h>
#include <openssl/bn.h>
/**
* Compatibili... |
/******************************************************************************
*
* Copyright (C) 2021 IP Cores, Inc. All rights reserved.
* Copyright (C) 2021 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documenta... |
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* ====================================================================
* Copyright (c) 2010 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
/**
* MIT License
*
* 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 restriction, including without limitation the rights
* to use, copy... |
/*******************************************************************************
* ______ ______ _
* (_____ \ | ___ \ | |
* _____) )___ _ _ _ ____ ___ | | _ | | ___ ____ | | _ ____ _ _
* | ____// _ \ | | | | / _ ) / __... |
/**
* gametest3d
* @license The MIT License (MIT)
* @copyright Copyright (c) 2015 EngineerOfLies
* 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, includin... |
/*
** Copyright (C) 1995, 1996, 1997, 1998 Hewlett-Packard Company
** Originally by <NAME>, <EMAIL>, 3/11/94
**
This file is part of Swish-e.
Swish-e 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 Foundatio... |
#include "mirp/kernels/boys.h"
#include "mirp/kernels/eri.h"
#include "mirp/math.h"
#include "mirp/shell.h"
#include "mirp/gpt.h"
#include <string.h> /* for memset */
#include <math.h>
static void mirp_farr_double(double * f, int lmn1, int lmn2, double xyz1, double xyz2)
{
int i, j, k;
double tmp;
for (... |
/* dasrdi.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__3 = 3;
static integer c__1 = 1;
/* $Procedure DASRDI ( DAS, read data, integer ) */
/* Subroutine */ i... |
#include "globals.h"
#include "base64.h"
#include <inttypes.h>
#include <math.h>
#include <openssl/asn1.h>
#include <openssl/evp.h>
bool debug = false;
size_t append_counter(uint8_t data[128], size_t length, uint64_t value) {
// no debug logging, extremely performance sensitive!
size_t result;
if (value ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "processManager.h"
int debug = 1;
/*
* A variavel quantum irá definir quantas unidades de tempo o processo irá executar antes de ser retirado da cpu
*/
int quantum = 3;
/*
* A variavel cores irá controlar quantos processos exe... |
#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... |
/*
$Id$
*======================================================================
*
* DISCLAIMER
*
* This material was prepared as an account of work sponsored by an
* agency of the United States Government. Neither the United States
* Government nor the United States Department of Energy, nor Battelle,
* nor a... |
#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... |
// globals.h
// this file will be automatically included by the driver
#ifndef __SENSIBLE_MODIFIERS__
#define nosave static
#define protected static
#endif
#ifndef __PACKAGE_LONELY__
#include "winconf.h"
#else
#include "unixconf.h"
#endif
#define NO_FEE
#define BUSY_MESSAGE "你現在忙得很,無法做任何事情。\n"
#de... |
/*
Copyright 2015 <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... |
// board enforces
// in-state
// accel set/resume/main on
// out-state
// brake rising edge
// brake > 0mph
const int GM_MAX_STEER = 300;
const int GM_MAX_RT_DELTA = 128; // max delta torque allowed for real time checks
const uint32_t GM_RT_INTERVAL = 250000; // 250ms between real time ch... |
/** @file mw300_pinmux.c
*
* @brief This file provides PINMUX functions.
*
* (C) Copyright 2012-2019 Marvell International Ltd. All Rights Reserved.
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned ... |
/*
* hashfuncs.c
* Functions to investigate the content of HASH indexes
*
* Copyright (c) 2017-2018, PostgreSQL Global Development Group
*
* IDENTIFICATION
* contrib/pageinspect/hashfuncs.c
*/
#include "postgres.h"
#include "pageinspect.h"
#include "access/hash.h"
#include "access/htup_details.h"
#include ... |
// SPDX-License-Identifier: ISC
/*
* Copyright (c) 2010 Broadcom Corporation
*/
/*******************************************************************************
* Communicates with the dongle by using dcmd codes.
* For certain dcmd codes, the dongle interprets string data from the host.
**************************... |
/*-
* Copyright (c) 1999-2011 Apple Inc.
* Copyright (c) 2006-2008 <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 copyr... |
/*
* AMD Cryptographic Coprocessor (CCP) SHA crypto API support
*
* Copyright (C) 2013,2017 Advanced Micro Devices, Inc.
*
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License versio... |
/* sgels.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
/*
* $Id: mech.startup.c,v 1.2 2005/06/23 18:31:42 av1-op Exp $
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 1997 <NAME>
* Copyright (c) 1998-2002 <NAME>
* Copyright (c) 2000-2002 <NAME>
* All rights reserved
*
* Last modified: Thu Jul 9 06:59:34 1998 fingon
*
*/
#include <stdio.h>
#include <s... |
/*************************************************************************\
* Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE is distributed subj... |
#include "user.h"
// >> 1. [ CRUD ]
// 1.1 - Cadastrar Usuário/cliente -> Salvar na lista encadeada -> Salvar no arquivo user.dat [x]
// 1.2 - Editar Usuário/cliente -> Refactor na lista encadeada -> Salvar no arquivo user.data [x]
// 1.3 - Remover Usuário/cliente -> Refactor na lista encadeada -> Salvar no arquivo us... |
/********************************************************************************************
* Supersingular Isogeny Key Encapsulation Library
*
* Abstract: Pairing computation for compression
*
*********************************************************************************************/
void get_A(const f2elm_t xP... |
/* exif-mnote-data-pentax.c
*
* Copyright (c) 2002, 2003 <NAME> <<EMAIL>>
*
* 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 of the License, or (at your option) a... |
/*
Unix SMB/CIFS implementation.
store smbd profiling information in shared memory
Copyright (C) <NAME> 1999
Copyright (C) <NAME> 2006
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 Founda... |
/* v/http.c
**
*/
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <setjmp.h>
#include <gmp.h>
#include <stdint.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <uv.h>
#include <errno.h>
#include <curses.h>
... |
// Copyright 2010-2020 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 (C) sunlei.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include "ngx_rtmp_quic_chromium.h"
static ngx_int_t ngx_rtmp_quic_module_init(ngx_cycle_t *cycle);
static ngx_int_t ngx_rtmp_quic_process_init(ngx_cycle_t *cycle);
static void ngx_rtmp_quic_exit_process(ngx_cycle_t *cycle);
static voi... |
#include "hdmi_core.h"
__s32 hdmi_state = HDMI_State_Idle;
bool video_enable = 0;
__u32 video_mode = HDMI720P_50;
__s32 cts_enable = 0;
__s32 hdcp_enable = 0;
__u8 sw_init_flag = 0;
HDMI_AUDIO_INFO audio_info;
__u8 EDID_Buf[1024];
__u8 Device_Support_VIC[512];
__u8 Vendor_Id[2];
__u8 isHDMI = 0;
__u8 YCbC... |
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <auth.h>
#include <fcall.h>
#include <disk.h>
enum {
LEN = 8*1024,
HUNKS = 128
};
#undef warn
#define warn protowarn
#undef getmode
#define getmode protogetmode
typedef struct File File;
struct File{
char *new;
char *elem;
char *old;
char *uid;
char ... |
/*
Copyright 1996, 1998 The Open Group
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 notice and this permission notice appear in suppor... |
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#if !UI_MOCKUP
#include "SEGGER_RTT.h"
#include "cmsis_os.h"
#endif
#include "app.h"
#include "u8g2.h"
#include "profile.h"
#include "ui.h"
#if !UI_MOCKUP
extern QueueHandle_t app_ipc_q;
#endif
static const char *button_labels[] = {"stop", "edit", "start", "... |
/*
* Copyright (C) 2005 <NAME>
*/
#include "cache.h"
#include "quote.h"
#include "commit.h"
#include "diff.h"
#include "diffcore.h"
#include "revision.h"
#include "cache-tree.h"
#include "unpack-trees.h"
#include "refs.h"
#include "submodule.h"
#include "dir.h"
/*
* diff-files
*/
/*
* Has the work tree entity be... |
/* P L O T 3 - P S . C
* BRL-CAD
*
* Copyright (c) 1989-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 a... |
#include <stdio.h>
void io_hlt(void);
void io_cli(void);
void io_out8(int port, int data);
int io_load_eflags(void);
void io_store_eflags(int eflags);
void write_mem8(int addr, int data);
/* c语言,即使在同一个源文件内,定义前使用需要声明 */
void init_palette(void);
void set_palette(int start, int end, unsigned char *rgb);
void boxfill8(un... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*
* Copyright 2008-2011 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* Version 2 as published by the Free Software Foundation.
*/
/*
* Generic driver for Freescale DDR/DDR2/DDR3 memory controller.
... |
#define _POSIX_C_SOURCE 200809L
#include <GLES2/gl2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wayland-client.h>
#include <wayland-egl.h>
#include <wlr/render/egl.h>
#include "text-input-unstable-v3-client-protocol.h"
#include "xdg-shell-client-protocol.h"
const char us... |
/*
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2007, 2008 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,... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: RCSL 1.0/RPSL 1.0
*
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files included with this file, are
* subject to the current version of the RealNetworks Public Source License
* Version 1.0 (the "RP... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "ureg.h"
#include "pool.h"
#include "../port/error.h"
#include "../port/netif.h"
#include "dosfs.h"
enum {
Dosfilemax = 8,
Dosextmax = 3,
};
/*
* predeclared
*/
static void bootdump(Dosboot*);
stat... |
/* $OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp $ */
/*
* Copyright (c) 2014 genu<NAME> <<EMAIL>>
* Copyright (c) 2014 Fixup Software Ltd.
*
* 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... |
/* lex.c - Lexical analyzer
Copyright (c) 2010-2011 <NAME>
Alore is licensed under the terms of the MIT license. See the file
LICENSE.txt in the distribution.
*/
/* Lexical analyzer. The lexical analyzer converts a string representing the
source file to an array of tokens. */
#include "lex.h"
#include ... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "ip.h"
#include "libcrypt.h"
typedef struct Esphdr Esphdr;
typedef struct Esptail Esptail;
typedef struct Userhdr Userhdr;
typedef struct Esppriv Esppriv;
typedef struct Espcb Espcb;
typedef... |
#include "main.h"
#include "game.h"
#include <common.h>
#include <resource.h>
#include <bmd.h>
#include <renderer.h>
#include <server.h>
#include <stb_image.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
/*
float vertices[] = {
-0.5f, -0.5f, -0.5f, 0.0f, 0.0... |
/*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
/**
This is a sample telescope-control program that uses Astrometry.net
as a library.
*/
#include <unistd.h>
#include <stdio.h>
#include <getopt.h>
#include <libgen.h>
#include <math.h>
#include... |
/*
* (C) Copyright 2003-2004
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2004
* <NAME>, TQ-Systems GmbH, <EMAIL>
*
* Modified for the CMC PU2 by (C) Copyright 2004 <NAME>
* <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free softwa... |
/* EXAMPLES\COMPLEX\zndrv1.f -- translated by f2c (version 20100827). */
#include <stdlib.h>
#include "arpack.h"
/**
* \BeginDoc
*
* Example program to illustrate the idea of reverse communication
* for a standard complex nonsymmetric eigenvalue problem.
*
* We implement example one of ex-complex.do... |
/****************************************************************************
* drivers/audio/song_i2s.c
*
* Copyright (C) 2017 Pinecone Inc. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
/*
*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/* DVB USB compliant Linux driver for the
* - GENPIX 8pks/qpsk/DCII USB2.0 DVB-S module
*
* Copyright (C) 2006,2007 <NAME> (<EMAIL>)
* Copyright (C) 2006,2007 Genpix Electronics (<EMAIL>)
*
* Thanks to GENPIX for the sample code used to implement this module.
*
* This module is based off the vp7045 and vp702x ... |
/*
* Configuration routines.
*
* 19971219 support for mame.cfg by <NAME>
* 19980402 moved out of msdos.c (N.S.), generalized routines (BW)
* 19980917 added a "-cheatfile" option (misc) in MAME.CFG JCK
*/
#include "minimal.h"
#include "driver.h"
#include <ctype.h>
#include <strings.h>
#include "allegro.h"
... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* 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 ... |
/* -*- linux-c -*- */
/* fewbody.c
Copyright (C) 2002-2004 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ver... |
/*
* lws-minimal-secure-streams-custom-proxy-transport
*
* Written in 2010-2021 by <NAME> <<EMAIL>>
* Kutoga <<EMAIL>>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
*
* This is a version of minimal-secure-streams-binance that... |
/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 <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.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.