text
stringlengths
3.08k
10.5k
#include <mem/pmm.h> #include <util/util.h> #include <util/string.h> #include <util/lock.h> uint64_t *pmmBitmap = NULL; uint64_t pmmLength = 0; uint64_t pmmFreePages = 0; uint64_t pmmTotalPages = 0; static int pmm_read_bit(size_t index) { return (pmmBitmap[(index / 64UL)] & (1UL << (index % 64UL))) == (1UL << (in...
/* Copyright 2018-2020 Google LLC * * This is part of the Google Cloud IoT Device SDK for Embedded C. * It is licensed under the BSD 3-Clause license; you may not use this file * except in compliance with the License. * * You may obtain a copy of the License at: * https://opensource.org/licenses/BSD-3-Clause *...
/* * Copyright (c) 2003, Intel Corporation. All rights reserved. * Created by: crystal.xiong REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. */ /* * mq_unlink() test plan: * If ...
#include <mm/mmu.h> #include <mm/kalloc.h> #include <mm/kmalloc.h> #include <mm/shm.h> #include <kstring.h> #include <kernel/core.h> #include <kernel/kernel.h> #include <kernel/system.h> #include <kernel/hw_info.h> #include <kernel/proc.h> #include <kernel/irq.h> #include <kernel/schedule.h> #include <kernel/kevqueue.h...
/* mfc_io.c Input and Output routines for working with cepstra files. Works with old and new formats, any byteorder, streams if necessary Functions: mfc_fopen mfc_feof mfc_fclose mfc_fseek mfc_fread mfc_fwrite */ #include <sys/types.h> #include <sys/stat.h> #include <sys/file.h> /* added by JGF */ #include ...
/* Author: <NAME>, U11308313 */ /* Adapted from provided nibbler and hellofb code */ /* Necessary includes for device drivers */ #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> /* printk() */ #include <linux/slab.h> /* kmalloc() */ #include <linux/fs.h> /* everything... */ #include <linux/er...
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <aos/aos.h> #include <uservice/uservice.h> #include <uservice/eventid.h> #include <netmgr.h> #include <netmgr_service.h> #include <devices/hal/ethernet_impl.h> typedef struct { netmgr_hdl_t hdl; eth_setting_t config; } param_eth_setting...
/* * Apple Mac OS X Lion Kernel <= xnu-1699.32.7 except xnu-1699.24.8 NFS Mount Privilege Escalation Exploit * CVE None * by <NAME> <kenzley [dot] alphonse [at] gmail [dot] com> * * * Notes: * This exploit leverage a stack overflow vulnerability to escalate privileges. * The vulnerable function nfs_convert_o...
/* http-dir.c * * Copyright (c) 2000 <NAME> and <NAME>. Use may be in * whole or in part in accordance to the General Public License (GPL). * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF ...
#include "stm32f4xx_conf.h" #include "cnc.h" #include "core_cm4.h" #include "core_cmInstr.h" static const struct { GPIO_TypeDef *gpio; uint32_t gpioAhb1Periph; SPI_TypeDef *spi; uint8_t spiAlternateFunction; uint32_t spiApb1Periph; uint16_t spiClock, spiMosi, spiMiso, spiEnablePin; } spiPinout ...
/*- * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
/* * sys-clock.c * * Copyright(c) 2007-2019 <NAME> <<EMAIL>> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * 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...
/* Copyright 2019 <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. This program is distributed in the hope th...
/* Muon - a new kind of rts * Copyright 2012 <NAME> <<EMAIL>> and <NAME> (mr3d/h4xxel) * * This file is part of Muon. * * Muon 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 3 of the Lic...
#include <evcon-ev.h> #include <evcon-allocator.h> #include <evcon-backend.h> #include <evcon-config-private.h> #include <glib.h> #define UNUSED(x) ((void)(x)) /* ev loop wrapper */ static void evcon_ev_free_loop(evcon_loop *loop, void *loop_data, void *backend_data) { UNUSED(loop); UNUSED(backend_data); UNUS...
#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> char *exec; struct Arguments { char *filename; char *byte_ordering; char *output_filename; }; //1032//2301// int print_usage() { fprintf(stderr, "Swap byte order of a file.\n"); fprintf...
// Copyright 2017, 2020 <>< <NAME>. See README.md for copyright details. #include <stm32f0xx_rcc.h> #include <systems.h> #include <usb.h> #include <usbconfig.h> #include <adc.h> #include "touch.h" #include <string.h> #include <ws2812.h> RCC_ClocksTypeDef RCC_Clocks; volatile int r; void SysTick_Handl...
/* * OQS OpenSSL 3 key handler. * * Code strongly inspired by OpenSSL crypto/ec key handler but relocated here * to have code within provider. * * TBC: OQS license */ #include <openssl/err.h> #include <openssl/params.h> #include <openssl/core_names.h> #include <string.h> #include "prov/oqsx.h" /// Provider ...
/* poly/qr.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later ver...
#include <assert.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define _HS_RANDOM rand int64_t hs_now(void) { time_t n = time(NULL); assert(n >= 0); return (int64_t)n; } void hs_date( int64_t now, uint32_t *year, uint32_t *month, ...
/******************************************************************************* Copyright (C) 2015 Annapurna Labs Ltd. This file may be licensed under the terms of the Annapurna Labs Commercial License Agreement. Alternatively, this file can be distributed under the terms of the GNU General Public License V2 as publ...
/* sinhl.c * * Hyperbolic sine, long double precision * * * * SYNOPSIS: * * long double x, y, sinhl(); * * y = sinhl( x ); * * * * DESCRIPTION: * * Returns hyperbolic sine of argument in the range MINLOGL to * MAXLOGL. * * The range is partitioned into two segments. If |x| <= 1, a * rational ...
/***************************************************************************** * filesystem.c: Common file system helpers ***************************************************************************** * Copyright (C) 2005-2006 VLC authors and VideoLAN * Copyright © 2005-2008 <NAME> * * Authors: <NAME> * * This p...
// // Created by rutko on 04.04.2019. // #include <stdio.h> #include <string.h> #include <stdlib.h> #include "bmp.h" BMPImage *read_bmp(FILE *fp, char **error) { BMPImage *image = malloc(sizeof(*image)); if (!_check(image != NULL, error, "Not enough memory")) { return NULL; } rewind(fp); i...
#include "../common/cli.h" #include "../common/image.h" #include "../common/io.h" #include "../common/quake-colormap.h" #include "../common/tga.h" #include "../common/wal.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> char *usage = "wal-export FILENAME [-mip N] [-o FILENAME_WITHOUT_...
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, HTServo) #pragma config(Sensor, S1, , sensorI2CMuxController) #pragma config(Sensor, S2, HTIRS2, sensorI2CCustom) #pragma config(Motor, mtr_S1_C1_1, leftDrive, tmotorTetrix, PIDControl, reversed, encoder) #pragma config(Motor...
/* ** $Id$ ** Library to use TrueType fonts with Scrupp ** See Copyright Notice in COPYRIGHT */ #include "Main.h" #include "Macros.h" #include "Font.h" #include "Graphics.h" #include "physfsrwops.h" #include <SDL_ttf.h> #define checkfont(L) \ (TTF_Font **)luaL_checkudata(L, 1, "scrupp.font") static int Lua_Font_lo...
#include "sersendf.h" /** \file sersendf.c \brief Simplified printf implementation */ #include <stdarg.h> #ifndef SIMULATOR #include <avr/pgmspace.h> #endif #include "serial.h" #include "sermsg.h" // void sersendf(char *format, ...) { // va_list args; // va_start(args, format); // // uint16_t i = 0; // uint8_t...
/* * meshbatch.c * * Created on: Dec 15, 2016 * Author: tobchen */ #include "meshbatch.h" #include <SDL2/SDL.h> #include <GL/glew.h> #include "renderer.h" #include "gl.h" #include "instance.h" #include "camera.h" #include "math.h" typedef struct tobyg_mesh_batch_element { GLubyte nameLength; char* lett...
#include <stdio.h> #include <stdlib.h> #include "fila_contentores.h" #include "armazem.h" void imprimeArmazem(armazem *armz); int main() { int i; contentor *c11, *c12, *c13, *c14, *c15, *c16, *c17, *c18, *c19, *c110, *c111, *c112, *c113, *c2; armazem *armz = armazem_novo(4, 3); printf("Armazem Portua...
/* See LICENSE file for copyright and license details. */ #include "internals.h" #if defined(__x86_64__) && !defined(ZAHL_NO_ASM) # define ASM3(code) \ __asm__ __volatile__ (code : [x]"+r"(carry), [a]"+r"(ac), [b]"+r"(bc), [c]"+r"(cc)) # define ASM2(code) \ __asm__ __volatile__ (code : [x]"+r"(carry), [a]"+r"(ac...
#define MA_DEBUG_OUTPUT #define MA_IMPLEMENTATION #include "../miniaudio.h" #include "ma_mixing.h" ma_mixer g_mixer; ma_mixer g_mixerMusic; ma_mixer g_mixerEffects; ma_noise g_noise; ma_waveform g_waveform; ma_decoder g_decoder; ma_bool32 g_hasDecoder = MA_FALSE; ma_audio_buffer* g_pAudioBuffer; void data_callback(m...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define AVAILABLE_POSITIONS 3 typedef struct { char Name[80]; float ExamGrade; float MathGrade; float BiggestGrade; float BaccalaureateAverage; int Mode; float CollegeAverage; } StudentCharacteristics; /* * FIRST_MODE = 0,8 * Exa...
/* The MIT License (MIT) * * Copyright (c) 2018 <NAME> * * Software repository: MoonNuklear, https://github.com/stetre/moonnuklear * * 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 wi...
/* screen.c */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <sys/types.h> #include "screen.h" #include "term.h" static struct hed_screen *screen; static void handle_sigwinch(int signum) { if (s...
/* modifier 0 means no modifier */ static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) " "AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 " "Safari/537.15 Surf/"VERSION; static char *stylefile = "~/.surf/style.css"; static char *scriptfile = "~/.surf/script.js"; static Bool kioskmode ...
/* * Copyright 2019 Xaptum, 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...
//共计混淆32个符号,共10个.m类 //ZobNavigationController #ifndef ZobNavigationController #define ZobNavigationController ZobClscfGGtX7FB6KeQG7asfzJBa6Dh #endif //ZobViewController #ifndef ZobViewController #define ZobViewController ZobClsM7r3Hebyr2mN2X8i2GmiMRiMP #endif //ZobButton #ifndef ZobButton #define ZobButton ZobClsJ...
/* * Q2 * by <NAME> 316961101 * Task 4 - Binary Trees * MTA */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef int BOOL; #define FALSE 0 #define TRUE 1 #define SIZE 100 typedef struct treeNode { char data; struct treeNode *left; struct treeNode *right; } TreeN...
/***************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * ...
/** * @file lapacke_demo.c * @brief Demonstrate LAPACKE functionality by performing QR decomposition. * * Linking Intel MKL can be a pain, but the Intel Math Kernel Library Link Line * Advisor helps generate the linker line for you, which on Ubuntu 20.04 LTS is * * -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl...
/////////////////////////////////////////////////////////////////////////////// // Various synchronisation utilities // Copyright 2020 Cambridge Quantum Computing Ltd. All Rights Reserved. // Original: JGilmore (2020/06/23 15:26:31) // // Licensed under the Apache License 2.0 (the "License"). You may not use // this f...
/* 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 ...
/**************************************************************************** * * * GNAT RUN-TIME COMPONENTS * * * * ...
#include<stdio.h> #include<string.h> #include<fcntl.h> #include<signal.h> #include<errno.h> #include<stdlib.h> #include<sys/types.h> #include<sys/stat.h> #define __USE_UNIX98 #include<unistd.h> #include<cspatch.h> int main(void) { int h = open(FILENAME, O_RDWR), i, count = 0; unsigned char buf[6], sp; struct { ...
/* Command-line options for VPR place_and_route */ /* Add any option by following the format of t_opt_info */ t_opt_info vpr_place_and_route_opts[] = { /* File names */ {"net_file", "--net_file", 0, OPT_WITHVAL, OPT_CHAR, OPT_OPT, OPT_NONDEF, "Specify the post-packing netlist"}, /* General options */ {"timing_d...
// Standard library includes. #include <stdint.h> #include <stdio.h> #include <string.h> // Device header file. #ifdef VVC_F1 #include "stm32f1xx.h" #elif VVC_L4 #include "stm32l4xx.h" #endif #include "ringbuf.h" #define RINGBUF_SIZE ( 128 ) volatile char rb_buf[ RINGBUF_SIZE + 1 ]; ringbuf rb = { len: RINGBUF...
#include "easyio.h" #define LED 33 #define KEY 0 #define uart_used UART_NUM_0 #define PATTERN_CHR_NUM (3) static const char *TAG = "uart_events"; static QueueHandle_t uart0_queue; // 任务句柄,包含创建任务的所有状态,对任务的操作都通过操作任务句柄实现 TaskHandle_t led_task_Handler = NULL; // led_task 任务,控制LED闪烁 void led_task(void* ar...
// Copyright 2017 ETH Zurich and University of Bologna. // Copyright and related rights are licensed under the Solderpad Hardware // License, Version 0.51 (the “License”); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://solderpad.org/licenses/SHL-0....
/* Copyright 2011 Dimok This code is licensed to you under the terms of the GNU GPL, version 2; see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt */ #include <stdio.h> #include <stdint.h> #include <stdarg.h> #include "string.h" #include <gccore.h> #include "elf_abi.h" #define SYSTEM_ARG...
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* * iget - The irods get utility */ #include "rodsClient.h" #include "parseCommandLine.h" #include "rodsPath.h" #include "getUtil.h" void usage (); int main...
/* * @file heap.c * @author <NAME> */ #include "heap.h" #include "vect.h" #include <stdlib.h> #include <string.h> #include <math.h> // struct definitions struct ds_heap { ds_vect* v; size_t element_size; ds_heap_type type; size_t(*left_is_up)(ds_vect* h, int left, int right); }; // helper functions static in...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct node { int key; char color[2]; char t_id[100]; struct node *p; struct node *left; struct node *right; }; typedef struct node *node; struct tree { node root; node nil; }; node Create_Node(int key) { node x = (node) malloc (sizeof( struct node...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" static Ref pgrpid; static Ref mountid; Pgrp* newpgrp(void) { Pgrp *p; p = smalloc(sizeof(Pgrp)); p->ref = 1; p->pgrpid = incref(&pgrpid); p->pin = Nopin; p->progmode = 0644; return p; } void ...
/* File: omp_trap1.c * Purpose: Estimate definite integral (or area under curve) using trapezoidal * rule. * * Input: a, b, n * Output: estimate of integral from a to b of f(x) * using n trapezoids. * * Compile: gcc -g -Wall -fopenmp -o omp_trap1 omp_trap1.c * Usage: ./omp_trap1 <num...
/* $OpenBSD: reg_constant.c,v 1.2 2003/07/30 21:30:31 jason Exp $ */ /* * reg_constant.c * * All of the constant FPU_REGs * * * Copyright (C) 1992,1993,1994 * <NAME>, 22 Parker St, Ormond, Vic 3163, * Australia. E-mail <EMAIL> * All rights reserved. * * This co...
/* * This config file is for the Sandisk Sansa Clip */ /* For Rolo and boot loader */ #define MODEL_NUMBER 40 #define MODEL_NAME "Sandisk Sansa Clip" #define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_CRC 0 #define HW_SAMPR_CAPS SAMPR_CAP_ALL /* define this if you have recording possibility *...
/* * Expand msdfs targets based on client IP * * Copyright (C) <NAME>, 2004 * * 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 3 of the License, or * (at your option) any ...
/** -*- C -*- * \file * * \brief TWI side of the TWI-I2C bridge * * Copyright (c) 2014-2015 <NAME> <<EMAIL>>. * All rights reserved. * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * ...
/* * Problem: UVa 101 The Blocks Problem * Lang: ANSI C * Time: 0s * Author: minix */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 25 #define M 20 typedef struct _block { int seq; struct _block *top; }Block; typedef struct _node { Block *top; Block *ori; Block *pre; Block *r...
#include <elf.h> #include <fixed.h> #include <uefi.h> typedef struct { void (*clear)(); u16 (*getc)(); void (*puts)(u16 *); void (*setattr)(u8 attr); } ROCKCANDY_LIBRARY; EFI_SIMPLE_TEXT_INPUT_PROTOCOL *ConIn; EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *ConOut; void clear() { ConOut->ClearScreen(ConOut); } u16 getc() { ...
// // Created by xiazihao on 17-2-21. // #include <hd.h> #include <fs.h> #include <usr.h> #include <lib.h> #include <proto.h> u8 *fsbuf = (u8 *) 0x600000; const int FSBUF_SIZE = 0x100000; static void mkfs(); void task_fs() { SuperBlock superBlock; printf("\nfile system task\n"); open_hd(); mkfs(); ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "escritor.h" #include "tabela_de_simbolos.h" #include "token.h" char* tipo_lexema_nome[] = { "ID", "Inteiro", "Duplo", "Char", "String", "Operador Soma", "Operador Soma Um", "Operador Subtracao", "Operador Subtrair ...
/* * Copyright (c) International Business Machines Corp., 2001 * * 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....
/* ******************************************************************************** */ /* */ /* Systool - a Neko VM library */ /* Copyright (c)2006 */ /* <NAME>, <NAME>, <NAME>, <NAME> */ /* */ /* This library is free software; you can redistribute ...
// // HHZConfig.h // iOS-HHZConfig // // Created by 陈哲是个好孩子 on 2017/6/18. // Copyright © 2017年 陈哲是个好孩子. All rights reserved. // #import "HHZConfigTool.h" #ifdef DEBUG #define HHZLog(format, ...) printf("[Time:%s]\n Method:%s\n Line:%d--> %s\n", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:for...
/* Tests clBuildProgram, passing the user options etc. Copyright (c) 2013 <NAME> and Kalray 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, ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "bsp/board.h" #include "tusb.h" #include "usb_descriptors.h" #include "pico/stdlib.h" #include "hardware/gpio.h" /// HID Gamepad Protocol Report. typedef struct TU_ATTR_PACKED { uint16_t buttons; ///< Buttons mask for currently pressed buttons } hid...
#include "RepoLogic.h" #include "LinkedList.h" #include "RepoData.h" #include "Utils.h" #include <stdlib.h> #include <string.h> bool periodic_is_active_within_time_range(PeriodicReservation *per, Timestamp start, Timestamp end) { if (per->active_until <= start) return fa...
// SPDX-License-Identifier: GPL-2.0 /* * Test that loads/stores expand the stack segment, or trigger a SEGV, in * various conditions. * * Based on test code by <NAME>. */ #undef NDEBUG #include <assert.h> #include <err.h> #include <errno.h> #include <stdio.h> #include <signal.h> #include <stdlib.h> #include <str...
/****************************************************************************** * @file main.c * @brief Use embedded data flash as storage to implement a USB Mass-Storage device. * @note * Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved. *************************************************...
#include "phi_lib/phi_midi.h" static const phi_midi_cfg_t * phi_midi_cfg = NULL; typedef struct phi_midi_sysex_state_s { uint8_t buf[PHI_MIDI_SYSEX_MAX_LEN]; size_t len; } phi_midi_sysex_state_t; static phi_midi_sysex_state_t sysex_state; void phi_midi_init(const phi_midi_cfg_t * cfg) { chDbgCheck(cfg &...
/* misc_tools.c * * * Copyright (C) 2014 Toxic All Rights Reserved. * * This file is part of Toxic. * * Toxic 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 3 of the License, or ...
/* Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
/* open-dobot firmware. Find driver and SDK at https://github.com/maxosprojects/open-dobot Author: maxosprojects (March 18 2016) Additional Authors: <put your name here> Version: 1.2.2 License: MIT */ /** This file is left as an example of how would one do HW stepping on RAMPS using timer. Unfortunaly, this approa...
/* * gbsplay is a Gameboy sound player * * 2003-2005,2008 (C) by <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Licensed under GNU GPL v1 or, at your option, any later version. */ //#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <ctype.h> #include <string.h> #...
#include <dali_101.h> #include <stdio.h> #include <assert.h> static void dump_msg(struct dali_msg *msg) { printf("%d: %04x [", msg->seq, msg->flags); switch(msg->flags & DALI_FLAGS_LENGTH) { case DALI_FLAGS_LENGTH_24: printf("%02x %02x %02x",msg->frame[0],msg->frame[1],msg->frame[2]); break; case DALI_...
#include "functions.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> // #include "SFMT-src-1.4.1/SFMT.h" #ifndef DEBUG_RESIZE #define DEBUG_RESIZE 0 #endif static int min(int a, int b) { return a < b ? a : b; } /** * Method implementations */ // Starting capacity of the hash table is 2^4 entries. ...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> #include "include/cpu.h" #include "include/helpers.h" #include "include/insts.h" #include "include/pgb.h" #include "include/prio_q.h" #include "include/queue.h" #include "include/ram.h" #include "include/structs.h" ...
/* Copyright (c) 2020 <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 restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
/* * i2c * * Copyright © 1998, 2003 Vita Nuova Limited. */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "../port/error.h" typedef struct I2Cdir I2Cdir; enum{ Qdir, Qdata, Qctl, }; static Dirtab i2ctab[]={ ".", {Qdir, 0, QTDIR}, 0, 0555, ...
// // interface.c - does the text routines for checkers // #include <stdio.h> #include "checkers.h" #include "interface.h" #include "bool.h" void movetonotation(position p, move m, char *str, int color) { /* make a notation out of a move */ /* m is the move, str the string, color the side to mo...
//modify by gladiator #include <ansi.h> #include <combat.h> string name() { return HIY "破" HIG "定" HIC "軍" HIW "山" NOR; } inherit F_SSERVER; int perform(object me, object target) { object weapon, weapon2; int damage, i, n; string msg; int ap, dp; if (! target) { ...
void reserve_terminate(); void reserve_tap(); void reserve_tap_define(); void reserve_tap_system(); void reserve_tap_interupt(); void reserve_tap_process(); void reserve_tap_cycle(); //reserve stream void reserve_stream() { while (true) { fc_getline(); if (active_script[line-1]=="+terminate") { reserve_...
/* Copyright (c) 2011,2012 <NAME> <<EMAIL>>. * Modifications by <NAME> 2014-2015 <<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 3 of the License, or * (at your ...
#include "bb.h" #include <stdio.h> #include <string.h> #include "opt/fn.h" #define SWAP(x, y) \ t = (x); \ (x) = (y); \ (y) = t; #define CLEAR(x) vecSetSize((x), 0) struct bb_seq_module_t * bbSeqModuleNew() { struct bb_seq_module_t *m = malloc(sizeof(struct bb_seq_module_t)); ...
/** * @file process.c * @author bwisn (bwisn_dev (at) outlook (dot) com) * @brief * @version 0.1 * @date 24-06-2021 * * */ #include <errno.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/prctl.h> #include <sys/reboot.h>...
/* * * sshl2tp_st_tunnel.c * * Author: <NAME> <<EMAIL>> * * Copyright: * Copyright (c) 2002, 2003 SFNT Finland Oy. * All rights reserved. * * General help states for control connection (tunnel) threads. * */ #include "sshincludes.h" #include "sshl2tp_internal.h" #define SSH_DEBUG_MOD...
/** * rutabaga: an OpenGL widget toolkit * Copyright (c) 2013-2018 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyr...
/** \file * \brief Motif Driver TIPS Control * * See Copyright Notice in "iup.h" */ #include <Xm/Xm.h> #include <Xm/Label.h> #include <stdio.h> #include "iup.h" #include "iup_attrib.h" #include "iup_str.h" #include "iup_drv.h" #include "iup_drvfont.h" #include "iupmot_drv.h" #include "iupmot_color.h" /* Defa...
/* See LICENSE file for copyright and license details. */ #include "common.h" static const char *digits[255] = { ['#'] = "#", ['*'] = "*", ['+'] = "00", ['0'] = "0", ['1'] = "1", ['2'] = "2", ['3'] = "3", ['4'] = "4", ['5'] = "5", ['6'] = "6", ['7'] = "7", ['8'] = "8", ['9'] = "9", ['A'] = "2", ['B'] = "2", ['C']...
#include "header.h" #include "lexicalCheck.h" typedef myvar* (*pf2type) (myvar*,myvar*); //------------------------------------------------------------------------------- /*inline*/ myvar* _toTypeInt (myvar*,myvar*); /*inline*/ myvar* _toTypeStr (myvar*,myvar*); /*inline*/ myvar* _toTypeFlt (myvar*,myvar*); /*inli...
/* File implementing a system to manage three queues, each with a different priority level (0, 1, 2, from lowest to highest). */ #include "triple_queue_gamb.h" #include "queue_gamb.h" Queue normal_q; // no priority Queue priority_q; ...
/* * BSD 3-Clause License * * Copyright (c) 2017-2018, plures * 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, * thi...
#include "mgos.h" #include "mg_bthing_sdk.h" #include "mgos_bflowsens_gpio.h" #include "mgos_bflowsens.h" #ifdef MGOS_HAVE_MJS #include "mjs.h" #endif struct mg_bflowsens_gpio_cfg { mgos_bflowsens_t sensor; int pin; enum mgos_gpio_pull_type pull_type; bool high_pulse; float flow_ratio; int64_t last_sampl...
/* * Copyright (c) International Business Machines Corp., 2001 * * 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 late...
/* * Calculates a date from a string (generally, an argument string) * Copyright (c) 2003 Pertimm by <NAME> * Dev : December 2003 * Version 1.0 */ #include <loggen.h> #define DOgMaxDateElement 3 struct og_date_element { int is; char s[1024]; }; struct og_month { int is; char *s; }; ...
/* * Copyright (C) 2014 Canonical, Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY ...
/* Copyright (c) 2016 <NAME> */ #pragma once #include "common.h" #include "util.h" typedef struct lef lef_t; typedef struct lef_xy lef_xy_t; typedef struct lef_geo lef_geo_t; typedef struct lef_geo_shape lef_geo_shape_t; typedef struct lef_geo_layer lef_geo_layer_t; typedef struct lef_geo_via lef_geo_via_t; typedef s...
#include <assert.h> #include <stdio.h> #include <string.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> #include "silly.h" #include "compiler.h" #include "silly_log.h" #include "silly_malloc.h" #include "silly_queue.h" #include "silly_monitor.h" #include "silly_worker.h" #define max(a, b) ((a) > (b) ? (a...