text stringlengths 5.8k 28.2k |
|---|
/*
* mon_register6502dtv.c - The VICE built-in monitor 6502 DTV register functions.
*
* Written by
* <NAME> <<EMAIL>>
* Based on code by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This... |
/*-
* Copyright (c) 2000 <NAME>
* Copyright (c) 2001 <NAME>
* Copyright (c) 2000 BSDi
* Copyright (c) 2001 Adaptec, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistribu... |
/*
* Copyright 2020 Advanced Micro Devices, 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 restriction, including without limitation
* on the rig... |
/*
* Copyright (c) 2013-2014, ARM Limited and Contributors. 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
* l... |
/**
******************************************************************************
* @file TouchSensing\TouchSensing_Linear\Src\main.c
* @author MCD Application Team
* @brief Main program body
******************************************************************************
* @attention
*
* ... |
/**
* @file client_omapl13x.c
*
* @brief TCP/IP Network Client example.
*/
/*
* Copyright (c) 2017, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
/*
* Copyright (C) 2009 <NAME>
* Copyright (C) 2010 <NAME>
* Copyright (C) 2013 Swift Navigation Inc.
*
* Contacts: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Based on the example "stream_test.c" in libftdi, updated in 2010 by Uwe
* Bonnes <<EMAIL>> for libftdi and
* originally written by <NAME> <<EMAI... |
/***************************************************************************************
*
* Copyrigth© 2016 <NAME>
* e-mail: <EMAIL>
*
* Descripción
*
* Archivo main.c para compilación de un proyecto para el SOC BLE
* nRF51822_xxAC con el SDK ... |
/************************************************************************\
**************************************************************************
** **
** ipfcursors - bitmap collection of all cursors used by toolbox **
** ... |
/*
* Copyright (C) 2018 bzt (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, pu... |
#include "codeGeneration.h"
//private functions
dependency *cg_calc_dependency(queue *variableQueue, queue *newVarQueue, int i, int j);
void cg_write_nodes_to_file(queue *nodes);
void cg_backpatch(node *source, int side, node *target, int port);
int cg_get_adicity(char *literal);
int cg_init_files(){
codeOutputFile ... |
/*
* Copyright 2008-2019 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Licen... |
/*
* AM79C960
* PCnet Single-Chip Ethernet Controller for ISA Bus
* To do:
* only issue transmit interrupt if necessary?
* dynamically increase rings as necessary?
* use Blocks as receive buffers?
* currently hardwires 10Base-T
*/
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#includ... |
/*
* @file paula_io.c
* @brief Paula I/O plugin (Amiga soundchip)
* @author http://sourceforge.net/users/benjihan
*
* Copyright (C) 1998-2011 <NAME>
*
* Time-stamp: <2011-10-06 14:14:38 ben>
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General ... |
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... |
#include "http.h"
#include "framework.h"
ef_curl *ef_curl_init(char *host,int port,char *request_uri){
ef_curl_request *req;
ef_curl_response *resp;
ef_curl *cu;
req = (ef_curl_request *)malloc(sizeof(ef_curl_request));
if(req == NULL){
goto error;
}
req->status = R_STATUS_INIT;
... |
/*****************************************************************************
* This file is part of uvg266 VVC encoder.
*
* Copyright (c) 2021, Tampere University, ITU/ISO/IEC, project contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* ar... |
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: dsatest.c
//
//--------------------------------------------------------------------------
/*++
Abstract:
This file impleme... |
/**
******************************************************************************
* @file : usbd_storage_if.c
* @brief : Memory management layer
******************************************************************************
* This notice applies to any and all portions of this file
* tha... |
#include "identities.h"
/*For calloc*/
#include <stdlib.h>
/*For strlen*/
#include <string.h>
#include "cas.h"
#include "../dbg.h"
/*
IDENTITY RULES:
N is reserved for integers.
I and J are reserved for real numbers.
*/
pcas_id_t id_general[ID_NUM_GENERAL] = {
/*logb(value, base)*/
/*This ident... |
/*
* Copyright (c) 2016, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
/*************************************************************************
* $Id: mdtof.c 23 2011-03-09 23:10:33Z mjeffe $
*
* multithreaded version of dtof
*
* KNOWN ISSUES
*
* - This uses parsecsv which strips warpper quotes, so the output can be
* different than the input since we currently don't rebuild it ... |
/*
* Copyright (C) 2019 <NAME>
* See LICENSE notice in top-level directory
*/
#include "codes/model-net.h"
#include "codes/lp-io.h"
#include "codes/codes.h"
#include "codes/codes_mapping.h"
#include "codes/configuration.h"
#include "codes/lp-type-lookup.h"
static int net_id = 0;
static int PAYLOAD_SZ = 4096;
stat... |
/*
* University of Bristol – Open Access Software Licence
* Copyright (c) 2016, The University of Bristol, a chartered
* corporation having Royal Charter number RC000648 and a charity
* (number X1121) and its place of administration being at Senate
* House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.
* All ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <inttypes.h>
struct gpt_table_header {
// the head
char signature[8];
uint32_t revision;
uint32_t header_size;
uint32_t crc32;
uint32_t _reserved0;
// the partitioning info
u... |
/** \file cMakeSubregions.c
*
*Compile the mex file:
*
mex -O cMakeSubregions.c
*
* [subregions leftcoord topcoord]=cMakeSubregions(X,Y,Z,sz,data)
* $Rev: 54 $
* $Date: 2011-09-06 13:18:16 -0600 (Tue, 06 Sep 2011) $
* $Author: jbyars $
* $HeadURL: https://abbe.phys.unm.edu/svn/cCode/cMakeSubregions.c $
*/
#i... |
/* <NAME> and <NAME>
* 12/8/11
* University of Washington
*/
#include <stdlib.h>
#include <time.h>
#include "vector64.h"
#include "vector_macros.h"
#define RUN_STRESS_TESTS
#define RUN_BASIC_TESTS
//#define TEST_OOB
bool use_nvm = true;
bool keep_sorted = true; //false -> appends, true -> inserts
#define APPENDS... |
/*
* Copyright (c) 2017, 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 source code must retain the above copyright notice,
* this list o... |
#ifndef lint
static const char RCSid[] = "$Id: glaresrc.c,v 2.6 2006/05/29 16:47:54 greg Exp $";
#endif
/*
* Gather samples and compute glare sources.
*/
#include "glare.h"
#include "linregr.h"
#define vcont(vd,vu) ((vu)-(vd)<=SEPS)
#define hcont(s1,s2) ((s1)->r-(s2)->l>=-SEPS&&(s2)->r-(s1)->l>=-SEPS)
struct sourc... |
/*
* http://stackoverflow.com/questions/11242642/how-to-extract-hours-from-time-t
* */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include "../global.h"
#include "UTILS/dircoms.h"
#include "UTILS/utils.h"
#define DIR_Name 11
#define DIR_Attr 1
#define DIR_NTRes 1
... |
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include <assert.h>
#include "machine.h"
#include "inst.h"
#include "syscall.h"
#include "util.h"
void syscall_string(machine_t *pm, char *str, size_t size, uint8_t id) {
uint16_t word0 = 0;
uint16_t word1 = 0;
switch (id) {
... |
#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... |
// This file is part of the Mongoose project, http://code.google.com/p/mongoose
// It implements an online chat server. For more details,
// see the documentation on the project web site.
// To test the application,
// 1. type "make" in the directory where this file lives
// 2. point your browser to http://127.0.0.1:80... |
// SPDX-License-Identifier: MIT OR BSD-3-Clause
#include "positutil.h"
#include <stdbool.h>
#include <mpfr.h>
#include <gmp.h>
#include <assert.h>
#define POSIT_MKNAME(name) POSIT_GLUE6(posit,POSIT_NBITS,_,name,_,POSIT_IMPL)
#define POSIT_GLUE6(a,b,c,d,e,f) POSIT_GLUE3(POSIT_GLUE4(a,b,c,d),e,f)
#define POSIT_GLUE4(a... |
/*------------------------------------------------------------------*/
/* */
/* MC68000 Cross Assembler */
/* */
/* Copyright 1985 by <NAME> */
/* */
/* Opcode table and scan routine - April 16, 1991 */
/* */
/* This program may be c... |
/* Opal file archiver
* for Unix
* version 2.1
*/
/* pieces section */
#include <errno.h>
/* errno
*/
#include <stdio.h>
/* FILE
* NULL
* EOF
* getchar()
* putchar()
* getc()
* putc()
* fputs()
* printf()
* scanf()
* getline()
* getdelim()
* fopen()
* fclose()
* perror()
*/
#include <stdlib.h>
/... |
/* main.c -- Battlefield: Bad Company 2 .so loader
*
* Copyright (C) 2021 <NAME>, GrapheneCt
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <kernel.h>
#include <kernel/rng.h>
#include <audioout.h>
#include <ctrl.h>
#include <... |
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_int_t is_access_enter;
ngx_int_t is_log_enter;
}ngx_http_limit_req2_req_ctx_t;
typedef struct {
ngx_int_t processnumber;
ngx_int_t pid;
} ngx_http_limit_req2_shctx_buffer;
typedef struct {
ngx_int_t current_s... |
#include "nkrb.h"
#define VALUE_TO_NK(value, varname) \
struct nk_context *varname = NULL; \
Data_Get_Struct(value, struct nk_context, varname);
VALUE cNuklearContext = Qnil;
VALUE cNuklearContextEventSink = Qnil;
void nkrb_context_free(struct nk_context *ctx) {
nk_free(ctx);
free(ctx);
}
struct nk_context... |
/*
<NAME>
Mai 2016
http://bit.ly/maxdan94
<EMAIL>
Info:
Feel free to use these lines as you wish. This program computes an approximation of the density-friendly decomposition.
To compile:
gcc approxDF.c -fopenmp -o approxDF -O9
To execute:
./approxDF nthreads iter net.txt rates.txt pavafit.txt cuts.txt
- nthreads i... |
#include "../libharbol/harbol.h"
#include "../../tagha/tagha.h"
bool tagha_disasm_module(const char filename[restrict static 1])
{
uint8_t *filedata = make_buffer_from_binary(filename);
if( filedata==NULL ) {
fprintf(stderr, "Tagha Disassembler Error: **** Couldn't load Tagha Module file: '%s' ****\n", filename);... |
/*
* Copyright (c) 2015, Cybernetica AS
* 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 co... |
/* mpfr_digamma -- digamma function of a floating-point number
Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
Contributed by the AriC and Caramel 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 th... |
/*
* Copyright 2012 The Weather Channel
*
* 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 ag... |
/*
* FIPS-180-2 compliant SHA-256 implementation
*
* Copyright (C) 2001-2003 <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 you... |
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <memdraw.h>
#include <fcall.h>
#include <9pclient.h>
#include <thread.h>
#include <cursor.h>
#include <mouse.h>
#include <keyboard.h>
#include <frame.h>
#include <plumb.h>
#include <html.h>
#include "dat.h"
#include "fns.h"
void
colinit(Column *c, Rectangle r... |
/*
* Copyrights
*
* All documentation and programs in this release is copyright (c)
* Carnegie Mellon University, The Board of Trustees of the University of
* Illinois, and University Corporation for Atmospheric Research, 2001.
* This software comes with NO WARRANTY.
*
* The kernel changes and addit... |
/*
* linux/drivers/char/tty_ioctl.c
*
* Copyright (C) 1991, 1992, 1993, 1994 <NAME>
*
* Modified by <NAME>, 01/29/93, to add line disciplines
* which can be dynamically activated and de-activated by the line
* discipline handling modules (like SLIP).
*/
#include <linux/types.h>
#include <linux/termios.h>
#i... |
/* пул и майнер, T13.744-T13.895 $DVS:time$ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "system.h"
#... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "udp-server.h"
#include "ipmi-session.h"
#include "ipmi-msg.h"
#include "ipmi-sdr.h"
#include "ipmi-sensor.h"
struct sensor* sensor_tmp;
protocol_data* ipmi_msg_process_packet(protocol_data* packet_inc, ipmi_session_auth* ipmi_sess... |
/* $Id: evsimple.c,v 1.2 2010-05-20 08:18:27 yatch Exp $ */
#if HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#include <sys/time.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#inc... |
/* ChickenOS Intel Pro/1000 Network Card Driver
* Based on a driver by <NAME>
* Found here: http://www.randomaccessit.com/osdev/i825xx.c
*
*/
#include <stdio.h>
#include <mm/liballoc.h>
#include <device/pci.h>
#include <net/net_core.h>
#include <kernel/hw.h>
#include <mm/vm.h>
#include <mm/paging.h>
#include... |
/** @file jack_play_record.c
*
* @brief This client will play or record a multichannel
* audio file within JACK
*/
// "standard" libraries
#include <stdbool.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
// libraries/code that require build... |
/***************************************************************************
sn76496.c
by <NAME>
Routines to emulate the:
Texas Instruments SN76489, SN76489A, SN76494/SN76496
( Also known as, or at least compatible with, the TMS9919.)
and the Sega 'PSG' used on the Master System, Game Gear, and Megadrive/... |
/*
* File: hash_table_simple.c
* Author: <NAME>
* Email: <EMAIL>
* Company: LAAS-CNRS / Vertics
* Created on November 25, 2010, 12:23 PM
*
* LICENSE
*
* MIT License
*
* Copyright LAAS-CNRS / Vertics
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
/*********************************************************************************
* Smith–Waterman algorithm
* Purpose: Local alignment of nucleotide or protein sequences
* Authors: <NAME>, <NAME>, <NAME>
*
* Compilation: gcc omp_smithW.c -o omp_smithW -fopenmp -DDEBUG // debugging mode
* gc... |
/* Helper file for declaring TCG helper functions.
Should be included at the start and end of target-foo/helper.h.
Targets should use DEF_HELPER_N and DEF_HELPER_FLAGS_N to declare helper
functions. Names should be specified without the helper_ prefix, and
the return and argument types specified. 3 basic... |
/* writln.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__1 = 1;
/* $Procedure WRITLN ( Write a text line to a logical unit ) */
/* Subroutine */ int writl... |
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#define import_spp
#define import_libc
#define import_stdio
#define import_setjmp
#define import_knames
#define import_xwhen
#define import_ctype
#include <iraf.h>
#include "config.h"
#include "clmodes.h"
#include "operand.h"
#include... |
/*--------------------------------------------------------------------*/
/*--- Store and compare stack backtraces m_execontext.c ---*/
/*--------------------------------------------------------------------*/
/*
This file is part of Valgrind, a dynamic binary instrumentation
framework.
Copyright (... |
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "disk.h"
#include "ata.h"
#include "scsi.h"
int verbose;
static char short_opts[] = "vqd:p:foh?";
static const struct option long_opts[] = {
{ "verbose", no_argument, NULL, 'v' },
{ "qui... |
/*
* libid3tag - ID3 tag manipulation library
* Copyright (C) 2000-2001 <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... |
/*------------------------------------------------------------------------
* Copyright 2010 (c) <NAME> <<EMAIL>>
*
* This file is part of the ZBar Bar Code Reader.
*
* The ZBar Bar Code Reader is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser Public License as
* ... |
/*
!
! (c) 2019 Guide Star Engineering, LLC
! This Software was developed for the US Nuclear Regulatory Commission (US NRC)
! under contract "Multi-Dimensional Physics Implementation into Fuel Analysis under
! Steady-state and Transients (FAST)", contract # NRC-HQ-60-17-C-0007
!
*/
#include ... |
typedef struct Cachefont Cachefont;
typedef struct Cacheinfo Cacheinfo;
typedef struct Cachesubf Cachesubf;
typedef struct Display Display;
typedef struct Font Font;
typedef struct Fontchar Fontchar;
typedef struct Image Image;
typedef struct Mouse Mouse;
typedef struct Point Point;
typedef struct Rectangle Rectangle;
... |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech-Cycleo
Description:
Minimum test program for the loragw_hal 'library'
Licen... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "sds.h"
#define serverAssert assert
#define zmalloc malloc
#define zfree free
#define HOT_POOL_TYPE 1
#define COLD_POOL_TYPE 2
#define EVPOOL_SIZE 16
#define EVPOOL_CACHED_SDS_SIZE 255
struct evictionPoolEntry {
unsigned lon... |
/*
* Freescale i.MX28 SSP MMC driver
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
* on behalf of DENX Software Engineering GmbH
*
* Based on code from LTIB:
* (C) Copyright 2008-2010 Freescale Semiconductor, Inc.
* Terry Lv
*
* Copyright 2007, Freescale Semiconductor, Inc
* <NAME>
*
* Based vaguely on the pxa m... |
/* Based on ... */
/* fileman.c -- A tiny application which demonstrates how to use the
GNU Readline library. This application interactively allows users
to manipulate files and their modes. */
#include <stdio.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/errno.h>
#include ... |
/*
* Copyright (c) 2013 <NAME>. All rights reserved.
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redist... |
/*
* Copyright (c) 2012-2014 <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 ... |
#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <json-c/json.h>
#include "swaybar/config.h"
#include "swaybar/status_line.h"
#include "log.h"
#include "util.h"
#define I3JSON_MAXDEPTH 4
#define I3JSON_UNKNOWN 0
#define I3JSON_ARRAY 1
#define I3JSON_STRING 2
struct {
in... |
/*
* Copyright 2010 Google Inc.
* Author: <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... |
/**************************************************************************
*
* Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2010 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated docum... |
/*
* Modifications Copyright (c) Microsoft. All rights reserved.
*
* Original code Copyright (c), NXP Semiconductors
*/
#pragma once
#define PHHCINFC_MAX_OPENPIPE 0x6FU
#define PHHCINFC_MAX_PIPE 0x6FU
#define PHHCINFC_MIN_PIPE 0x02U
... |
#include <stdint.h>
#include "usb_lib.h"
#include "hardware.h"
#ifndef NULL
#define NULL ((void*)0)
#endif
#define ZLPP ((void*)1)
//спасибо ST за наркоманскую работу с регистром!
#define ENDP_STAT_RX(num, stat) do{USB_EPx(num) = ((USB_EPx(num) & ~(USB_EP_DTOG_RX | USB_EP_DTOG_TX | USB_EPTX_STAT)) | USB_EP_CTR_RX ... |
/* $OpenBSD: svc_tcp.c,v 1.37 2015/11/01 03:45:29 guenther Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
*
* 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 r... |
/*
* TeamSpeak 3 demo plugin
*
* Copyright (c) 2008-2014 TeamSpeak Systems GmbH
*/
#ifdef _WIN32
#pragma warning (disable : 4100) /* Disable Unreferenced parameter warning */
#include <Windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include "pub... |
/*
* linux/kernel/sched.c
*
* (C) 1991 <NAME>
*/
/*
* 'sched.c' is the main kernel file. It contains scheduling primitives
* (sleep_on, wakeup, schedule etc) as well as a number of simple system
* call functions (type getpid(), which just extracts a field from
* current-task
*/
#include <linux/sched.h>//任务... |
#ifdef COMPILE_FOR_TEST
#include <assert.h>
#define assume(cond) assert(cond)
#endif
void main(int argc, char* argv[]) {
int x_0_0;//main::argc T0
int x_1_0;//t3 T0
int x_2_0;//t2 T0
int x_3_0;//functioncall::param T0
int x_3_1;//functioncall::param T0
int x_4_0;//functioncall::param T0
int x_4_1;//functioncall::param... |
/**
* \file
*
* \brief ATPL230 Physical layer - IIR Filter
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistr... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/****************************************************************************
** Copyright (C) 2020 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"... |
#include "gvDevice.h"
#include "gvCodec.h"
#include "gvSource.h"
#include "gvUtil.h"
#include <audioinput.h>
#if !defined(_PSP)
#error This file should only be used with the PSP
#endif
/************
** DEFINES **
************/
// the number of samples to capture at a time
// is a multiple of 64 and 160
// at 11025hz,... |
#include "limbo.h"
uchar movetab[Mend][Tend] =
{
/* Mas */
{
/* Tnone */ 0,
/* Tadt */ IMOVM,
/* Tadtpick */ IMOVM,
/* Tarray */ IMOVP,
/* Tbig */ IMOVL,
/* Tbyte */ IMOVB,
/* Tchan */ IMOVP,
/* Treal */ IMOVF,
/* Tfn */ 0,
/* Tint */ IMOVW,
/* Tlist */ IMOVP,
/* Tmodule */ IMOVP,
/* Tref *... |
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <errno.h>
#include "server.h"
typedef void (*SOCKET_CALLBACK)(void *);
#define NOTWORK_SOCKET 0
#define READING_SOCKET 1
#define READEND_SOCKET 2
#define WRITING_SOCKET 4
#define WRITEEND_SOCKET 8
#d... |
/*
* Ancient UNIX File Systems for MacFUSE
* <NAME>
* http://osxbook.com
*/
#include "ancientfs_tap.h"
#include "unixfs_common.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
DECL_UNIXFS("UNIX tap... |
/*
* File: main.c
*
* Arquivo principal do aplicativo gramtext.
* O aplicativo é usado para testes do sistema operacional Gramado 0.4
*
## todo:
pegar algumas funções do shell e usar aqui.
agora eles usam o mesmo esquema de strutura de linhas para o texto.
* 2018 - Created by <NAME>.
*/
#include "gr... |
/* radio.c
* Copyright (c) 2019 <NAME>
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
#include <stdio.h>
#include... |
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2000-2004, <NAME> <<EMAIL>,
* <NAME> <<EMAIL>>,
* oddsock <<EMAIL>>,
* <NAME> <<EMAIL>>... |
/* EXAMPLES\NONSYM\sndrv1.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 nonsymmetric eigenvalue problem.
*
* We implement example one of ex-nonsym.doc in DOCUM... |
/***************************************************************************
-= Afega Games =-
driver by <NAME> (<EMAIL>)
Note: if MAME_DEBUG is defined, pressing Z with:
Q / W Shows Layer 0 / 1
A Shows Sprites
K... |
/*
* Copyright (C) 1999-2001 <NAME> All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, cop... |
////////////////////////////////////////////////////////
// Code for loading and manipulating QAP-level
// structures (e.g., proofs, commitments, and keys)
////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
// The three QAP-related structs
////... |
#include "types.h"
#include "stat.h"
#include "defs.h"
#include "param.h"
#include "traps.h"
#include "spinlock.h"
#include "fs.h"
#include "file.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#define MAX_NUM_PROCESSES 50
#define INUM_CWD 2
#define INUM_FDINFO 3
#define INUM_STATUS 4
s... |
/*
protocol.c - controls Grbl execution protocol and procedures
Part of Grbl
Copyright (c) 2011-2015 <NAME>
Copyright (c) 2009-2011 <NAME>
Grbl 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, e... |
/*
* Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... |
/*
* File: hcc4_4.c
* V. Pilipchuk/586-986-4603
* Abstract: includes minimization of control temporal rates
* Date: March/2010
*
*
* The outputs are
* y[0] = dQ(1)
* y[1] = dQ(2)
* y[2] = dQ(3)
* y[3] = dQ(4)
*
* See matlabroot/simulink/src/sfuntmpl_doc.c for more details
*/
#d... |
/*
* Kangaroo_Driver_Lib.c
*
* Created on: Feb 27, 2016
* Author: Yuqi (<NAME> and <NAME>
*/
#include "Kangaroo_Driver_Lib.h"
/* This function should be called at the initialization of the setup.
* This configures the Intel Edison to communicate with sabertooth through uart (8N1, BAUDRATE baud).
* Return... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/signal.h>
#include <sys/types.h>
#include <errno.h>
#include <pwd.h>
#include <fcntl.h>
//#include <iostream>
//#include <fstream>
#define BUF_SZ 256
#define TRUE 1
#define FALSE 0
#define COPY_MODE 0644... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.