text stringlengths 3.12k 18.7k |
|---|
/**
* @file is31fl3236.c
* @brief driver implementation for is31fl3236
*/
#include <string.h>
#include "is31fl3236.h"
#include "rgb_common.h"
#include "i2c.h"
#include "wait.h"
#include "amk_printf.h"
#ifndef FL3236_DEBUG
#define FL3236_DEBUG 0
#endif
#if FL3236_DEBUG
#define fl3236_debug amk_printf
#else
#defin... |
#include <stddef.h>
typedef struct __tpool_future *tpool_future_t;
typedef struct __threadpool *tpool_t;
/**
* Create a thread pool containing specified number of threads.
* If successful, the thread pool is returned. Otherwise, it
* returns NULL.
*/
tpool_t tpool_create(size_t count);
/**
* Schedules the speci... |
/*
* SysDB - src/plugins/backend/store/network.c
* Copyright (C) 2015 Sebastian 'tokkee' Harl <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source cod... |
/**
* @author <NAME>
* ECE 1166
* OpenMP Conway's Game of Life
* February 18, 2019
*
* Purpose:
* The game of life! A file is provided by the user,
* a square grid of o's and x's, symbolizing an initial
* grid of either a live or a dead cell. The rules
* of the game are that a live cell ha... |
/*-
* Copyright (c) 2014 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
#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 <stdio.h>
#include <assert.h>
/**
* Program načte ze vstupu 4 celá čísla ve formátu:
* n d/m/y
* d - den
* m - měsíc
* r - rok
* n - číslo dne v týdnu, kterým daný rok začíná (0 - 6 ~ pondělí - neděle)
*
* Na výstup zobrazí pro dané datum např.
* patek 20. brezen 2016 (14)
* ^
* den v tydnu ... |
/* annoStreamDbPslPlus -- subclass of annoStreamer for joining PSL+CDS+seq database tables */
/* Copyright (C) 2017 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "annoStreamDbPslPlus.h"
#include "annoStreamDb.h"
#include "hdb.h"
static c... |
/**********************************************************//**
* @file field.c
* @brief Implementation of an agent-agnostic battleship field.
* @author <NAME>
* @date April 28, 2016
**************************************************************/
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#inclu... |
/*
* ir_decode.c
*
* Author: <NAME>
*/
#include <stdio.h>
#include "stm32f10x_conf.h"
#include "ir_decode.h"
#include "delay.h"
#include "queue.h"
#include "nec_decode.h"
#include "mp6090r.h"
volatile static uint16_t captCount=0;
volatile uint8_t recState=0;
volatile static IR_PACKET ir_packet;
static uint8_t ... |
#ifdef __unix__
#define _POSIX_C_SOURCE 200112L
#endif
/* ######################### includes ############################################################################### */
#include <math.h>
#include "args_int.h"
#include "interaction_int.h"
#include "plot_int.h"
/* ######################### public implementati... |
// SPDX-License-Identifier: BSD-2-Clause
/* Copyright (c) 2021 Facebook */
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdint.h>
#include "addr2line.h"
extern char __bina... |
/* $Id: huberror.c,v 1.1.1.4 2003/10/14 08:07:23 sparq Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1992 - 1997, 2000-2002 Silicon Graphics, Inc. All rights reserv... |
#include "MSPd.h"
#define MAX_CHANS (64)
#define CS_LINEAR (0)
#define CS_POWER (1)
static t_class *clean_selector_class;
typedef struct _clean_selector
{
t_object x_obj;
float x_f;
// Variables Here
short input_chans;
short active_chan;
short last_chan;
int samps_to_fade;
int fadesamps;
float fad... |
/*
* Copyright [2021] JD.com, 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 in wri... |
/* See LICENSE file for copyright and license details. */
/* © 2010 joten <<EMAIL>> */
/* function declarations */
static void mirrorlayout(const Arg *arg);
static void rotatelayoutaxis(const Arg *arg);
static void shiftmastersplit(const Arg *arg);
void
mirrorlayout(const Arg *arg) {
if(!selmon->vs->lt[selmon->vs->c... |
#include "interpreter.h"
#include <stddef.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "numbers.h"
#include "random.h"
void init_interpreter(interpreter_state *state, const char *text, size_t text_len) {
state->text = text;
state->text_len = text_l... |
/* Auxiliary routines for the ecm library.
Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2011 <NAME>,
<NAME>.
This file is part of the ECM Library.
The ECM Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free ... |
/* $NetBSD: ent_setup.c,v 1.1.1.2 2014/04/24 12:45:48 pettai Exp $ */
/*
* Copyright (c) 1997 - 2000 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Portions Copyright (c) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or ... |
/*
3 languages, eciNewEx eci+nve
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <iconv.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include "eci.h"
... |
/******************************************************************//**
*functions
*<utilities>
*void dumpio_ednchg : endian changer
*void dumpio_mk_fname : filename generator
*void dumpio_set_str, dumpio_trim_str : string preprocess
*int32_t ... |
/* vi: set sw=4 ts=4: */
/*
File: dns.c
Copyright (C) 1999 by <NAME> <<EMAIL>>
This source 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, or (at your option)
any l... |
#include "fsl_spi_master_driver.h"
#define min(x,y) ((x) < (y) ? (x) : (y))
#define USED(x) (void)(x)
typedef enum
{
kWarpTypeMaskTemperature = (1 << 0),
kWarpTypeMaskPressure = (1 << 1),
kWarpTypeMaskHumidity = (1 << 2),
kWarpTypeMaskC02Concentration = (1 << 3)... |
/*-
* Copyright (c) 2011 <NAME>
* Copyright (c) 2009 <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
* noti... |
#include "Python.h"
#include "opcode.h"
#include "extra/typeannotations.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
static FILE* fh = NULL;
/*
* Memory Management Notes:
*
* PyList_SetItem: borrows the reference
* PyList_Append: creates a new reference
* PyDict_GetItemS... |
#include <arpa/inet.h>
#include <fcntl.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <net/if.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <sys/... |
/* *
* DO NOT EDIT THIS FILE *
* */
/*
* IntegerLab (c) 2018-21 <NAME>
*/
/******************************************************************************
* This program takes one command-line input to indicate whether the arithmetic
* should be treated as signed or un... |
#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... |
// 13 october 2015
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "ui.h"
#pragma comment(lib,"ui")
uiWindow *mainwin;
uiArea *histogram;
uiAreaHandler handler;
uiSpinbox *datapoints[10];
uiColorButton *colorButton;
int currentPoint = -1;
// some metrics
#define xoffLeft 20 /*... |
#include <string.h>
#include "stm32f1xx_hal.h"
#include "mgmt_hw.h"
#include "app.h"
#define ADC_CHS (5)
/* buttons pins */
#define BTNX_GPIO_Port GPIOB
#define BTN1_Pin GPIO_PIN_0
#define BTN2_Pin GPIO_PIN_1
/* output pins */
#define LED_Pin GPIO_PIN_13
#define LED_GPIO_Port GPIOC
#define LDOUT_Pin GPIO_PIN_8... |
/**
@file
minimum - output the minimum of a group of numbers
updated 3/22/09 ajm: new API
@ingroup examples
*/
#include "ext.h"
#include "ext_obex.h"
#include "ext_systhread.h"
typedef struct minimum
{
struct object m_ob;
t_atom *m_args;
long m_count;
short m_incount;
short m_outtype;
void *m_out2;
void... |
/*******************************************************************************
* Copyright (c) 2019 Perspecta Labs Inc - All Rights Reserved.
* Proprietary and confidential. Unauthorized copy or use of this file, via
* any medium or mechanism is strictly prohibited.
**********************************************... |
/** FILE: util.c *********** Module Header ********************************
*
* System applet utility library routines. This file contains string,
* cursor, SendWinIniChange() and Memory allocation routines.
*
* History:
* 15:30 on Thur 25 Apr 1991 -by- <NAME> [stevecat]
* Took base code fr... |
/*
* jmemdatadest.c
*
* Created 2011 by <NAME> from jdatadst.c, which is:
*
*
* Copyright (C) 1994-1996, <NAME>.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains compression data destination routines... |
/* =====[ ascrypt.c ]=========================================================
Description: Encryption excamples. Feasability study for diba
[Digital Bank].
Revisions:
REV DATE BY DESCRIPTION
---- ----------- ---------- ------------------... |
#include "methods.h"
// Global variables.
int speed_2 = 3;
// This is the turbo loader in MZF format.
byte program[300] = {
0x01, // Program type.
0x0d, 0x0d, 0x0d, 0x0d, 0x0d, // Room for the
0x0d, 0x0d, 0x0d, 0x0d, 0x0d, ... |
/* tap_export_pdu.c
* Routines for exporting PDUs to file
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <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 Fo... |
#include <stdlib.h>
#include <stdio.h>
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
#ifndef PRId64
#define PRId64 "lld"
#define PRIu64 "llu"
#define PRIx64 "llx"
#endif
static int64_t lls[] = {
123ULL, -1LL, -14LL, 14, 1ULL << 63, 0
};
int
main(int argc, char** argv)
{
i... |
/*
Copyright (c) 2012, Broadcom Europe 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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and t... |
/*-
* Copyright (c) 2020 <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 conditions and... |
#include <stdio.h>
#include <stdlib.h>
#include <allegro.h>
#include <winalleg.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include "objects.h"
#include "monster.h"
#include "champions.h"
#include "global_data.h"
#include "uproto.h"
#include "compile.h"
#include "arch.h"
#include "editor_hwndptr.h"
#in... |
/*
sshunixconfig.c
Authors:
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
Copyright (C) 1997-1998 SSH Communications Security Oy, Espoo, Finland
All rights reserved.
Processing configuration data in SSH (both client and server).
*/
#include "ssh2includes... |
/*
* Copyright (C) 2017 hatkirby
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "serialize.h"
#include "gamedata.h"
#include "link.h"
#include "basestats.h"
#include "exptables.h"
#include "dexorder.h"
#include "blake2.h"
u32 ... |
#include "kademlia.h"
#include <stdio.h>
#include <stdlib.h>
#include <rpc/pmap_clnt.h>
#include <string.h>
#include <memory.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifndef SIG_PF
#define SIG_PF void(*)(int)
#endif
static void message_prog_1(struct svc_req *rqstp, register SVCXPRT *transp)
{
union {
kad... |
/*
PsychtoolboxGL/Source/Common/PsychHID/PsychHIDKbTriggerWait.c
PROJECTS:
PsychHID only.
PLATFORMS:
All.
AUTHORS:
<EMAIL> rpw
<EMAIL> mk
HISTORY:
8/9/07 rpw Created.
12/17/09 rpw Added keypad support
NOTES:
This incorporates elements ... |
/*
* Copyright (c) 2010, Swedish Institute of Computer Science.
* 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
* n... |
#include "corpmanag.h" /* get ContextDescriptor,AttributeList */
#define MAXPATTERNS 5000
#define MAXENVIRONMENT 10
enum ctxtdir { leftright, left, right };
enum spacet { word, structure };
/**
* Evaltree object
*
* (TODO specify here what on earth one of these is)
*/
typedef union e_tree *Evaltree;
typedef st... |
#include "move.h"
#include "move_generation.h"
#include "search.h"
#include "transposition.h"
// Mask for castling rights lost if piece on square changes
static const int castling_mask[64] = {
13, 15, 15, 15, 12, 15, 15, 14, 15, 15, 15, 15, 15, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15... |
/*!
#
# Copyright (c) 2012 <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 l... |
/*
* 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... |
/*
* This is a "Manager" for the Nortel Millennium payhone.
*
* It can provision a Nortel Millennium payphone with Rev 1.0 or 1.3
* Control PCP. CDRs, Alarms, and Maintenance Reports can also be
* retieved.
*
* www.github.com/hharte/mm_manager
*
* (c) 2020, <NAME>
*/
#include <stdio.h> /* Standard input/o... |
/*
* cell-renderer-bifurcation.h - A GtkCellRenderer for viewing a bifurcation
* diagram over the range of a keyframe's transition.
*
* de Jong Explorer - interactive exploration of the Peter de Jong attractor
* Copyright (C) 2004 <NAME> and <NAME>
*
* This program is free software;... |
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
// ugly disgusting
#ifdef _WIN32
#define clrscr() system("cls") // ewww
#else
#define clrscr() printf("\e[1;1H\e[2J")
#endif
/*
* 0 1 2 X
* 0 0 1 2
* 1 3 4 5
* 2 6 7 8
* Y
*/
typedef enum {
EMPTY = 0,
PLAYER = 1,
CPU = 2
} field;
typedef... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <assert.h>
#include "core_allvars.h"
#include "core_proto.h"
double estimate_merging_time(int sat_halo, int mother_halo, int ngal)
{
double coulomb, mergtime, SatelliteMass, SatelliteRadius;
if(sat_halo == m... |
//
// Copyright © <NAME>, 2019
// <EMAIL>
// www.github.com/danielshervheim
//
#include "chat_frame.h"
#include "common.h"
struct _ChatFrame {
GtkBin parent_instance;
GtkBox *m_messageBox;
GtkComboBoxText *m_userlist_comboBoxText;
GtkEntry *m_message_entry;
GtkLabel *m_character_counter;
};
G_D... |
#include "scarv/aes/aes_dec_imp.h"
#define AES_DEC_RND_KEY_STEP(a,b,c,d ) { \
s[ a ] = s[ a ] ^ rk[ a ]; \
s[ b ] = s[ b ] ^ rk[ b ]; \
s[ c ] = s[ c ] ^ rk[ c ]; \
s[ d ] = s[ d ] ^ rk[ d ]; \
}
#define AES_DEC_RND_SU... |
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <mpi.h>
#include <netcdf.h>
#include "calendar.h"
#include "config.h"
#include "hyperslab.h"
#include "io.h"
#include "location.h"
#include "unit_util.h"
static void resetDailyAvg(float *daily_avg) {
for (size_t i = 0; i < 31; ++... |
/* A Python extension module has four parts:
+ The header file Python.h.
+ The C function we want to expose as the interface from our module.
+ A table mapping the names of our functions as Python developers see
them to C functions inside the extension module.
+ An initializatio... |
#include "MPU6050.h"
#include "MPU6050RegMap.h"
#include "logger.h"
#include <math.h>
#define MPU_I2C_ADDRESS 0x68
#define WRITE_MSG_SIZE 2
#define GYRO_CALIB_ITERS 1000
typedef struct
{
int16_t x_offset,
y_offset,
z_offset;
} GyroCalib;
/* Sensitivity for gyro
F... |
/*
* File: server.c created by <NAME> (aka ganchito55)
*
**/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <string.h>
#define PORT 5555
int FIN = 0;
void ... |
/*
attmap.c - attribute mapping values and functions
This file is part of the nss-pam-ldapd library.
Copyright (C) 2007-2014 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Found... |
/******************************************************************************
* Copyright © 2014-2017 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... |
#include "fdkAACEncoder.h"
#include <fdk-aac/aacenc_lib.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdbool.h>
#include <UnionLog.h>
#undef LOG_TAG
#define LOG_TAG "FdkAACEncoder"
struct FdkAACEncoder {
HANDLE_AACENCODER handler;
AACENC_InfoStruct aacencInfo;
UnionAudioEncCfg ... |
#include "hb_base64.h"
//////////////////////////////////////////////////////////////////////////
static const hb_byte_t base64_decode_table[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //15
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //31
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 63, 0, 0, 0, 0, /... |
/*
* Copyright (c) 2020 大前良介 (<NAME>)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/MIT
*/
#include <unistd.h>
#include <libpng16/png.h>
#include <setjmp.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include "common.h"
static int find_strike_index(FT_Face face);
static ... |
#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... |
/* Copyright (c) 2008 by Intel Corp.
Inject machine checks into kernel for testing.
mce-inject 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; version
2.
mce-inject is distributed in the hope t... |
/**
* Know nothing about copy from left to right,
* if someone wanna use it, just copy it from left to right
* by author m24h
*/
#include "esp_task_wdt.h"
#include "esp_console.h"
#include "app.h"
#include "samp.h"
#include "output.h"
#include "stat.h"
#include "ui.h"
#include "repl.h"
#include "pid... |
/*
* Copyright (C) 2008 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... |
#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 <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/msg.h>
#include <sys/ipc.h>
#include <sys/wait.h>
#include <errno.h>
#include <signal.h>
#include <time.h>
#include <string.h>
#include <pthread.h>
#define LB_CARS 5
#define UB_CARS 100
#define LB_X 500
#define UB_X 1000
#d... |
/*-
* clink.c -- link routine for ZFASL
*
* <NAME>, AIAI, University of Edinburgh
*
* /\/ Should make sure correct readtable used. [done 16 sep 86]
* /\/ Should make sure correct uctolc setting used. [done 16 sep 86]
* /\/ Should note when functions redefined only when requested (a la fasl)
* /\/ All the size... |
#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 "earthposition.h"
#include "WGS84.h"
#include "Constants.h"
#include <math.h>
/*!
* Compute the trigonmetric quantities of latitude and longitude
* \param lla is the latitude, longitude, altitude array in rad, rad, meters.
* \param trig receives the sin and cosine of latitude and longitude.
* \... |
#include <locale.h>
#include <glib/gi18n.h>
#include "gjitenkai.h"
#include "../gjitenkai/dicutil.h"
extern gboolean on_gjitenkai_search_results_button_release_event(GtkWidget *text_view, GdkEventButton *event, gjitenkai *gjitenkai);
extern void on_search_expression_activate(GtkEntry *entry, worddic *worddic);
extern... |
/*-
* Public Domain 2014-present MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* bina... |
/*
* File: main.c
* Author: <NAME>
*
* Created on January 17, 2016, 4:23 PM
*
* Generates data loggings for use when extracting
* physical modeling parameters
*
* Electrical connections (uC loc(uno32 pin)):
* On board uno32 leds on PORTG6 and PORTF0
* RED LED ON PORTD1(5)
* YELLOW LED ON PORTD2(6)
* BU... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <assert.h>
#include <getopt.h>
extern int serial_init();
extern int32_t serial_send(char *buf, uint32_t len);
extern int32_t ... |
#include <time.h>
#include <stdio.h>
#ifndef __KERNEL
#include <sys/syscalls.h>
#else
#include <kernel/sys/syscalls.h>
#endif
#define IS_LEAP_YEAR(a) ((a % 4 == 0) && ((a % 100) || (a % 400 == 0)))
#define DAYS_IN_YEAR(n) (IS_LEAP_YEAR(n) ? 366 : 365)
#define THE_BEGINNING_OF_TIME 1970 //throughout this file "the b... |
/*
Fri Aug 15 16:29:47 EDT 1997
*** CONVERSION ROUTINE ***
Harwell-Boeing Matrix Market
right-hand-sides --> dense array files
( real data transferred as character strings )
National Institute of S... |
#include "tests.h"
int test_publish_ip6() {
int err = 0;
fprintf(stderr, "test_publish_ip6\n");
struct emdns *m = emdns_new("test.local");
check_not_null(&err, m, "new emdns");
const char test_addr[16] = "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10";
struct in6_addr a;
memcpy(&a, test_add... |
//////////////////////////////////////////////////////////////////////////////////
// Company: T.S.Labolatory Coporation
// Engineer:
//
// Create Date: Jul/18/2013
// Project Name: CK4
// Module Name: main.c
// Tool versions: MPLAB v8.91
// Microchip XC16
// Description:
//
// Dependencies: ... |
// Part of dump1090, a Mode S message decoder for RTLSDR devices.
//
// faup1090.c: cut down version that just does 30005 -> stdout forwarding
//
// Copyright (c) 2014,2015 <NAME> <<EMAIL>>
//
// This file is free software: you may copy, redistribute and/or modify it
// under the terms of the GNU General Public Licen... |
/* vax_mmu.c - VAX memory management
Copyright (c) 1998-2013, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ini.h>
#include <cwalk.h>
#include <ftw.h>
#include <fnmatch.h>
#include <wordexp.h>
#include <sys/stat.h>
#include <openssl/sha.h>
#include <argp.h>
char* music_dir;
char* playlist_dir;
char* target_music_dir;
char* target_playli... |
#include <string.h>
#include "nrf52840.h"
#include "nrf52840_bitfields.h"
#include "nrf_delay.h"
#include "nrf_gpio.h"
#include "nrf_radio.h"
#include "nrf_rtc.h"
#include "nrf_saadc.h"
#include "disco.h"
#include "flync.h"
#include "peripherals.h"
#include "printf.h"
#include "prng.h"
#include "timer.h"
static disc... |
/******************************************************************************
* Copyright 2017 - 2018, Opulinks Technology Ltd.
* ---------------------------------------------------------------------------
* Statement:
* ----------
* This software is protected by Copyright and the information contained
* herein... |
#ifdef _WIN32
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef __APPLE__
#include <GL/gl.h>
#include <GL/glut.h>
#else
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#endif
#include <AR/gsub.h>
#include <AR/video.h>
#include <AR/param.h>
#include <AR/ar.h>
#include "draw_obj... |
// SPDX-License-Identifier: GPL-2.0
#include <linux/types.h>
#include <linux/vmalloc.h>
#include <linux/mm.h>
#include <linux/clockchips.h>
#include <linux/acpi.h>
#include <linux/hyperv.h>
#include <linux/slab.h>
#include <linux/cpuhotplug.h>
#include <linux/minmax.h>
#include <asm/hypervisor.h>
#include <asm/mshyperv... |
/*
* The Shadow Simulator
* Copyright (c) 2010-2011, <NAME>
* See LICENSE for licensing information
*/
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include "filetransfer.h"
/* my global structure to hold all variable, node-specific application state */
FileTransfer* ft;
void filetransfer_ini... |
/****************************************************************************/
/*
* PI_3.C
*
* DEMO 'C' PROGRAM TO COMPUTE PI USING
* J.BORWEIN-P.BORWEIN'S ALGORITHM (1995)
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mapm/m_apm.h"
#define FALSE 0
#... |
/******************************************************************************
*
* Copyright © International Business Machines Corp., 2005-2008
*
* 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 Soft... |
#include <fcntl.h>
#include <ncurses.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/param.h>
#include "adxl345/adxl345.h"
#include "hmc5883l/hmc5883l.h"
#include "itg3200/itg3200.h"
#define DELAY 30000
static int aFile = 0;
static int cFile = 0;
s... |
/*
* Copyright (C) 2012 <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, dis... |
/* wninsd.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__2 = 2;
/* $Procedure WNINSD ( Insert an interval into a DP window ) */
/* Subroutine */ int wnins... |
/*
* WCMD - Wine-compatible command line interface - batch interface.
*
* Copyright (C) 1999 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the L... |
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"
// Interrupt descriptor table (shared by all CPUs).
struct gatedesc idt[256];
extern uint vectors[]; // in vectors.S: array of 256 entry pointers
... |
#include <stdint.h>
#include <string.h>
#include "logging.h"
#include "pinmap.h"
#include "driver/gpio.h"
#include "driver/uart.h"
#include "esp32/rom/uart.h"
#include "mqtt-sn.h"
#include "commit.h"
#include "mac.h"
#include "mqtt.h"
#include "socomec.h"
#include "status_led.h"
#include "config.h"
#include "freertos/t... |
/******************************************************************************
*
* Copyright (C) 2010 - 2014 Xilinx, 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.