text stringlengths 3.08k 10.5k |
|---|
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build solaris
#include "config.h"
#include <errno.h>
#include <sys/times.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#ifdef HAVE_SYS... |
/*-
* Copyright (c) 1999,2000 <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 conditi... |
/***************************************************************************//**
* @file
* @brief Prototypes for ZigBee PRO command handler functions.
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
******... |
// Copyright (c) 2010 Go Fightclub Authors
// This source code is released under the terms of the
// MIT license. Please see the file LICENSE for license details.
// A small wrapper to handle the callback for portaudio output
// borrowed heavily from portaudio/test/patest_sine.c
// see: http://www.portaudio.com/trac/w... |
#include "./bm.h"
#include "./basm.h"
#include <stdarg.h>
typedef struct {
size_t size;
size_t capacity;
char *data;
} Buffer;
static void buffer_resize(Buffer *buffer, size_t new_capacity)
{
buffer->capacity = new_capacity;
buffer->data = realloc(buffer->data, buffer->capacity);
}
static void b... |
#include <string.h>
#include "memory_mgt.h"
#include "debug.h"
#include "tcp_send_buffer.h"
#include "tcp_sb_queue.h"
#define MAX(a, b) ((a)>(b)?(a):(b))
#define MIN(a, b) ((a)<(b)?(a):(b))
/*----------------------------------------------------------------------------*/
struct sb_manager
{
size_t chunk_size;
uint3... |
/*
* 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; version 2 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... |
/*******************************************************************************
*
* Copyright (C) 2014-2018 Wave Computing, Inc.
*
* 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 c... |
/*
* Copyright (c) 2017 Baidu, Inc. All Rights Reserved.
*
* 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 Apac... |
/*
* Copyright © 2014-2018 <NAME>
*
* This file is part of "apulse" project.
*
* 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 ri... |
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
/* Possible states of a thread: */
#define FREE 0x0
#define RUNNING 0x1
#define RUNNABLE 0x2
#define STACK_SIZE 8192
#define MAX_THREAD 4
struct context {
uint64 ra;
uint64 sp;
// callee-saved
uint64 s0;
uint64 s1;
... |
// SPDX-License-Identifier: MIT
/* Copyright (C) 2006-2017 Oracle Corporation */
#include <linux/vbox_err.h>
#include "vbox_drv.h"
#include "vboxvideo_guest.h"
#include "vboxvideo_vbe.h"
#include "hgsmi_channels.h"
#include "hgsmi_ch_setup.h"
/**
* hgsmi_report_flags_location - Inform the host of the location of
* ... |
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <inttypes.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#ifndef UART_BAUD
#define UART_BAUD 9600
#endif
#ifndef OSC_CALIBRATION
#define OSC_CALIBRATION OSCCAL
#endif
/*
* Display buffers
*/
#define DISP_SIZE 4
#define DIS... |
/* 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 an... |
/*
* util.h
*
* Utility definitions.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
#define ASSERT(p) if (!(p)) illegal();
typedef char bool_t;
#define TRUE ... |
/*
*
* Copyright © 2000 <NAME>, member of The XFree86 Project, Inc.
* 2005 <NAME> & <NAME>, Trolltech
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all... |
/*
* Ethernet over USB device
*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_LEVEL CONFIG_USB_DEVICE_NETWORK_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(usb_net);
/* Enable verbose debug printing extra hexdumps */
#define VERBOSE_DEBUG 0
/* This enabl... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include "mmap.h"
#include "csv.h"
static int usage();
static int gen_csv(config_t *config, val_t **csv, size_t csv_num);
static int output_csv(config_t *config, val_t *csv, size_t csv_num);
static int output_val(FILE *fp,... |
/* Copyright 2018 Canaan 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 ... |
/*
* Copyright (c) 2015-2016, 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... |
#include <stdio.h>
#include <AudioToolbox/AudioToolbox.h>
#include <AudioUnit/AudioUnit.h>
#include <CoreFoundation/CoreFoundation.h>
static const int kNumberBuffers = 3;
// Create a data structure to manage information needed by the audio queue
struct myAQStruct {
AudioFileID mAudioFile;
A... |
/*------------------------------------------------------------------------------
Copyright (c) 2007-2011 <NAME> (<EMAIL>)
Copyright (c) 2012-2014 <NAME> (<EMAIL>)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by ... |
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <autoconf.h>
#include "ega_vterm.h"
#include "state.h"
/*! @file
@brie... |
/******************************************************************************/
/* */
/* C R Y P T O G R A P H I C - A L G O R I T H M S */
/* ... |
#define _GNU_SOURCE
//I test the poc in pixel2 with fingerprint: google/walleye/walleye:9/PQ1A.181105.017.A1/5081125:user/release-keys
#include <pthread.h>
#include <stdio.h>
#include <fcntl.h>
#include <err.h>
#include <unistd.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/prctl.h>
#include <sched.h>
#in... |
/*
* -----------------------------------------------------------------
* $Revision: 1.1 $
* $Date: 2007/10/25 20:03:25 $
* -----------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* -----------------------------------------------------------------
* Example problem:
* ... |
#include "uri.h"
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
const char ebb_http_header[] = "HTTP/1.0 201 Created\r\nCache-Control: no-cache\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: %zd\r\n\r\n";
void uri_ebb_buf_free(ebb_buf* buf)
{
free(buf->data);
buf... |
/*******************************************/
/* libPhonon: -llapack -lblas -lm */
/* -lVecMat -lScalar -lIO */
/* */
/* Force constant, phonon diagonalization, */
/* and thermodynamic functions. */
/* *... |
/*
============================================================================
Name : main.c
Author : <NAME>, IDA TU-Braunschweig
Version :
Copyright : Copyright belongs to the authors
============================================================================
*/
#include <stdio.h>
#include... |
/* GStreamer Color Balance
* Copyright (C) 2003 <NAME> <<EMAIL>>
*
* colorbalance.c: image color balance interface design
* virtual class function wrappers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as... |
/*! \file bcmcfg_ha_variant_config.c
*
* BCMCFG HA(High Availability) related functions for variant config data.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
... |
#include "ezport.h"
#include <string.h>
#include <errno.h>
#include <apr-1/apr_pools.h>
#include <apr-1/apr_file_io.h>
#include "jr/trace.h"
#include "jr/syscalls.h"
#include "jr/apr.h"
#include "jr/malloc.h"
#include "jr/error.h"
#include "jr/vector.h"
jr_int jr_MakeDirectoryPath(orig_pathname, perm_flags, error_b... |
/*
* Copyright (c) 2017, Linaro Limited
* 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 conditi... |
/*
* evm.c
*
* Copyright (C) 2013, Adeneo Embedded <www.adeneo-embedded.com>
* <NAME>, <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <spl.h>
#include <netdev.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/cpu.h>
#include <asm/arch/d... |
#include "overview.h"
static void render(Layer *layer, GContext *ctx) {
OverviewData *data = (OverviewData *) layer_get_data(layer);
State *state = data->state;
int num_sets = state->player_sets + state->opponent_sets + state->tie_sets;
// ユーザーが Finish match を選んだ場合はまだ complete でない
if (!state->is_complete)... |
// Made by Guston and edited by Gathros
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
struct tree {
struct tree* left;
struct tree* right;
int count;
char value;
};
struct bitstring_builder {
char str[257];
int next_index;
};
struct codebook {
char* code... |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by <NAME>.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistrib... |
/** @file spi.c
*
* @brief This file contains drivers for SPI, namely SPI2
* @author <NAME>
* @date 7/8/2020
* @contact <EMAIL>
*
* @warning: Timing errors have been seen with this module if compiler optimization levels are set to high. It
* is recommended that optimization be turned off for this module. T... |
/**
@file wireless.h
@brief Driver for the TI MSP430-CC2500 Wireless Chipset
@date 2015/04/14
*/
#include "stm32f4xx.h"
#include "stm32f4xx_conf.h"
#include "stm32f4xx_exti.h"
#include "misc.h"
/** @def CC2500_SPI The SPI used for communication with the CC2500 chipset */
#define CC2500_SPI SPI2
/** @de... |
#ifdef WIN32
#include <windows.h>
#else
#include <dirent.h>
#endif
#include "quakedef.h"
// LordHavoc: some portable directory listing code I wrote for lmp2pcx, now used in darkplaces to load id1/*.pak and such...
int matchpattern(const char *in, const char *pattern, int caseinsensitive)
{
return matchpattern_with... |
/*
* Copyright 2019 University of Washington, Max Planck Institute for
* Software Systems, and The University of Texas at Austin
*
* 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 withou... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Show how to set different core voltage.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2021 Nuvoton Technology Corp. All rights reserved.
***************... |
/*
============================================================================
Name : RandomTest.c
Author :
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
#include <stdio.... |
/*
* Mach Operating System
* Copyright (c) 1993 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* softw... |
/*
* based on
* k480_conf.c by <NAME> <<EMAIL>> www.betoneful.com
* https://betoneful.com/tech/logitech-k480-on-ubuntu-and-fn-buttons-default-behaviour/
* k810_conf.c by <NAME> <<EMAIL>>
* http://www.trial-n-error.de/posts/2012/12/31/logitech-k810-keyboard-configurator/
* pairing_tool.c from <NA... |
#include <R.h>
#include <Rinternals.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <signal.h>
#include <string.h>
#include <sys/stat.h>
#include "filelock.h"
#define FILELOCK_INTERRUPT_INTERVAL 200
struct sigaction filelock_old_sa;
void filelock__finalizer(SEXP x) {
... |
/*
* volume_id - reads filesystem label and uuid
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or ... |
/*
* BSD LICENSE
*
* Copyright(c) 2007-2017 Intel Corporation. All rights reserved.
* 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... |
/*
Copyright (c) 2003 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublice... |
/*-
* BSD LICENSE
*
* Copyright(c) 2016 <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
* notic... |
/*
Copyright 2016 Vanderbilt University
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... |
/*
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <android/bitmap.h>
#include <jni.h>
typedef struct {
uint8_t b, g, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// English and Japanese correspondent word set
typedef struct {
char *english;
char *japanese;
} Wordset;
// hash table
typedef struct {
Wordset **data;
unsigned int size;
} Hashtable;
// hash function #1
// hash = (sum of ASCII code of strin... |
#include "grib2.h"
#include "limits.h"
int gbit(unsigned char *in,g2int *iout,g2int iskip,g2int nbyte)
{
return gbits(in,G2_UNKNOWN_SIZE,iout,iskip,nbyte,(g2int)0,(g2int)1);
}
int gbit2(unsigned char *in,g2int in_length,g2int *iout,g2int iskip,g2int nbyte)
{
return gbits(in,in_length,iout,iskip,nbyte,(g2i... |
#include "canny.h"
int main(int argc, char *argv[])
{
char *infilename = NULL; /* Name of the input image */
char *dirfilename = NULL; /* Name of the output gradient direction image */
char outfilename[128]; /* Name of the output "edge" image */
char composedfname[128]; /* Name of the output "dire... |
/*
* Copyright 2021 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#pragma once
typedef union em_variant_val
{
int i;
in... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/kadm5/srv/kadm5_hook.c */
/*
* Copyright (C) 2010 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Gover... |
/*
* (C) 2002 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
/* bring a file into trove from some unix-accessible fs */
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <getopt.h>
#include <tr... |
/*
* Copyright (c) 2018, Commonwealth Scientific and Industrial Research
* Organisation (CSIRO)
* All rights reserved.
*/
/* Includes -------------------------------------------------*/
#include "FreeRTOS.h"
#include "semphr.h"
#include "adc.h"
#include "adc_arch.h"
#include "gpio.h"
#include "log.h"
#include "... |
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <stdlib.h>
#include "squeue.h"
#include <math.h>
#include <string.h>
#include <errno.h> //may not use
Squeue *buffer=NULL;
Squeue *message=NULL;
int counter = 0;
//int counter_singl... |
/* Boolector: Satisfiability Modulo Theories (SMT) solver.
*
* Copyright (C) 2007-2010 <NAME>.
* Copyright (C) 2007-2012 <NAME>.
* Copyright (C) 2017 <NAME>.
*
* This file is part of Boolector.
* See COPYING for more information on using this software.
*/
#include "testutil.h"
#include "testrunner.h"
#in... |
/***************************************************************************//**
* @file main.c
* @brief ISP tool main function
* @version 0x32
* @date 14, June, 2017
*
* @note
* Copyright (C) 2017-2018 Nuvoton Technology Corp. All rights reserved.
***************************************************... |
/*
* QEMU live migration
*
* Copyright IBM, Corp. 2008
*
* Authors:
* <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the top-level directory.
*
*/
#include "qemu-common.h"
#include "qemu_socket.h"
#include "migration.h"
#include "qemu-char... |
/********************************************************************************************/
/********************************************************************************************/
#include "sys_types.h"
#include "sys_define.h"
#include "stdio.h"
#include "string.h"
#include "math.h"
#include "lib_usals.h"
... |
/* dl_helper.c - relocation helper functions for modules and grub-mkimage */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2013 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... |
/*
* Copyright (c) 2018-2020
* <NAME>
* <EMAIL>
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-08-21 <NAME> The first version
*/
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include "nnom.h"
#include "nnom_local.h"
#include "nnom_la... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#i... |
/**
* \file rasterDisplay.c
*
* \brief Sample application for raster. This application receives the
* image data from a frame buffer and displays the image on the
* LCD panel.
*
* Application Configuration:
*
* Modules Used:
* LCD Controller
* In... |
#include "gecko_scene.h"
#include "gecko.h"
#include "physics_world.h"
#include "physics_body.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "debug_draw.h"
#include "camera_node.h"
typedef struct {
GAME_OBJECT;
Label *w_info_label;
Label *w_camera_label;
GameObject *w_head;
Ca... |
#include <stdio.h>
#include <stdlib.h>
#include <sqlite3.h>
int splitfiles = 0, foc = 1;
int obfusicate = 0;
int reverse_names = 0;
char *inputfile = NULL;
/*-----------------------------------------------------------------\
Date Code: : 20160723-203321
Function Name : int
Returns Type : static
----Parameter... |
#include <serial.h>
#include <libc.h>
#include <stdio.h>
#include "list.h"
//void add_at_index(uint32_t index, uint32_t data, list_t *l) {
//}
// List for uint32_t
list_t *new_list(uint32_t start_val) {
list_t *ret = kmalloc(sizeof(list_t));
//sprint("\nAddr: ");
//sprint_uint(ret);
ret->elements = 0... |
//
// Copyright (c) 2017 Intel Corporation
//
// 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, p... |
/* Copyright (c) 2006, Nokia 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 code must retain the above copyright
* notice, this list of con... |
/*
* Copyright (c) 1991 <NAME>
*
* Disclaimer: No guarantees of performance accompany this software,
* nor is any responsibility assumed on the part of the authors. All the
* software has been tested extensively and every effort has been made to
* insure its reliability.
*/
/*
* genframe - generate a uniform... |
#include <stdio.h>
#include <stdlib.h>
#include "priqueue.h"
/* Function which takes a heap rooted at the given index and make sure
* that is confroms to the heap critera. Adapted from Introduction to
* Algorithms (Cormen, Leiserson, Rivest 1990) page 143 */
void heapify(binary_heap *a,int i) {
register int l,r,l... |
#include "include.h"
#include "structure.h"
#include "function.h"
void get_ormpars(struct okumura *orm,int i,int j,float *xp,float *zp,float *rt,float *vs)
{
float dx, dz, dxdz;
float w0, w1, w2, w3;
int ip0, ip1, ip2, ip3;
float one = 1.0;
ip0 = i + j*(orm->nstk);
*rt = orm->rupt[ip0];
*vs = orm->slip[ip0];
}
void... |
/*
* Author: <NAME> <<EMAIL>>
*/
#include <stdlib.h>
#include <string.h>
#include <math.h>
//#include <omp.h>
#include "config.h"
#include "cint.h"
#include "cvhf.h"
#include "nr_direct.h"
#include "optimizer.h"
#define NCTRMAX 64
static void unpack_block2tril(double *buf, double *eri,
... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ext_rt_1.c :+: :+: :+: ... |
/*
* Copyright Notice for
* Proactive Data Containers (PDC) Software Library and Utilities
* -----------------------------------------------------------------------------
*** Copyright Notice ***
* Proactive Data Containers (PDC) Copyright (c) 2017, The Regents of the
* University of California, through Lawre... |
/**
******************************************************************************
* @file ADC/ADC_AnalogWatchdog/main.c
* @author MCD Application Team
* @version V1.5.2
* @date 30-September-2014
* @brief Main program body
**************************************************************************... |
#include <grammar/ast.h>
#include <inttypes.h>
#include <stdlib.h>
#include <util/mem_utils.h>
#include <util/log.h>
#include <grammar/lexer.h>
static ASTNode* _allocate_node(Token* tok)
{
ASTNode* node = malloc(sizeof(ASTNode));
node->token = tok;
node->type = tok->type;
return node;
}
static ASTNode* init_as... |
#include <CoreFoundation/CFString.h>
#include <CoreAudio/CoreAudio.h>
#include "../../obs-internal.h"
#include "../../util/dstr.h"
#include "mac-helpers.h"
static inline bool cf_to_cstr(CFStringRef ref, char *buf, size_t size)
{
if (!ref) return false;
return (bool)CFStringGetCString(ref, buf, size, kCFStringEncod... |
/*
* Copyright (c) 2016 Open-RnD Sp. z o.o.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @brief
*
* Based on reference manual:
* STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx
* advanced ARM ® -based 32-bit MCUs
*
* Chapter 9: General-purpose and alternate-function I/Os
* ... |
/*
* Copyright (c) 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in its entiret... |
/*
Unusual Suspects
3D routines.
*/
#include "3d_routines.h"
#include "Assets/cosine_table.h"
#include "common.h"
extern struct BitMap theBitMap;
extern struct BitMap theBitMap_3bpl;
extern struct BitMap theBitMap_2bpl;
extern struct BitMap theBitMap_1bpl;
extern struct RastPort theRP;
exter... |
/*!
* @file pearson.c
*
* @copyright
* Copyright © 2020, <NAME>
*
* @copyright
* All rights reserved.
*
* @copyright
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* @copyright
* 1. Redistributions o... |
#include <stdio.h>
#include <getopt.h>
#include "internal.h"
#include "plugin_server.h"
char port[STRING_LENGTH] = { 0 };
static void help(char *name)
{
fprintf(stderr, "Usage: %s [-h, --help] [-p, --port port]\n", name);
exit(1);
}
static void options(int argc, char ** argv)
{
int opt;
int option_index;
stru... |
/*
* Copyright (c) 2013, Court of the University of Glasgow
* 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,
* thi... |
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <exanic/exanic.h>
#include <exanic/pcie_if.h>
#include <exanic/register.h>
#include <exanic/time.h>
/* Emit warning if difference is greater than 100ms */
#define MAX_HOST_DELTA_NS 100000000
/* Emit warning if exanic differs by more than 500us */
... |
#include "errno.h"
#include "esp_littlefs.h"
#include "esp_log.h"
#include "filesystem.h"
#include "sdkconfig.h"
#include "sdmmc_cmd.h"
#if CONFIG_PROJECT_WEB_DEPLOY_SD
#include "esp_vfs_fat.h"
#include "driver/sdmmc_host.h"
#endif
static const char TAG[] = "filesystem";
#if CONFIG_PROJECT_WEB_DEPLOY_SD
esp_err_t ... |
/*-
* Copyright (c) 2004 <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 a... |
/* GStreamer unit tests for the custom printf
* Copyright (C) 2015 <NAME> <tim centricular com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License,... |
// Taken from https://github.com/kostya/benchmarks/blob/master/base64/test.c
#include "stdlib.h"
#include "stdio.h"
#include "time.h"
#include <stdint.h>
#include <string.h>
#include <openssl/md5.h>
typedef unsigned int uint;
const char* chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
stat... |
/*===-- gupcr_pgm_info.c - UPC Runtime Support Library -------------------===
|*
|* The LLVM Compiler Infrastructure
|*
|* Copyright 2012-2014, Intrepid Technology, Inc. All rights reserved.
|* This file is distributed under a BSD-style Open Source License.
|* See LICENSE-INTREPID.TXT for details.
... |
/*
* maze.c
*
* Created: 02/02/2020 0:56
* Author: Badge.team
* \ /
* \ /
* \ /
* ] [ ,'|
* ] [ / |
* ]___ ___[ ,' |
* ] ]\ /[ [ |: |
* ] ]... |
/* AUTORIGHTS
Copyright (C) 2007 Princeton University
This file is part of Ferret Toolkit.
Ferret Toolkit 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 later ver... |
#import <Foundation/Foundation.h>
#if __LP64__
#define NSI "ld"
#define NSU "lu"
#else
#define NSI "d"
#define NSU "u"
#endif
#pragma mark - System Utilities
#ifndef IS_IOS7_OR_LATER
#define IS_IOS7_OR_LATER (floor(NSFoundationVersionNumber)>NSFoundationVersionNumber_iOS_6_1)
#endif
#ifndef NSFoundationVersi... |
/* GStreamer
* Copyright (C) 2008 <NAME> <<EMAIL> at g<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later ve... |
#include "TheOutsider.h"
/*
Las funciones de ordenamiento Reorden_bloque_0 y OrdenWelshPowell utilizan la misma
logica pero comparan distintas variables.
Reference_ordering es una abstraccion para evitar la repeticion de codigo.
Recibe una funcion en referencia a la cual ordenara el arreglo dado.
*/
void refe... |
// Copyright (c) 2011, <NAME> <<EMAIL>>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of condition... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.