text stringlengths 3.08k 10.5k |
|---|
/**
******************************************************************************
* @file stm32l4xx_it.c
* @brief Interrupt Service Routines.
******************************************************************************
*
* COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistribution and use in source... |
/*
* Copyright (c)2013-2021, <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... |
//Map keyboard codes to HID keycodes
//See here for list https://www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardmodifiers/
int layer = 0; //Change to your desired layer for a key event
//This is a hack and can get out of sync with the PC but it works fine
//See here for how to patch KB lib ... |
/*
* main.c
*
* this is the skeleton for task 2
*
* author: Dr. <NAME>
* date: 04/09/2018
* purpose: 55-604481 embedded computer networks : lab 102
*/
// include the c standard io functions
#include <stdio.h>
// include the basic headers and hal drivers
#include "stm32f7xx_hal.h"
// include the shu... |
/**
*
* Author: <NAME>, <NAME>
* Email : <EMAIL>,
* <EMAIL>
*
* Date : 28.05.2021
*
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <arpa/inet.h>
#d... |
/* Part of publib.
Copyright (c) 1994-2006 <NAME>. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this l... |
/* PaintDream Open Document */
#pragma once
#ifndef __STD_TYPES__
#define __STD_TYPES__
#ifdef _MSC_VER
#if (_MSC_VER <= 1200)
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;
#else
#include <stdint.h>
#endif
#else
#include <stdint.h>
#endif
#endif
#def... |
#define AG_FRANGE_MAX 5000.
#define AG_FRANGE_MIN 0.01
#define AG_MAKEP 61 // odd number!!!
#define AG_DIGITS 6
#define AG_CURVNUM 4
#define SPUR_WIDTH (SPUR_SIZE-1)
#define STON_YFAC 5*text_height
#define MAX_BASEBFILTER_WIDTH 0.85F
extern int yieldflag_ndsp_mix1;
extern int freq_readout_x1;
extern int freq_readout... |
#include "stringmap.h"
#include "ml_macros.h"
#include <gc.h>
#include <string.h>
#define new(T) ((T *)GC_MALLOC(sizeof(T)))
struct stringmap_node_t {
stringmap_node_t *Left, *Right;
const char *Key;
void *Value;
long Hash;
int Depth;
};
stringmap_t *stringmap_new() {
return new(stringmap_t);
}
unsigned long ... |
/*****************************************************************************
* FILE NAME:
* mim_server_client_request.c
* DESCRIPTION:
* 实现.h文件中的相关请求的处理函数
* AUTHOR:
* <NAME> (<EMAIL>)
* CREATED DATE:
* 2017-05-26 14:39:04
* MODIFICATION HISTORY:
* --------------------------------------
... |
/*
* Sample Camera Shield API code
*
* Function:
* This method will show an example of using methods from the Camera
* Shield API.
*/
#include "Camera.h"
#include "Accelerometer.h"
#include "Joystick.h"
#include "Servo.h"
#include "SevenSegs.h"
//Main method runs the program
int main() {
//Shows user a help me... |
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License ve... |
/* Copyright (c) 2020 tevador <<EMAIL>> */
/* See LICENSE for licensing information */
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <equix.h>
#include <test_utils.h>
#include <hashx_thread.h>
#include <hashx_time.h>
typedef struct solver_output {
equix_solution sols[EQUIX_... |
/* crypto/ringlwe/ringlwe_err.c */
/* ====================================================================
* Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <string.h>
#include <x86intrin.h>
#include "sse_harley_seal_hamming_weight.h"
static inline __attribute__((always_inline)) __m128i popcount(__m128i v) {
const __m128i lookup = _mm_setr_epi8(
/* 0 */ 0, /* 1 */ 1, /* 2... |
/**
* Program which removes edges from a graph, based on a given criteria.
*
* This program creates a new graph from an input graph, removing edges based
* on one of the following criteria:
* - path-sharing
* - edge-betweenness
*
* Author: <NAME> <<EMAIL>>
*/
#include <inttypes.h>
#include <stdint.h>
#incl... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*****************************************************************************
* Copyright 2020-2021 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://ww... |
/**
* VOTHANDLE.C -- (Private) Methods to manage interface handles.
*
* @file votHandle.c
* @author <NAME> and <NAME>
* @date 8/03/09
*
* @brief (Private) Methods to manage interface handles.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "votParseP.h"
static... |
/*
* This program finds the longest common prefix string for an array or list
* of strings. For more iformation on the problem, please refer to the
* following link:- http://www.geeksforgeeks.org/longest-common-prefix-set-1-word-by-word-matching/
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<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... |
#include "keyboard.h"
void keyboard_handler(struct regs *r) {
/* KBDUS means US Keyboard Layout. This is a scancode table
* used to layout a standard US keyboard. I have left some
* comments in to give you an idea of what key is what, even
* though I set it's array index to 0. You can change th... |
/*
* 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... |
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <fcntl.h>
//#include <signal.h>
//#include <sys/epoll.h>
//#include <sys/ioctl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#incl... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <pthread.h>
#include <sched.h>
#include <emmintrin.h>
#include "q3.h"
//#include "q.h"
//#include "qlock.h"
static struct msg *msgs;
static int *msg_flags;
#define POP_CNT 7
#define PUSH_CNT 7
#define MSG_CNT (PUSH_... |
/* $OpenBSD: parser.c,v 1.19 2011/04/13 20:53:18 gilles Exp $ */
/*
* Copyright (c) 2006 <NAME> <<EMAIL>>
* Copyright (c) 2004 <NAME> <<EMAIL>>
* Copyright (c) 2003, 2004 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, pr... |
/* regChromiaMergeWindows - Merge adjacent identically labeled windows in BED file generated by
* Chromia.. */
/* Copyright (C) 2011 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"
#includ... |
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1996 - 1999
//
// File: drainst.c
//
//--------------------------------------------------------------------------
#include <NTDSpch.h>
#pragma hdrstop
/... |
/*
* Copyright 2020 Makani Technologies LLC
*
* 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 ... |
/*
** Copyright (c) 2018, <NAME>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
**
** 1. Redistributions of source code must retain the above copyright
** notice, this list of c... |
//%LICENSE////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015 <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>)
//
// Distributed under the MIT License (See accompanying file LICENSE)
//
//////////////////////////////////////////////////////////////////////////
//
//%////////////////////... |
/*D************************************************************
* Modul: GRAPHIC gchange.c
*
* Wrapping of graphic, checks type of mode
* Show, book or input(draw)
* Enable/disable some menu accesses
* create graphic objects
*
* Copyright: yafra.org, Basel, Switzerland
*****************... |
// Intel Utility Functions
/*
* defines
*/
#define INTEL_IDX_INST_IN_FPMU 0
#define INTEL_IDX_CLK_IN_FPMU 2
/*
* REFERENCE CPU MODEL:
* Intel Xeon E5620 (family_cpuid: 06_1CH)
* Architectural Performance Monitoring Version: 3
* Number of general-purpose performance counters: 4
*
*/
#define INTEL_NUM_... |
#define _IS_TEMPLATE
#include "libchaste/include/chaste.h"
#include <libchaste/include/parsing/numeric_parser.h>
#include "fileio/fileio_mmap.h"
#include "datastructs/wildcherry_types.h"
#include <stdio.h>
#include <stdlib.h>
#define COL(i) ( row->off(row, i) )
#define COLI(i) ( row->off(row, i)->integer )
#define C... |
/* ///////////////////////////////////////////////////////////////////// */
/*!
\file
\brief File parser utilities.
This file provides a set of useful functions to open / read and
parse the content of a parameter file (typically pluto.ini).
The parameter file can contain a number of lines
with the gener... |
#include <date.h>
#include <iFlyAuth.h>
#include <EIHttpClient.h>
#include <EILog.h>
#include <cstring.h>
#include <cJSON_user_define.h>
#include <base64.h>
#include <urlencode.h>
#include "FaceCompare.h"
static const char REQUEST_PARAM[] = "{\"header\":{\"app_id\":\"%s\",\"status\":3},\"parameter\":{\"s67c9c78c\":{\"... |
/* This file contains code for initialization of protected mode, to initialize
* code and data segment descriptors, and to initialize global descriptors
* for local descriptors in the process table.
*/
#include <assert.h>
#include <string.h>
#include <machine/multiboot.h>
#include "kernel/kernel.h"
#include "arc... |
/*
* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
#include <misc/printk.h>
#include <logging/sys_log.h>
#include <uart.h>
#ifdef __BEAR_SOC_H_
#include <uart_bear.h>
#endif
#include "formats.h" // au_header
#include "sbc.h" // declare sbc_decode function
#define CMD_SEND_CHUNK 0x01
#define CMD_RECEIVE_CHUNK 0x02
#define CMD_BREAK_OFF ... |
#include <stdint.h>
#include <string.h>
#include "cmsis_os.h"
#include <stdio.h>
#include "common.h"
#include "stm32f1xx_hal.h"
#define ITM_Port8(n) (*((volatile unsigned char *)(0xE0000000+4*n)))
#define ITM_Port16(n) (*((volatile unsigned short*)(0xE0000000+4*n)))
#define ITM_Port32(n) (*((volatile unsigned l... |
/*******************************************************************************
* Shell Interpreter - Source file
*
* @author <NAME> <<EMAIL>>
*
* @copyright (c) 2014 HES-SO/EIA-FR/TIC/T2a Groupe E
*
* @version 1.0.0
* @date 2014-06-01
**************************************************************************... |
/****************************************************************
Copyright (C) 2015 <NAME>. All rights reserved.
> File Name: < uart.c >
> Author: < <NAME> >
> Mail: < <EMAIL> >
> Created Time: < 2015/09/27 >
> Last Changed: < 2015/0... |
#include "defines.h"
#include "encoding.h"
#include "serial.h"
#define SERIAL_DEV_NUM 1
#define TinyLance_UART_0 ((volatile struct tinylance_uart *) 0x10013000)
/**
* UART制御レジスタ構造体
*
* 割込みは、送信用FIFOのエントリ数がtxcntより小さい時、
* または、受信用FIFOのエントリ数がrxcntより大きい時に起きる。
*/
struct tinylance_uart {
volatile uint32_t txdata; /* ... |
/*
* pcap-exo.c
*
*/
#include <xio/xio_net_wrap.h>
#include <xok/sysinfo.h>
#include <exos/cap.h>
#include <exos/process.h>
#include <exos/vm-layout.h>
#include <exos/net/if.h>
#include <xok/bitvector.h>
#include <sys/param.h>
#include <sys/time.h>
#include <assert.h>
#include <errno.h>
#include <malloc.h>
#in... |
/* e_hw_pmm_err.c
*
* this file was manually edited from the original: e_nuron_err.c
*/
/* ====================================================================
* Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
// Warning: Visual Studio only supports C89. That means that all of your
// variables must be declared before anything else at the top of a function.
#include <Python.h>
// I think this means we're using the 1.13 API
// http://docs.scipy.org/doc/numpy/reference/c-api.deprecations.html
#define NPY_NO_DEPRECATED_API NPY_... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... |
#include <irq.h>
#include <idt.h>
#include <keyboard.h>
#include <system.h>
#include <virtualterminal.h>
/* These are own ISRs that point to our special IRQ handler
* instead of the regular 'fault_handler' function */
extern void irq0();
extern void irq1();
extern void irq2();
extern void irq3();
extern void irq4();... |
/*----------------------------------------------------------------------------
* File: ooaofooa_SPR_REP_class.c
*
* Class: Required Executable Property (SPR_REP)
* Component: ooaofooa
*
* your copyright statement can go here (from te_copyright.body)
*---------------------------------------------... |
//
// File.c
// BraveRocket
//
// Created by <NAME> on 3/7/14.
// Copyright (c) 2014 <NAME>. See Licence.
//
#include <stdio.h>
#include "GVector2D.h"
#include "math.h"
GVector2D GVector2DMake(float iComp, float jComp) {
GVector2D v;
v.i = iComp;
v.j = jComp;
v.k = 0;
return v;
}
/*
museum... |
#include "analog.h"
#include <driver/adc.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <driver/gpio.h>
#include <esp_err.h>
#include "esp_adc_cal.h"
/*Note: Different ESP32 modules may have different reference voltages varying from
* 1000mV to 1200mV. Use #define GET_VREF to route v_ref to a G... |
#include <stdint.h>
#include "bch.h"
uint32_t bch_encode(const uint32_t cw)
{
uint32_t bit = 0;
uint32_t parity = 0;
uint32_t local_cw = cw & 0xFFFFF800; // mask off BCH parity and even parity
uint32_t cw_e = local_cw;
// Calculate BCH bits
for (bit = 1; bit <= 21; bit++) {
if (cw_e & 0x80000000) {
cw_e ^=... |
/*****************************************************************************
* File Name: main.c
*
* Version: 1.50
*
* Description:
* This code example demonstrates the use of an SCB-based SPI master Component.
* The SCB SPI master communicates with a SCB-based SPI slave
* which is located on another PSoC kit. The... |
#include <sys/types.h>
#include <string.h>
#include "core.h"
#include "macros.h"
static const char* BEAUGESTE_DIRECTION_NAMES[] = {
"east",
"north-east",
"north",
"north-west",
"west",
"south-west",
"south",
"south-east",
NULL,
};
// Interface calls.
static int open_restricted(con... |
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 2007-8 The R Foundation
*
* 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, ... |
/* Copyright (C) 2011, 2012, 2013 The uOFW team
See the file COPYING for copying permission.
*/
#include <common_imp.h>
#include <sysmem_kernel.h>
#include <sysmem_sysclib.h>
#include <sysmem_utils_kernel.h>
#include "gamePatching.h"
#include "libcUtils.h"
#define IS_JUMP(op) (((op) & 0xFC000000) ==... |
#include <math.h>
#include <string.h>
#include "t_evstrat.h"
static void t_evolve_strats_jitter(struct e_trainer *trainer, struct n_network *net) {
struct t_state_evolve_strats *state = trainer->state;
for (struct pl_iter li = pl_iterate(&net->layers, 0, -1); pl_iter_has(&li); pl_next(&li)) {
struct... |
/* $NetBSD: gscbus.c,v 1.9 2003/11/20 03:58:47 chs Exp $ */
/* $OpenBSD: gscbus.c,v 1.13 2001/08/01 20:32:04 miod Exp $ */
/*
* Copyright (c) 1998 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
// Copyright 2017 Vidrio Technologies
// by <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
#include ".... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "NBestList2.h"
#include "scoreText.h"
float monogram[] = {-2.45904, -4.13217, -3.4532, -3.25161, -2.11225, -3.82515, -3.86976, -3.00463, -2.61386, -6.1203, -4.8175, -3.16855, -3.67841, -2.63496, -2.59464, -3.87948, -6.8683, -2.75944, -2.69886, -2.4148... |
/*
* Copyright (c) 2013, 2015 Jonas '<NAME>.
*
* 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 D... |
#include "filebuffer.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#ifdef CHAOS__FLAG
char* alphabet = "ATCGNPCMHDEKRQSILVFYWX*";
#else
char* alphabet = "ATCGN-.";
#endif
FileBuffer FileOpen (const char *path){
FileBuffer buf;
FILE *data = fopen (path, "r");
if (!data) return... |
/*
* qstat
* by <NAME>
*
* Cube 2 / Sauerbraten protocol
* Copyright 2011 NoisyB
*
* Licensed under the Artistic License, see LICENSE.txt for license terms
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "debug.h"
#include "qstat.h"
#include "packet_manip.h"
struct offset {
unsigned ch... |
#include "THC.h"
#include "THFile.h"
#include "luaT.h"
static const void *torch_File_id = NULL;
static const void *torch_ByteStorage_id = NULL;
static const void *torch_CharStorage_id = NULL;
static const void *torch_ShortStorage_id = NULL;
static const void *torch_IntStorage_id = NULL;
static const void *torch_LongSt... |
/* COPYRIGHT C 1991- <NAME> */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "ad_defs.h"
#include "ad_fileio.h"
#include "ad_readinput.h"
/* initialize cells array */
void init_cells(int nocells, cells_t cells[])
{
for (int i = 0; i < nocells; i++) {
cells[i].cno... |
/* File written 2020 by <NAME> */
#include <pic32mx.h>
#include <stdint.h>
#include <stdlib.h>
#include "labresources.h"
#include "n2p.h"
#define DISPLAY_CHANGE_TO_COMMAND_MODE (PORTFCLR = 0x10)
#define DISPLAY_CHANGE_TO_DATA_MODE (PORTFSET = 0x10)
uint8_t displaybuffer[4][128];
uint32_t road[8];
uint32_t car_slid... |
/*
* Copyright (c) 1990 <NAME>
* Copyright (c) 1990 Imperial College of Science, Technology & Medicine
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> at Imperial College, London.
*
* Redi... |
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995, 1996 <NAME> and <NAME>
* Copyright (C) 1997--2014 The R Core Team
* Copyright (C) 2002--2011 The R Foundation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General ... |
#include <time.h>
#include <re.h>
#include <rem.h>
#include <baresip.h>
#include "share/compat.h"
#include "FLAC/metadata.h"
#include "FLAC/stream_encoder.h"
#include <pthread.h>
#if defined (WIN32)
#include <windows.h>
#include <shlobj.h>
#include <direct.h>
#include <lmaccess.h>
#define DIR_SEP "\\"
#else
#define DI... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "psyrender.h"
#define ZOOM_FACTOR 3
Renderer* renderer;
Canvas_Mem* canvas;
Camera* camera = NULL;
Scene* scene;
void reset_view() {
if (camera) {
Camera_... |
/***************************************************************************
* CVSID: $Id$
*
* logger.c : Logging
*
* Copyright (C) 2003 <NAME>, <<EMAIL>>
* Copyright (C) 2006 <NAME>, <<EMAIL>>
*
* Licensed under the Academic Free License version 2.1
*
* This program is free software; you can redistribute it... |
#include "pcCom.h"
pthread_mutex_t messageMutex = PTHREAD_MUTEX_INITIALIZER;
char * msgSend, * msgRcv;
char beaconsLocation[NUMBER_BEACONS][20];
void initBeaconsLocation(char beacon[NUMBER_BEACONS][20], int size) {
// This is hard coded
// We could reuse functions in the shortest_path folder (map_common.h... |
/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
globals.h global data for LDAP client DLL
Abstract:
This module contains data declarations necessary for LDAP client DLL.
Author:
<NAME> (andyhe) 08-May-1996
<NAME> (AnoopA) 24-Jun-1998
Revision Histor... |
#include <avr/io.h>
#include <avr/interrupt.h>
#include "vsense.h"
#include "diag.h"
#include "state.h"
#include "radio.h"
vsense_state_t vsense_state;
#ifdef __AVR_ATtiny1617__
#define ADC_VSENSE ADC1
#else
#define ADC_VSENSE ADC0
#endif
static void vsense_hw_init()
{
// NB: input voltage to mcu should be 3.3... |
/*
* iLBC - a library for the iLBC codec
*
* LPCdecode.c - The iLBC low bit rate speech codec.
*
* Adapted by <NAME> <<EMAIL>> from the reference
* iLBC code supplied in RFC3951.
*
* Original code Copyright (C) The Internet Society (2004).
* All changes to produce this version Copyright (C) 2008 by <NAME>
* A... |
/**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the ... |
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> of Menlo Consulting.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
/* ----------------------------------------------------------------------- *
*
* Copyright 1996-2009 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
* Redistribution and use in source and binary forms, with or withou... |
#include "jl_runner.h"
#include "jl_limit.h"
#include "jl_memory.h"
#include "jl_rules.h"
#include <Python.h>
#include <fcntl.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/resource.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/user.h>
#include <sys/wait.h>
#inclu... |
/*
* Part of `snmp-query-engine`.
*
* Copyright 2012-2013, <NAME> <<EMAIL>>
* Modified BSD license.
* (See LICENSE file in the distribution.)
*
*/
#include "sqe.h"
struct timeval prog_start;
static JudyL timers = NULL;
struct timer *
new_timer(struct timeval *when)
{
void **sec_slot;
struct timer **usec_slot... |
/// MentOS, The Mentoring Operating system project
/// @file mouse.c
/// @brief Driver for *PS2* Mouses.
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
/// See LICENSE.md for details.is distributed under the MIT License.
/// @addtogroup mouse
/// @{
#include "drivers/mouse... |
/* Processed by ecpg (regression mode) */
/* These include files are added by the preprocessor */
#include <ecpgtype.h>
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
/* End of automatic include section */
#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
#line 1 "define.pgc"
#include <stdlib.h>
#include <... |
/*
* Copyright (c) 2013 Nordic Semiconductor ASA
* 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 ... |
/* Copyright (c) 2019-2022 <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, d... |
/*
* Copyright (C) 2000-2003, Axis Communications AB.
*/
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/errno.h>
#include <linux/ptrace.h>
#include <linux/user.h>
#include <linux/signal.h>
#include <linux/security.h>
#include <asm/uaccess.h>
#include ... |
/*!
* \file spi-board.c
*
* \brief Target board SPI driver implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ ___... |
/**
******************************************************************************
* @file us_ticker_api.h
* @brief Implementation of a Timer driver
* @internal
* @author ON Semiconductor
* $Rev: $
* $Date: 2015-11-15 $
******************************************************************************
* @copyrigh... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/**
* @copyright 2013 Couchbase, Inc.
*
* @author <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the ... |
/*
* This software was written by <NAME> jfoug AT cox dot net
* in 2009-2012. No copyright is claimed, and the software is hereby
* placed in the public domain. In case this attempt to disclaim
* copyright and place the software in the public domain is deemed
* null and void, then the software is Copyright (c) 200... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2016, NVIDIA CORPORATION
*/
#include <common.h>
#include <environment.h>
#include <fdtdec.h>
#include <i2c.h>
#include <linux/libfdt.h>
#include <asm/arch-tegra/cboot.h>
#include "../p2571/max77620_init.h"
void pin_mux_mmc(void)
{
struct udevice *dev;
uchar v... |
#pragma once
#include "lpg_checked_function.h"
#include "lpg_function_id.h"
#include "lpg_garbage_collector.h"
#include "lpg_generic_enum_id.h"
#include "lpg_generic_interface_id.h"
#include "lpg_generic_lambda_id.h"
#include "lpg_generic_struct_id.h"
#include "lpg_integer.h"
#include "lpg_type.h"
typedef struct imple... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <limits.h>
#define MAX_NUM_LEN 12
#define HOTSTREAK 3
#define MAX_WINS 16
#define ONE_BILLION 1000000000
#define ROULETTE_SIZE 36
#define ROULETTE_SPINS 128
#define ROULETTE_SLOWS 16
#define NUM_WIN_MSGS 10
#defin... |
/*****************************************************************************/
/* */
/* cfgexpr.c */
/* */
... |
/*
* Copyright 2011-2012, The TenDRA Project.
* Copyright 1997, United Kingdom Secretary of State for Defence.
*
* See doc/copyright/ for the full copyright terms.
*/
#include <stddef.h>
#include <shared/bool.h>
#include <shared/check.h>
#include <tdf/tag.h>
#include <reader/exp.h>
#include <construct/exp.h>
... |
/**********************************************************************
Copyright(c) 2011-2015 Intel Corporation All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source c... |
/*
* Copyright 2003, <NAME>
*
* Simplified interface to Tcl_TraceVariable.
*
* PROBLEM: Can't distinguish "variable does not exist" (which is OK)
* from other errors (which are not).
*/
#include "tkInt.h"
#include "ttkTheme.h"
#include "ttkWidget.h"
struct TtkTraceHandle_
{
Tcl_Interp *interp; /* Containi... |
#include <lua5.3/lua.h>
#include <lua5.3/lualib.h>
#include <lua5.3/lauxlib.h>
#include <string.h>
#include <stdlib.h>
#include "dsl.h"
#include "port.h"
#include "dsl-manager.h"
#include "dsl-lua.h"
#include "ds-state.h"
#include "gff.h"
#include "gfftypes.h"
static char** mas_scripts = NULL;
static char** gpl_script... |
/*
* GIT - the stupid content tracker
*
* Copyright (c) <NAME>, 2006, 2009
*/
#include "builtin.h"
#include "quote.h"
#include "tree.h"
#include "parse-options.h"
static struct treeent {
unsigned mode;
unsigned char sha1[20];
int len;
char name[FLEX_ARRAY];
} **entries;
static int alloc, used;
static void app... |
/*
TiMidity -- Experimental MIDI to WAVE converter
Copyright (C) 1995 <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.