text stringlengths 3.12k 18.7k |
|---|
/* Flash Cards ver 2005-Sept-24
* by <NAME> (c) 2008
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define NUM 25
int shape[21][9] = {
{ 28, 54, 99, 99, 99, 99, 99, 54, 28},
{ 24, 28, 30, 24, 24, 24, 24, 24, 126},
{ 62, 99, 99, 48, 24, 12, 6, 7, 127},
... |
/*
* This file is part of the Bus Pirate project (buspirate.com).
*
* Originally written by <EMAIL> <<EMAIL>>
*
* To the extent possible under law, hackaday.com <<EMAIL>> has
* waived all copyright and related or neighboring rights to Bus Pirate. This
* work is published from United States.
*
* For de... |
#include "generate.h"
#include "blocked.h"
#include "ephemeris.h"
#include "math.h"
#include "blackbody.h"
#include "spline.h"
#include "web.h"
#include "bicubic.h"
#include <stdlib.h>
#include <stdio.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
double *lightcurve(int n_layers, int n_points, double ... |
/////
// Adapted from http://blogs.zynaptiq.com/bernsee/repo/smbPitchShift.cpp
//
/****************************************************************************
*
* COPYRIGHT 1999-2015 <NAME> <s.bernsee [AT] zynaptiq [DOT] com>
*
* The Wide Open License (WOL)
*
* Permission to use, copy, modify, distribute ... |
#include <termios.h>
#include <stdio.h>
#include <time.h>
#include "error_reporting.h"
#include "readers/reader.h"
#include "readers/osdp/osdp.h"
#define OSDP_SLEEP_TIME 50000
#define MAX_PIN_LEN 28
#define CARD_ID_OFFSET 4
const uint8_t defaultAddress = 0x7f;
struct Reader {
int serial;
bool use_rs485_te;
uint... |
#include <interface/mmal/mmal.h>
#include <interface/mmal/util/mmal_default_components.h>
#include <interface/mmal/util/mmal_util_params.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#define CHK(__status, __msg) ... |
/*
* Copyright (C) 2013 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.
*/
#include <linux/clk.h>
#include <linux/cpu.h>
#include <linux/cpufreq.... |
/*
* Copyright (c) 2016 eSOL TRINITY, www.esol-trinity.co.jp
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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
*
* ... |
/*
* Copyright (c) 2018, Linaro Ltd.
* 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... |
/* darray - generic, dynamically sizing array type. You can add/remove stuff
* to the raw data if you want, it's on you to call the proper
* functions
*
* Copyright (c) 2013, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... |
//----------------------------------------------------------------------------//
//|
//| MachOKit - A Lightweight Mach-O Parsing Library
//| export.c
//|
//| D.V.
//| Copyright (c) 2014-2015 D.V. All rights reserved.
//|
//| Permission is hereby granted, free of charge, t... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2018 rt-labs AB, Sweden.
... |
const int SUBARU_L_MAX_STEER = 2047; // 1s
// real time torque limit to prevent controls spamming
// the real time limit is 1500/sec
const int SUBARU_L_MAX_RT_DELTA = 940; // max delta torque allowed for real time checks
const uint32_t SUBARU_L_RT_INTERVAL = 250000; // 250ms between real time checks
const i... |
/* testing misc code */
/* (C) 2011 by <NAME> <NAME>
* (C) 2014 by sysmocom s.f.m.c. GmbH
*
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation; either version ... |
#include<stdlib.h>
#include<string.h>
#include<stdio.h>
#include"parser.h"
#include"lexer.h"
#include"init.h"
typedef ParserNode Node;
typedef ParserFunction Function;
typedef ParserFile File;
byte get_type(Node *node){
return (node -> type) >> 1;
}
byte is_func(Node *node){
return (node -> type) & 1;
}
s... |
// -*- tab-width:4 ; indent-tabs-mode:nil -*-
#include <hre/config.h>
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <hre/dir_ops.h>
#include <hre-io/user.h>
#include <lts-io/provider.h>
#include <lts-lib/dir-info.h>
#include <lts-lib... |
#include<stm32f0xx.h>
#include"arm_math.h"
#include"../../src/math/arm_sin_f32.c"
#include"../../src/math/arm_cos_f32.c"
#define RADIUS (5U)
#define CIRC (6.28 * RADIUS)
volatile uint32_t x, y, next_x, next_y, dest_x, dest_y;
uint8_t v;
void configure_GPIO_USART(void) {
/* USART1_TX IS PA9 AND USART1_RX IS PA10 ... |
/* nohup -- run a command immune to hangups, with output to a non-tty
Copyright (C) 2003-2005, 2007-2011 Free Software Foundation, Inc.
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, eit... |
/*
* stub.h - Stub ADT description.
*/
/* Types
********/
/* stub types */
typedef enum _stubtype
{
ST_OBJECTTWIN,
ST_TWINFAMILY,
ST_FOLDERPAIR
}
STUBTYPE;
DECLARE_STANDARD_TYPES(STUBTYPE);
/* stub flags */
typedef enum _stubflags
{
/* This stub was marked for deletion wh... |
/* $Xorg: sunLyCfb.c,v 1.4 2001/02/09 02:04:44 xorgcvs Exp $ */
/*
* This is sunCfb.c modified for LynxOS
* Copyright 1996 by <NAME>
*
* 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 no... |
/*
// Copyright (c) 2010-2019 Intel Corporation
//
// 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 la... |
/* $OpenBSD: if_ti_pci.c,v 1.1 2009/08/29 21:12:55 kettenis Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* <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. Redistrib... |
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2022 <NAME> │
│ ... |
/*
u8x8_d_max7219.c
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2017, <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 ... |
/* MIT License
*
* Copyright (c) <NAME> 2017
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... |
/**
* \file diag_dnx_utils_sbusdma_desc.c Contains all of the descriptor DMA diag commands
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#ifdef BSL_LOG_MODU... |
#include "snapconfig.h"
/* netlist2.c: Station list functions accessed via network */
/*
$Log: networks.c,v $
Revision 1.2 1998/05/21 04:00:28 ccrook
Added geodetic coordinate system to network object and facilitated getting and setting
coordinates in the network coordinate system.
Revision 1.1 1995... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define pi 3.141592653589793
#define solar_mass (4 * pi * pi)
#define days_per_year 365.24
typedef double v2df __attribute__ (( vector_size(2*sizeof(double)) ));
#define lower(_V) (((double*)&_V)[0])
struct planet {
v2df xy;
v2df z0; /* z and zero */
... |
/*
*************************************************************************
* Ralink Tech Inc.
* 5F., No.36, Taiyuan St., Jhubei City,
* Hsinchu County 302,
* Taiwan, R.O.C.
*
* (c) Copyright 2002-2007, Ralink Technology, Inc.
*
* This program is free software; you can redistribute it and/or modify *
* it u... |
#include <stdio.h>
#include <stdlib.h>
#include "tlv.h"
#include "tests.h"
INIT_TESTS();
void tlv_types_tests(void) {
char has_TLV_PAD1 = 0,
has_TLV_PADN = 0,
has_TLV_TEXT = 0,
has_TLV_PNG = 0,
has_TLV_JPEG = 0,
has_TLV_COMPOUND = 0,
... |
/*
No copyright is claimed in the United States under Title 17, U.S. Code.
All Other 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 limitat... |
/* $OpenBSD: fuse_lookup.c,v 1.11 2016/03/19 12:04:15 natano Exp $ */
/*
* Copyright (c) 2012-2013 <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... |
//
// iobuffer.c
// couchstore
//
// Created by <NAME> on 4/12/12.
// Copyright (c) 2012 Couchbase, Inc. All rights reserved.
//
#include "config.h"
#include "iobuffer.h"
#include "internal.h"
#include <stdlib.h>
#include <string.h>
#define LOG_BUFFER 0 && defined(DEBUG)
#if LOG_BUFFER
#include <stdio.h>
#endif
... |
/*
The MIT License (MIT)
Copyright (c) 2015-? suhetao
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, pub... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <uv.h>
#include <curl/curl.h>
#include <oauth.h>
#include "stream.h"
struct bear_stream_s{
uv_loop_t *loop;
CURLM *curl_handle;
uv_timer_t timeout;
uv_poll_t poll_handle;
curl_socket_t sockfd;
char const* c_key;
char const* c_sec;
char const*... |
/*Copyright 2018 LibOpt Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
/**
* Copyright (C) 2012 Netronome Systems, Inc. All rights reserved.
*
* Perform a simple NBI Traffic Manager setup for packet examples
*
*/
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <unistd.h>
#include <intt... |
/*****************************************************************************
* gammaray_fs.c *
* *
* This file contains implementations of functions for a FUSE read-only *
* f... |
#include <ctype.h> /* isdigit() */
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "alias.h"
#include "common.h"
#include "params.h" /* g_config, NOT_SET */
#include "id3v1.h"
#include "id3v1_genres.h"
#include "id3v1e_speed.h"
#include "id3v2.h"
#include "output.h"
#... |
#pragma ident "$Id: version.c,v 1.35 2015/11/14 00:51:09 dechavez Exp $"
/*======================================================================
*
* library version management
*
*====================================================================*/
#include "ida.h"
static VERSION version = {4, 5, 1};
/* ida li... |
/*
Copyright (c) 2003, Division of Imaging Science and Biomedical Engineering,
University of Manchester, UK. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must reta... |
/*
****************************************************************************
*
* UNIVERSITY OF WATERLOO ECE 350 RTOS LAB
*
* Copyright 2020-2021 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
/*
* 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:
*
* Redistributions of source code must retain the above copyright
* notice, this list of cond... |
/**************************************************************************//**
* @file system_ADuCM4050.c
* @brief CMSIS Cortex-M4 Device Peripheral Access Layer Source File for
* Device ADuCM4x50
* @version V3.10
* @date 23. November 2012
*
************************************************... |
/*D************************************************************/
/* Modul: DBI - database select */
/* get a pixel image */
/* */
/* Copyright: yafra.org, Basel, Switzerland */
/********... |
#include <time.h>
#include "office.h"
#define QUEUE_MAXDIM 100
//Buffer *my_urgent_Q, *my_answer_Q;
void *studentFunction(void *param);
void *officeFunction(void *param);
void *officeSpecialFunction(void *param);
int main(int argc, char **argv) {
time_t t;
int i;
pthread_t *th_s;
pthread_t *th_o = malloc(NUM_... |
/*
* \file
*
* \brief ATSHA204 file that implements the I2C layer for the device
*
*
* Copyright (c) 2011-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
// Implementation of Wang-Landau algorithm described in <NAME> (2010), dx.doi.org/10.1021/jp100132s
// Usage: ./adensum.x [file containing frequencies and anharmonicities]
// Output format: (interval energy, average energy of states within interval, average coupling for states within interval)
#include <stdio.h>
#incl... |
//
// Copyright (c) 2019-2022 yanggaofeng
//
#include "avformat.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavformat/avformat.h"
#include "libavformat/url.h"
#include <pthread.h>
#include "libavformat/YangMetaConnection.h"
#define SDP_MAX_SIZE 16384
typed... |
/*---------------------------------------------------------------------
EFERGY E2 CLASSIC RTL-SDR DECODER via rtl_fm
Copyright 2013 <NAME>
Permission is hereby granted to use this Software for any purpose
including combining with commercial products, creating derivative
works, and redistribution of source or binary... |
#include "virtualNetDriver.h"
static int lockup = 0;
static int timeout = SNULL_TIMEOUT;
struct net_device virtualNetDevs[2];//这里定义两个设备,一个是virLanl,virLan2
struct virtualNetPriv {
struct net_device_stats stats;//有用的统计信息
int status;//网络设备的状态信息,是发完数据包,还是接收到网络数据包
int rx_packetlen;//接收到的数据包长度
u8 ... |
/*
* 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/LICENSE-2.0
*
* Unless required by app... |
/* ==================================== *
* Brainfunk -- A Brainf**k Toolkit *
* Neo_Chen *
* ==================================== */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <getopt.h>
#include <ncurses.h>
#include... |
/*
* $ Copyright Cypress Semiconductor $
*/
/** @file
*
*/
#include <stdint.h>
#include "wiced_result.h"
#include "wiced_time.h"
#include "string.h"
/******************************************************
* Macros
******************************************************/
#define UTC_TIME_TO... |
/*
* Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
* The President and Fellows of Harvard College.
*
* 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 ... |
/*
* Peripheral access functions (digital/analog inputs/outputs)
*
* @file peripheral.c
* @author --
* @copyright 2021 --
*
* This file is part of CANopenNode, an opensource CANopen Stack.
* Project home page is <https://github.com/CANopenNode/CANopenNode>.
* For more information on CANo... |
#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdlib.h>
#include <time.h>
#include <sched.h>
#include <sys/mman.h>
... |
/*
Copyright (C) 2005 <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 version.
This program is distributed in the hope that it ... |
/* This code generates the OTPMK Key with the hamming code embedded in
* the key.
* The Hamming algorithm as per the reference manual has been implemented.
*/
/* Copyright (c) 2012, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modi... |
/*****************************************************************************
*
* File: tap_main.c
* Author: <NAME>
* Created: February 2011
*
* $Id: tap_main.c 787 2011-10-05 23:41:39Z astivala $
*
* Traffic assignment by Frank-Wolfe algorithm.
* This version runs the shortest path computations (d'Esopo... |
/*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later versio... |
#include "dR_nodes_fft.h"
#include "dR_core.h"
// ///////////////////////////
// Fast Fourier Transform //
// ///////////////////////////
dR_Node* dR_FFT(dR_Graph* net, dR_Node* inputNode1)
{
// allocate memory for dR_Shape3 (3 dimensional vector)
dR_FFT_Data* fft = g_malloc(sizeof(dR_FFT_Data));
// alloc... |
#define _XOPEN_SOURCE
#define _GNU_SOURCE
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#include<string.h>
#include<errno.h>
#include<pwd.h>
#include<sys/cdefs.h>
#include<sys/reboot.h>
#include"sysdeps.h"
#define TRACE_TAG TRACE_SERVICES
#include"adb.h"
#include"file_sync_service.h"
typedef struct stinfo st... |
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <smallengine/maths/maths.h>
#include <smallengine/maths/tuple.h>
/* test the various creation functions for tuples, points and vectors */
void TST_TupleCreate()
{
struct tuple t = tuple(1.0, 2.0, 3.0, 4.0);
assert(double_equal(t.x, 1.0)... |
/*
* AppendVids: Attach 2 videos one after the other. By <NAME> (<EMAIL>) on 27th April 2010.
* "http://www.shervinemami.co.cc/"
*/
#define CV_NO_BACKWARD_COMPATIBILITY
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include "opencv2/opencv.hpp"
#include <iostream>
#include "ImageUtils.h... |
/***************************************************************************************************
* @file adsr.c
*
* @brief Attack/Decay/Sustain/Release module (sources)
*
* @licence MIT License
*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of... |
/*
* Copyright (c) 2018 Elastos Foundation
*
* 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, ... |
/*************************************************************************
*
* PathFinder: finding a series of labeled nodes within a
* two-layer directed, cyclic graph.
* Copyright (2013) Sandia Corporation
*
* Copyright (2013) Sandia Corporation. Under the terms of Cont... |
#include "MapAuraFx.h"
enum {
// Constants
FX_TILE_ROOT = 0x280,
FX_PALETTE_ROOT = 3,
};
struct MapAuraFxProc
{
PROC_HEADER;
/* 2C */ unsigned blend;
/* 30 */ int vSpeed;
};
static void MapAuraFx_OnInit(struct MapAuraFxProc* proc);
static void MapAuraFx_OnLoop(struct MapAuraFxProc* proc);
static void MapAura... |
/*
* Copyright (C) 2008 <NAME>
* Copyright (C) 2009 <NAME>
*
* This file is part of wasp, some code taken from paparazzi (GPL)
*
* wasp 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,... |
/** @file class.c
* <NAME>, 17.04.2011
*/
/* this main calls CLASS several times in a loop, with different input
parameters. It illustrates how the code could be interfaced with a
parameter extraction code. */
/* JL 17.03.2016: implemented here nested openMP loops. The user
chooses how many instan... |
// devmgr.c
#include <kernel.h>
// Search a neme into the list.
// Used by sys_open();
// OUT:
// fp or NULL
file *devmgr_search_in_dev_list( char *path )
{
// #todo
// Só podemos chamar isso se a lista ja estiver inicializada.
// precisamos de uma flag.
int i=0;
struct device_d *tmp_dev;
if( (vo... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <errno.h>
#include "ctf.h"
#define BUF_SIZE 4096
#define KEY_LEN_MIN 1
#define KEY_LEN_MAX 256
#define RC4_SZ 256
#define TYPE_PLAIN 1
#define TYPE_ENCODE 2
#define TYPE_ENCRYPT 3
#define PROT_MASK (PROT_RE... |
/*
* (C) Gražvydas "notaz" Ignotas, 2009-2010
*
* This work is licensed under the terms of any of these licenses
* (at your option):
* - GNU GPL, version 2 or later.
* - GNU LGPL, version 2.1 or later.
* - MAME license.
* See the COPYING file in the top-level directory.
*/
#include <stdio.h>
#include <stdl... |
// 14.09.10 Recognize long and short frames in phondata
// 02.09.10 Fix: Q sections were omitted from the converted phondata
// 13.08.10 jonsd: Added Q lines. Use Address to set the displacement in phondata file.
// 13.02.10 jonsd: Changed for eSpeak version 1.43
#include <stdio.h>
#include <stdlib.h>
#include... |
#include "hw3_interrupts.h"
#include "hw3.h"
static volatile uint16_t PS2_X_DATA = 0;
static volatile uint16_t PS2_Y_DATA = 0;
static volatile PS2_DIR_t PS2_DIR = PS2_DIR_CENTER;
// new added globals
static volatile uint16_t MOVE_COUNT = 0;
static volatile PS2_DIR_t SPACE_SHIP_DIRECTION = PS2_DIR_CENTER;
volatile bul... |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... |
/*
TODO List:
[ ] Makefile and build in Cygwin?
[ ] Verification module. Checks every number in DB for validity.
[ ] Different flag for processing and verifying?
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "prmdb_assert.h"
#include "prmdb_dbfile.h"
#include "... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "paser.h"
#include "token.h"
#include "mem.c"
#include "lexical.c"
#define malloc(size) safe_malloc(size)
#define free(p) p=safe_free(p)
#define realloc(p,size) safe_realloc(p,size)
#define memcpy(p1,p2,size) safe_memcpy(p1,p2,size)
// 获取并返回一个token
... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/*
* 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 Resea... |
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <getopt.h>
#include <limits.h>
#include "trace.h"
typedef enum field {
submit = 0,
eligible,
start,
end,
duration
} fields;
fields f = submit;
char* f... |
/*
* adios_read_ext.c
*
* Created on: Apr 28, 2014
* Author: xczou
*/
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include "public/adios_read_ext.h"
#include "core/common_read.h"
#include "core/transforms/adios_transforms_common.h"
#include "core/transforms/adios_transforms_transinfo.h"
#in... |
// SPDX-FileCopyrightText: 2010-2011 pancake <<EMAIL>>
// SPDX-License-Identifier: LGPL-3.0-only
#include <rz_egg.h>
#define attsyntax 0
#define EMIT_NAME emit_arm
#define RZ_ARCH "arm"
#define RZ_SZ 8
#define RZ_SP "sp"
#define RZ_BP "fp"
#define RZ_AX "r7"
#define RZ_GP \
{ "r0", "r1", "r2", "r3"... |
/* $NetBSD: odsyntax.c,v 1.28 2010/11/27 20:46:38 christos Exp $ */
/*-
* Copyright (c) 1990, 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... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include <fate/fate.h>
static const char *TAG = "fe_gl_src";
static fe_timestamp timestamp = 0;
fe_timestamp fe_gl_src_get_build_timestamp(void) {
return timestamp ? timestamp : (timestamp = fe_timestamp_here());
}
void fe_gl_src_cube_prelink(const fe_gl_shader_source_set *ss, GLuint prog, fe_timestamp last_bui... |
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <inc/hw_memmap.h>
#include "inc/hw_ssi.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include <driverlib/interrupt.h>
#include <driverlib/sysctl.h>
#include "driverlib/pin_map.h"
#include <driverlib/t... |
/*
* @file ym_dump.c
* @brief YM-2149 emulator - YM-2149 dump engine
* @author http://sourceforge.net/users/benjihan
*
* Copyright (c) 1998-2016 <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 Fre... |
/*
vdexExtractor
-----------------------------------------
<NAME> <<EMAIL>>
Copyright 2017 - 2018 by CENSUS S.A. 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 Lice... |
/*
* Copyright (C) 2009-2015,
* Intelligent Robotics and Intelligent Systems (IRIS) Lab
* CAMBADA robotic soccer team – http://robotica.ua.pt/CAMBADA/
* University of Aveiro, Portugal
*
* This file is part of the CAMBADA RTDB
*
* CAMBADA RTDB is free software: you can redistribute it and/or modify
* it under t... |
#include <stdio.h>
#include <stdlib.h>
#include "decode.h"
extern int yyleng;
extern char *yytext;
extern int yylex(void);
struct TurnInfo {
int turn;
int player;
int num_players;
char *game;
char **clan_code;
char **clan_name;
};
char *liz_colour[] = {"Unseattled", "Red", "Green", "Grey", "Black", "Yel... |
/*
* Copyright (c) 2008-2009 <NAME> (<EMAIL>)
* and the University of Washington
*
* 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... |
/* test-randr.c --- playing with the Resize And Rotate extension.
* xscreensaver, Copyright (c) 2004-2008 <NAME> <<EMAIL>>
*
* 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... |
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/**
*/
#include "led.h"
#include "platform_hw.h"
#include "color.h"
#include "iprintf.h"
#include "stm32f0xx_hal.h"
#include "stm32f0xx_hal_gpio.h"
#include "stm32f0xx_hal_spi.h"
#include "baf/baf.h"
#include "yabi/yabi.h"
#include <string.h>
#include <stdlib.h>
#define YABI_CHANNELS (LED_CHAIN_LENGTH * 3)
s... |
/*
edits.c Screen manager for Editor
*/
#include "edit.h"
#ifdef MSDOS
#include <conio.h>
#include <dos.h>
#endif
extern bool chgflg; /* change result from tget */
extern char ruler[]; /* Spaltenlineal mit Tabulatoren */
extern int oldpage;
extern int thispage;
extern int tabs;
#ifdef MSDOS
int insflg = 0; ... |
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "exanic.h"
#include "pcie_if.h"
#include "ioctl.h"
static exanic_t *exanic_list = NULL;
exanic_t * ex... |
/*
* 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.