text stringlengths 3.08k 10.5k |
|---|
/*
TxSSA: Tech-X Sparse Spectral Approximation
Copyright (C) 2012 Tech-X Corporation, 5621 Arapahoe Ave, Boulder CO 80303
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 abo... |
/*
* SCH_Tasks.c
*
* Created on: Mar 16, 2021
* Author: juanleyva
*/
#include "SCH_Tasks.h"
void SCH_Database_Measurement_Update(void)
{
char debug_str[32];
uint16_t debug_values[7];
HW_Debug_Print("\n\r\t\t ----------------Database Dump---------------\n\r");
HW_Debug_Print("Temp[°C] Hu... |
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/conv.h"
#include "include/image.h"
#include "include/kernel.h"
void propagate_img_dimensions(int *rows_per_proc, int *num_cols) {
MPI_Bcast(rows_per_proc, 1, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Bcast(num_cols, 1, MPI_INT, 0, M... |
#include "time_conversion.h"
const int YEAR_REGION = 1;
const int MONTH_REGION = 2;
const int DAY_REGION = 3;
const int HOUR_REGION = 4;
const int MINUTE_REGION = 5;
const int SECOND_REGION = 6;
static regex_t* iso8601_time_regex;
static regex_t* ar_iso_datetime_regex;
VALUE is_iso8601_time_string(const char* value)... |
//@AUTHOR : <NAME> <<EMAIL>>
//@lICENSE: MIT
//@DATE : 2021-06-01
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define DATA_STRUCT_NAME "Binary Tree"
#define ERR_NO_MEMORY "Not enough memory"
//-----------------------------------------------------------
//DATA
typedef int Data;
#define DATA_FORMAT "... |
#include <types.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <lib/hashmap.h>
/*
* The default hash function used by the hash table implementation. Based on the
* Jenkins Hash Function (http://en.wikipedia.org/wiki/Jenkins_hash_function)
*/
static uint32_t default_hash(char *key, size_t le... |
/*
* @file vidhrdw/djboy.c
*
* video hardware for DJ Boy
*/
#include "driver.h"
#include "vidhrdw/generic.h"
static data8_t djboy_videoreg, djboy_scrollx, djboy_scrolly, flipscreen;
static struct tilemap *background;
int scroll = 0;
void djboy_set_videoreg( data8_t data )
{
djboy_videoreg = data;
... |
/******************************************************************************
** This material was prepared as an account of work sponsored by an agency **
** of the United States Government. Neither the United States Government **
** nor the United States Department of Energy, nor Battelle, nor any of **
... |
/*
Broadcom B43 wireless driver
RFKILL support
Copyright (c) 2007 <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 your option)... |
#include "config.h"
#include <unistd.h>
#include <stdlib.h>
#include <CUnit/Basic.h>
#include <CUnit/Console.h>
#include <sys/time.h>
#include "mkl.h"
static double get_time() {
struct timeval t;
gettimeofday(&t, NULL);
return (double)t.tv_sec + t.tv_usec * 1e-6;
}
static void* host_malloc(size_t size) { ... |
// This file is part of Deark.
// Copyright (C) 2016 <NAME>
// See the file COPYING for terms of use.
// Playstation .TIM image format
// (Limited support. Probably works for 8-bits/pixel.)
#include <deark-config.h>
#include <deark-private.h>
DE_DECLARE_MODULE(de_module_tim);
typedef struct localctx_struct {
unsign... |
/*
* INTERNAL.C
*
* DNET (c)Copyright 1988, <NAME>, All Rights Reserved
*
* Usually SCMD_OPEN requests attempt to connect() to the UNIX
* domain socket of the server. However, some 'ports' are designated
* as internal to DNET. They reside here.
*
* -IALPHATERM
*/
#include <stdlib.h>
#include <unistd.h>
#... |
/*
* Part of OS4, memory.c
* Author <NAME>, miklhh
*/
#include <string.h>
#include <stdint.h>
#include <memory/memory.h>
#include <kstdio.h>
#include <kernel/panic.h>
/* MACROS */
#define MAX_PAGE_ALIGNED_ALLOCS 32
/* Variables */
static uint32_t last_alloc = 0;
static uint32_t heap_end = 0;
static uint32_t hea... |
/**
* \file
*
* \brief Battery service
*
* Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
* It is your... |
/*
* cment - an absurdly simple dependency tool for cmake
* (c) 2016 <NAME>
* See LICENCE.txt for rights and distribution.
*/
#include "ogdl.h"
#include "argparse.h"
#include <stdio.h>
#include <string.h>
char header[] ={
"###############################################################################\n"
"# AUTOG... |
#include <clang-c/Index.h>
#include <stdio.h>
#include <stdlib.h>
#include <func_helper.h>
#include <globals.h>
#define FUNC_DEBUG (0)
FILE *helper_debug_log;
char *function_helper(char *args) {
int pop_result = populate_function_helper_args(args);
if (pop_result) {
return "FAILED TO POPULATE ARGUMENTS";
... |
// SPDX-License-Identifier: GPL-2.0
#define _GNU_SOURCE
#include <pthread.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <asm/types.h>
#include <sys/syscall.h>
#include <errno.h>
#include <string.h>
#include <linux/bpf.h>
#include <sys/socket.h>
#include <bpf/bpf.h>
#includ... |
/*
* Copyright (c) 2019, <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 conditio... |
#include <param.h>
#include <x86.h>
#include <proto.h>
#include <proc.h>
#include <page.h>
#include <vm.h>
#include <conf.h>
/*
* proc.c - 2010 fleurer
* this file implies the initilization of proc[0] and the implementation
* of fork(),
*
* */
struct proc proc0;
struct proc *proc[NPROC] = {NULL, };
struct pro... |
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#ifdef POSIX
#include <unistd.h>
#endif
#ifdef LINUX
#include <sys/fsuid.h>
#endif
#include "chacolib.h"
#include "chameleon.h"
#ifndef DEBUG
/* #define DEBUG */
#endif
#define CHMOUNT_VERSION "0.1"
#define LOGERR(.... |
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <semaphore.h>
#include <json-c/json.h>
#include <mosquitto.h>
#include <wiringPi.h>
/*
* Configuration
*/
#define SHIFT_LIGHT_PIN 7
#define NEUTRAL_GEAR_PIN 0
#define GEAR_UP_PIN ... |
/* This file is part of the ficlip clipping library
*
* ficlip is licensed under MIT.
*
* Copyright 2017, <NAME>
*/
/* Default maximum length of a path
*/
#define DEFAULT_MAX_PATH_LENGTH 1000
/* Error codes
*/
#define ERR_PARSING_FAIL 0x01
#define ERR_PATH_TOO_LONG 0x02
#define ERR_PATH_NO_MZ 0x03
#define ERR_... |
/******************************************************************************
Filename: udpapp.h
Description: UDP app for the WiShield 1.0
******************************************************************************
TCP/IP stack and driver for the WiShield 1.0 wireless devices
Copyright(c) ... |
/*
* Copyright (C) <NAME>
* Copyright (C) NGINX, Inc.
*/
#include <nxt_main.h>
typedef struct {
int32_t weight;
int32_t effective_weight;
int32_t current_weight;
uint32_t down; /* 1 bit... |
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <util/delay.h>
#include <stdbool.h>
#include <stdint.h>
#include "util.h"
#define ATX_PIN PB0
#define BUTTON_PIN PB1
#define BUTTON_INTERRUPT PCINT1
#define LED_PIN PB2
#define SHUTDOWN_PIN PB3
#define RASPBERRYPI_OFF_PIN PB4
#define RASPB... |
/** @file vl_homkmap.c
** @brief vl_homkmap - MEX implementation
** @author <NAME>
**/
/*
Copyright (C) 2007-12 <NAME> and <NAME>.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#include "mexutils.h"
#include <vl/... |
/** @file
* IO EX functions.
*
* @author
* @version 1.0
* @date 2016
* @copyright ITE Tech. Inc. All Rights Reserved.
*/
#include <errno.h>
#include <sys/socket.h>
#include <pthread.h>
#include "itp_cfg.h"
#ifndef _MSC_VER
#include "openrtos/FreeRTOS.h"
#include "openrtos/queue.h"
#endif
static uint8_t IoEx0,... |
/*
Author:
<NAME> 7/2004-08/2009
*/
#define MODULE_BIT 0x04000000
#include "acc_std.h"
/* Get some info about the device */
status_t GET_ACCELERANT_DEVICE_INFO(accelerant_device_info * adi)
{
LOG(4,("GET_ACCELERANT_DEVICE_INFO: returning info\n"));
/* no info on version is provided, so presumably this is for my... |
/*
* (C) 2002 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <getopt.h>
#include "trove.h"
#include "trove-test.h"
char storage_space[SSPACE_SIZE] = "/tmp/trove-test-space";
char fil... |
/*
* Multi2Sim
* Copyright (C) 2012 <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 your option) any later version.
*
... |
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "io.h"
#include "display.h"
static void qm_avr_display_wait_until_ready_for_next_byte()
{
// TODO doc
while (!(UCSR0A & (1<<UDRE0)));
}
static void qm_avr_display_wait_until_byte_fully_written()
{
// TODO doc
while (!(UCSR0A & (1<<TXC0)));
... |
/*
Copyright (C) 2015-2020 IoT.bzh
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 License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... |
/**************************************************************************
al1.h
<NAME> (<EMAIL>)
6 Dec 00
ADVANCED COSET ENUMERATOR, Version 3.001
Copyright 2000
Centre for Discrete Mathematics and Computing,
Department of Mathematics and
Departme... |
/*
* Copyright (c) 2017-2019 Cisco and/or its affiliates.
* 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 appl... |
/******************************************************************************
* @file main.c
* @version V1.00
* $Revision: 4 $
* $Date: 18/07/09 7:03p $
* @brief
* Show how to set I2C Multi bytes API Read and Write data to Slave.
* This sample code needs to work with I2C_Slave.
* @not... |
/*****************************************************************************
**
** FILE: soilwater.h
**
** AUTHOR: <NAME> 9/7/93 - 8/21/96
**
*****************************************************************************/
#include <stdio.h>
#include "swconst.h"
#define FILEPATH_MAX 60 /* Max # of chars in a... |
/*<NAME>
Trabalho de Grafos, PROF: Alneu
Numero USP: 10284542
ICMC - 2018 */
#include <stdlib.h>
#include <stdio.h>
#include "list.h"
int isEmpty(LIST* l) {
if (l->begin == NULL) return TRUE;
return FALSE;
}
//----------------------------------------------------------------------------... |
#include <stdint.h>
#include "gpio.h"
#include "sampling.h"
#include "hw_config.h"
#define CMD_ID_ADC 0
#define CMD_ID_DAC 1
#define ADC_CH_V_IN 0
#define ADC_CH_V_OUT 1
#define ADC_CH_A_IN 2
#define ADC_CH_A_OUT 3
#define MAN_CH_SLCT (1 << 15) | (1 << 14)
#define DAC_CH_V_ADDR (1 << 16)
#define DAC_CH_A_ADDR (0 <... |
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include <twz/_types.h>
#include <twz/obj.h>
#define MAX_FD 1024
__attribute__((noreturn)) void twix_panic(const char *s, ...);
struct iovec;
struct stat;
struct twix_register_frame;
struct rusage;
#include <poll.h>
#i... |
/**
* @author <NAME> (<EMAIL>)
* @license The MIT License (MIT)
*
* Copyright (c) 2019 <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 withou... |
/*
* File: edge.c
*
* create and process edge pairs (spans) across a scanline
*
*/
/*
*
* MIT License
*
* Copyright (c) 2018 <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 ... |
#include <gtk/gtk.h>
static GdkContentProvider *
prepare (GtkDragSource *source,
double x,
double y,
GtkWidget *row)
{
return gdk_content_provider_new_typed (GTK_TYPE_LIST_BOX_ROW, row);
}
static void
drag_begin (GtkDragSource *source,
GdkDrag *drag,
... |
#include "cobs.h"
#define COBS_ISV COBS_INPLACE_SENTINEL_VALUE
typedef unsigned char cobs_byte_t;
cobs_ret_t cobs_encode_inplace(void *buf, unsigned len) {
if (!buf || (len < 2)) { return COBS_RET_ERR_BAD_ARG; }
cobs_byte_t *const src = (cobs_byte_t *)buf;
if ((src[0] != COBS_ISV) || (src[len - 1] != COBS_IS... |
/*
-----------------------------------------------------------------------------
"THE BEER-WARE LICENSE":
<<EMAIL>> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer (*or Kofola) in retu... |
/*
* Windows INF/INI file format section reader
* Copyright (C) by <NAME> <<EMAIL>>
* Read an INF file section and output to stdout
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <limits.h>
#include "version.h"
#define MAXLEN 1024
static char **glob... |
Gfx indicator_model_test_tex_i8_aligner[] = {gsSPEndDisplayList()};
u8 indicator_model_test_tex_i8[] = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xC0, 0xC0, 0xC0, 0x77, 0x77, 0x77, 0x77,
};
Gfx mat_indicator_model_f3d_material[] = {
gsDPPipeSync(),
gsDPSetCombineLERP(TEXEL0, 0, ENVIRONMENT, 0, 0,... |
/*
* cpu_accel.c
* Copyright (C) 2000-2002 <NAME> <<EMAIL>>
* Copyright (C) 1999-2000 <NAME> <<EMAIL>>
*
* This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
* See http://libmpeg2.sourceforge.net/ for updates.
*
* mpeg2dec is free software; you can redistribute it and/or modify
* it under the t... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <limits.h>
#include <pthread.h>
#include <gmp.h>
// Wir begrenzen die max. Anz. an Stellen pro Zahl aus naheliegenden Gruenden
#define MAXDIGITS 2048
// Anzahl der zu erzeugenden Threads
int ANZTHREADS = 4;
// globale Statusvariable als Abbruchbedi... |
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <time.h>
#include "demo.h"
#include "html/html_files.h"
void helloworld();
void demo1();
void demo2x();
void demo3x();
void demoiframe();
void menuhw();
void demo2();
void demo3();
void democss();
void demo2y();
void demo3y();
... |
#include <string.h>
#include "lineAnalyzer.h"
#include "dataLine.h"
#include "instructionLine.h"
#include "errors.h"
Boolean analyzeGuidanceLine(ParsedFile *pfp, const char *line, int length, int lineIndex, int startOfWord, Boolean *hasLabel);
Boolean analyzeInstructionLine(ParsedFile *pfp, const char *line, int lengt... |
/**************************************************************************************************
Phyplus Microelectronics Limited confidential and proprietary.
All rights reserved.
IMPORTANT: All rights of this software belong to Phyplus Microelectronics
Limited ("Phyplus"). Your use of this Software is... |
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 <NAME> <<EMAIL>>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* GPIO Python module.
*
*/
#include "mp.h"
#include "pincfg.h"
#include "py_gpio.h"
#include "py_assert.h"
#define EXTI_MAX 16
typedef struc... |
/***********************************************************************************
Autor: <NAME>
Programa: Lista Estatica Ordenada Encadeada.
Funções
************************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>... |
/*
* Acceleration for the Leo (ZX) framebuffer - stipple/tile verification.
*
* Copyright (C) 1999 <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrictio... |
#include "agedu.h"
#include "alloc.h"
#include "trie.h"
#include "dumpfile.h"
#include "fgetline.h"
#define DUMPHDR "agedu dump file. pathsep="
#define DUMPHDR_SORTABLE "0:agedu sortable dump file. pathsep="
struct dumpfile_load_state {
FILE *fp;
char pathsep;
int lineno;
char *prev_pathname;
bool... |
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <memory.h>
#include <pthread.h>
#include <threads.h>
#include "prodcon.h"
struct llist_node {
struct llist_node *next;
char *str;
};
/**
* pop a node off the start of the list.
*
* @param phead the head of the list. this will be modified ... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
#include <linux/serial.h>
#include <termios.h>
#include <stdio.h>
#include "unite.h"
#define UIOGRXIS 0x80000001
#define STX 0x02
#define EOT 0x04
#define ENQ 0x05
#define ACK 0x06
#define DL... |
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2021 <NAME> │
│ ... |
typedef union
{
int raw;
struct{
unsigned int n:16; //дробное
int m:16; //целое
};
}u_fixed16;
u_fixed16 fix_add(u_fixed16 a, u_fixed16 b)
{
u_fixed16 c={.raw=a.raw+b.raw};
return c;
}
u_fixed16 fix_sub(u_fixed16 a, u_fixed16 b)
{
u_fixed16 c={.raw=a.raw-b.raw};
... |
//
// Created by adam on 2018-11-28.
//
#include "../src/redismodule.h"
#include <ctype.h>
#include <string.h>
static RedisModuleType *SLockType;
struct SLock {
mstime_t lock_time;
unsigned long long client_id;
};
/**
* slock.lock lock_key expire
* the comand lock will return result immediately ,
* ... |
/*******************************************************************************
@ddblock_begin copyright
Copyright (c) 1997-2016
Maryland DSPCAD Research Group, The University of Maryland at College Park
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modif... |
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2019-2020, <NAME> <<EMAIL>>
*/
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "merge_utils.h"
#include "usr-grp.h"
#include "utils.h"
static const struct option opts[] = {
{"columns", required_argument, NULL, 'c'}... |
/*
* Copyright (c) 2022, <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 conditio... |
/*
* Copyright (c) 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 use, copy, modify, merge, publish, dis... |
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "src/dict.h"
// Helpers
#define test(fn) \
puts("... \x1b[33m" # fn "\x1b[0m"); \
test_##fn();
static int freeProxyCalls = 0;
void
freeProxy(char *key, void *val) {
++freeProxyCalls;
free(val);
}
typedef struct {
cha... |
/*
* $Id: debug_multi_in.c,v 1.1.1.1.4.3 2003/04/16 19:07:56 philburk Exp $
* debug_multi_in.c
* Pass output from each of multiple channels
* to a stereo output using the Portable Audio api.
* Hacked test for debugging PA.
*
* Author: <NAME> http://www.softsynth.com
*
* This program uses the PortAudio Portabl... |
/*
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
* © 2010-2012 <NAME> and contributors (see also: LICENSE)
*
*/
#include <stdio.h>
#include <i3/ipc.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <ev.h>
#include <getopt.h>
#include <glob.h>... |
/* Register a signal-handler for SIGALRM with signal().
* Generate SIGALRM periodically with setitimer() by a user-defined interval.
* Measure timing accuracy with gettimeofday().
* Set up a pipe to send commands from signal handler to main().
* Send 'w' command to evaluate timing after every 1000 periodic calls.
... |
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include"../consolehelper/include/conhlpr.h"
#include"../consolehelper/include/hlpr.h"
#include "str.h"
#define PLAYER_ONE_MARK 'X'
#define PLAYER_TWO_MARK 'O'
#define CONSOLE_COLOR 31
#define PLAYER_ONE_CLR 26
#define PLAYER_TWO_CLR 20
#define CLEAR_CONSOLE()... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct Pitaya Pitaya;
typedef enum {
PitayaClusterNotification_ServerAdded = 0,
PitayaClusterNotification_ServerRemoved = 1,
} PitayaClusterNotification;
typedef enum {
PitayaLogKind_Console = 0,
PitayaLogKind_Js... |
/* Iterate over a process's threads.
Copyright (C) 1999,2000,2001,2002,2003,2004,2007,2008
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 1999.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GN... |
/* rsa-sign.c
Creating RSA signatures.
Copyright (C) 2001, 2003 <NAME>
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; e... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the terms found in... |
/***************************************************************************//**
* @file main_zg_hg_g_tg.c
* @brief This project shows how to configure the LEUART for using DMA to write
* and read to the LEUART transmit/receive registers while remaining in EM2 (for
* the most part). The board will be woken up from ... |
#include <u.h>
#include <libc.h>
#include <libg.h>
#include <bio.h>
#include "dat.h"
#include "fns.h"
static void displayfn(void*, void*);
static int xsidecompare(Side**, Side**);
static int ysidecompare(Side**, Side**);
static Sym * layer;
static int sense;
static Clump * goo;
void
gerberin(char *name, int fcode)
... |
// SPDX-License-Identifier: GPL-2.0
// SPI driven IR LED device driver
//
// Copyright (c) 2016 Samsung Electronics Co., Ltd.
// Copyright (c) <NAME> <<EMAIL>>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of_gpio.h>
#include <linux/regulator/consumer... |
/* pseudo-reloc.c
Contributed by <NAME> <<EMAIL>>
Modified by addition of runtime_pseudo_reloc version 2
by <NAME> <<EMAIL>>
THIS SOFTWARE IS NOT COPYRIGHTED
This source code is offered for use in the public domain. You may
use, modify or distribute it freely.
This code is distributed in the... |
/* Copyright (c) 2013-2014, 2016, The Linux Foundation. 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,... |
/*
* cpu_generic.c: CPU manipulation driver for architectures which are not
* handled by their own driver
*
* Copyright (C) 2009-2011 Red Hat, Inc.
*
* 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 So... |
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2003 Internet Software Consortium.
*
* 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 permissio... |
#pragma once
#ifdef __ARMCC_VERSION
#define __keil_v5
#endif
#pragma uccm board(*)= -D_UCCM_VERSION=100
#pragma uccm xcflags(armcc)+= --c99 --no_wrap_diagnostics --diag_suppress 161,1293,177
#pragma uccm xcflags(gcc)+= --std=c99 -fmessage-length=0 -fdata-sections -ffunction-sections -mthumb -Wno-unknown-pragmas --sh... |
/*
* c7regrep.c
*
* Copyright (c) 2019 <EMAIL>
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include "_config.h"
#include <regex.h>
#include <c7regrep.h>
#include <c7status.h>
#include <c7app.h>
struct c7_regrep_t_ {
c7_mgroup_t mg;
regex_t re... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "chesslib.h"
void ResetBoard(struct Piece board[][8]);
void PrintBoard(struct Piece board[][8], int turn, int color);
struct Move GetMove(struct Piece board[][8], int turn);
int main(void) {
int valid_move = 0;
struct Piece chess_board[8][8];... |
/**
* @file text.h
* @brief Text rendering API
*/
#pragma once
#include "base.h"
struct C2D_TextBuf_s;
typedef struct C2D_TextBuf_s* C2D_TextBuf;
/** @defgroup Text Text drawing functions
* @{
*/
/// Text object.
typedef struct
{
C2D_TextBuf buf; ///< Buffer associated with the text.
size_t begin; ///... |
/*
* atmel_df_pow2.c - convert Atmel Dataflashes to Power of 2 mode
*
* Copyright 2009 Analog Devices Inc.
*
* Licensed under the 2-clause BSD.
*/
#include <common.h>
#include <exports.h>
#include <spi.h>
#define CMD_ID 0x9f
#define CMD_STAT 0xd7
#define CMD_CFG 0x3d
static int flash_cmd(struct spi_slave... |
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "affine.h"
#include "netdraw.h"
#define get_disp(i) \
((x == NULL || vindex == NULL || vindex[i] < 0) ? 0 : x[vindex[i]])
#define NPTS 10
static void beam_get_local(double* transform, double* xlocal,
double* x, int*... |
/*
* Copyright (C) 2006-2012 by <NAME> (<EMAIL>)
*
* Released under the MIT license, see LICENSE.txt
*/
/*
* common code for database tests.
*/
#include "sonLibGlobalsTest.h"
#include "kvDatabaseTestCommon.h"
#include "stSafeC.h"
#include <getopt.h>
/* usage message and exit */
static void usage(const char *des... |
/* This file is part of the YAZ toolkit.
* Copyright (C) Index Data
* See the file LICENSE for details.
*/
/** \file
\brief File globbing (ala POSIX glob, but simpler)
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
#include <s... |
/*-
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
* ("CTSRD"), as part of the DARPA CRASH research programme.
*
* Redistribution and use in source ... |
#include "lib_prot.h"
int menu(void) {
int option;
printf("1 - Create an array of stores. \n");
printf("2 - Fill in the data of the stores and garments. \n");
printf("3 - View data.\n");
printf("4 - Add a store.\n");
printf("5 - Erase a type of garment form the stores.\n");
printf("6 - Clear the screen.\... |
/* Hello World Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#i... |
/**
***********************************************************************************************************************
* 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
*... |
//hplot: HPGL naïve plotter driver for HP plotters.
//Tested only on an HPIB 7440A with Inkscape-generated files, so:
//////////////////////////////////////////////////////////////////////////////
// This software is provided 'AS-IS', without any express or implied //
// warranty. In no event will the authors ... |
/* -*- C -*- */
/*
* Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates
*
* 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... |
/* Copyright (c) 2003-2018, Xively All rights reserved.
*
* This is part of the Xively C Client library,
* it is licensed under the BSD 3-Clause license.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "stack_allocator.h"
#include "stack_allocator_debug.h"
#define UNUSED( arg ) ( void )arg
... |
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifdef HAVE_KDBCONFIG_H
#include "kdbconfig.h"
#endif
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include <tests_plugin.h>
void test_read... |
/*
* swtpm_setup.c
*
* Authors: <NAME> <<EMAIL>>
*
* (c) Copyright IBM Corporation 2011,2014,2015.
*
* 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 co... |
#include "interpreter/glass-instance.h"
#include "interpreter/glass-value.h"
#include "glasstypes/glass-class.h"
#include "glasstypes/glass-function.h"
#include "utils/copy-interface.h"
#include "utils/list.h"
#include "utils/map.h"
#include "utils/string.h"
#include <stdlib.h>
#include <string.h>
typedef struct Gla... |
/****************************************************************
economy.c
=============================================================
Copyright 1996-2018 <NAME>. All rights reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.