text
stringlengths
3.08k
10.5k
// // parser.c // // // Created by <NAME> on 02.08.17. // // #include "parser.h" /* * returns 1 if a proposition, 2 if neg, 3 if binary, ow 0 * a proposition is per definition just a letter in our case, not a negated letter (slides) */ int parse(char *g) { int valid = correctFormula(g); if (valid == ERROR...
#include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <fnmatch.h> #include <time.h> #define FILE_LAST_ACCESS 0b000001 #define FILE_LAST_MOD 0b000010 #define FILE_SIZE 0b000100 #define FILE_TYPE 0b00...
#include <assert.h> #include <drm_fourcc.h> #include <sys/mman.h> #include <stdlib.h> #include <wlr/util/log.h> #include <xf86drm.h> #include "drm_dumb_allocator.h" struct format_info { uint32_t format; int bpp; }; static const struct format_info formats[] = { { .format = DRM_FORMAT_XRGB8888, .bpp = 32 }, { .form...
/* * Copyright (C) 2016 <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 ...
/* $Id$ */ /* Copyright (c) 2011-2018 <NAME> <<EMAIL>> */ /* This file is part of DeforaOS Desktop Locker */ /* 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...
#ifdef __APPLE__ #define GL_SILENCE_DEPRECATION 1 #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include <stdlib.h> #include <string.h> #define PT 1 #define STROKE 2 #define END 3 typedef struct charpoint { GLfloat x, y; int type; } CP; CP Adata[] = { {0, 0, PT}, {0, 9, PT}, {1, 10,...
/* SPDX-License-Identifier: GPL-2.0 */ /* * Common defines for v7m cpus */ #define V7M_SCS_ICTR IOMEM(0xe000e004) #define V7M_SCS_ICTR_INTLINESNUM_MASK 0x0000000f #define BASEADDR_V7M_SCB IOMEM(0xe000ed00) #define V7M_SCB_CPUID 0x00 #define V7M_SCB_ICSR 0x04 #define V7M_SCB_ICSR_PENDSVSET (1 << 28) #defi...
/* cx88-vp3054-i2c.c -- support for the secondary I2C bus of the DNTV Live! DVB-T Pro (VP-3054), wired as: GPIO[0] -> SCL, GPIO[1] -> SDA (c) 2005 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License a...
/* * Copyright (C) 2017 Red Hat, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS 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 opt...
/* sw -- script wrap v1.0 * the module that can append the input script and other * needed info to the module which can read and execute it */ // includes #include "script_wrap.h" #include "script_image_csv.h" #include <stdbool.h> // constants const char INPUT_FILE[] = "-f"; const char INTERPRETER[] = "...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "mu.h" #include "../src/symtab.h" int tests_run = 0; static char * test_symtab_lifecycle( void ) { symbol_table_t *pSymTab = new_symbol_table( 10 ); mu_assert( "Allocation.", pSymTab ); mu_assert( "is empty", pSymTab->st_loa...
/* Copyright (c) 2011 <NAME> * * lpxcb_damage.c */ #include "lpxcb_damage.h" #include "lpxcb_table.h" lpxcb_window_t * lpxcb_find_damaged (xcb_connection_t *conn) { lpxcb_connection_t *lpxcb_conn; lpxcb_conn = lpxcb_find_connection(conn); return lpxcb_conn->damaged; } /* Most of this code is taken ...
// gcc -msse2 -O3 -ftree-vectorize test_dcl.c dclhelpers.c os_generic.c -DFLT=double -lpthread -lcblas && valgrind // ./a.out #include "dclhelpers.h" #include "os_generic.h" #include <assert.h> #include <cblas.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "sv_matrix.h" void...
/* * BSD/OSF partition parsing code * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This file may be redistributed under the terms of the * GNU Lesser General Public License. * * Inspired by fdisk, partx, Linux kernel, libparted and openbsd header files. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h...
/****************************************************************************** * * Copyright (C) 2002 - 2018 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
#include<stdio.h> #include "gdal.h" #include "arrays.h" #include<omp.h> /* MODLAND QA Bits 500m long int bits[0-1] * 00 -> class 0: Corrected product produced at ideal quality -- all bands * 01 -> class 1: Corrected product produced at less than idel quality -- some or all bands * 10 -> class 2: Corrected product N...
/* double log1p(double x) * Return the natural logarithm of 1+x. * * Method : * 1. Argument Reduction: find k and f such that * 1+x = 2^k * (1+f), * where sqrt(2)/2 < 1+f < sqrt(2) . * * Note. If k=0, then f=x is exact. However, if k!=0, then f * may not be representab...
/***************************************************************************** * * Copyright (c) 2008-2010, CoreCodec, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistr...
/*- * Copyright (c) 2014 <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 ...
#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; void pgrpnote(ulong noteid, char *a, long n, int flag) { Proc *p, *ep; char buf[ERRMAX]; if(n >= ERRMAX-1) error(Etoobig); memmove(buf, a, n); buf[n] = ...
#include <ctype.h> #include <err.h> #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <wchar.h> #include "pfasta.h" #define BOLD "\033[1m" #define FAINT "\033[2m" #define NORMAL "\033[0m" #define GREY "\033[90m" void coun...
/* * libmicrossdp * Copyright 2014-2015 <NAME> <<EMAIL>> * Released under the terms of the MIT license * * Authors: * <NAME> <<EMAIL>> */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <arpa/inet.h> #include <sys/socket.h> #include <sys/time.h> #include <time.h> #incl...
/* include library */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <signal.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include "/usr/include/...
#include <u.h> #include <libc.h> #include <draw.h> #include <memdraw.h> #include "xmem.h" void xfillcolor(Memimage*, Rectangle, ulong); static int xdraw(Memdrawparam*); int xgcfillcolor = 0; int xgcfillcolor0 = 0; int xgczeropm = 0; int xgczeropm0 = 0; int xgcsimplecolor = 0; int xgcsimplecolor0 = 0; int xgcsimplepm ...
/** MEMORY Generated Driver File @Company Microchip Technology Inc. @File Name memory.c @Summary This is the generated driver implementation file for the MEMORY driver using MPLAB(c) Code Configurator @Description This file provides implementations of driver APIs for MEMORY. Generation...
/* $Id: allocmds.c,v 1.4 1999/05/31 23:35:20 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ /************************************************************************/ /* */ /* (C) Copyright 1989-98 Venue. All Rights Reserved. */ /* Manufactured in the United States of America. */ /* */ ...
/* This file handles the 6 system calls that get and set uids and gids. * It also handles getpid(), setsid(), and getpgrp(). The code for each * one is so tiny that it hardly seemed worthwhile to make each a separate * function. */ #include "pm.h" #include <minix/callnr.h> #include <minix/endpoint.h> #include <li...
/* * $Id: build.c,v 1.5 1997/05/19 12:29:58 mj Exp $ * * Copyright (C) 1991, 1992 <NAME> * Copyright (C) 1997 <NAME> */ /* * This file builds a disk-image from three different files: * * - bootsect: exactly 512 bytes of 8086 machine code, loads the rest * - setup: 8086 machine code, sets up system parm *...
#include <assert.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <GL/gl3w.h> #define SDL_MAIN_HANDLED #include <SDL2/SDL.h> #include "gui.h" #include "rb.h" #include "window.h" #define WINDOW_GL_MAJOR_VERSION 3 #define WINDOW_GL_MINOR_VERSION 2 #define WINDO...
/* * machinarium. * * cooperative multitasking engine. */ #include <machinarium.h> #include <machinarium_private.h> static int mm_clock_cmp(mm_timer_t *a, mm_timer_t *b) { if (a->timeout == b->timeout) { if (a->seq == b->seq) { assert(a == b); return 0; } return (a->seq > b->seq) ? 1 : -1; } else i...
/* * ZMap Copyright 2013 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 */ #include <stdlib.h> #includ...
/* This program is derived from <NAME>'s normalize program and has been modified to use the Audio File Library for file reading and audio data conversion. Copyright (C) 2001, Silicon Graphics, Inc. Copyright (C) 1999-2001, <NAME> This program is free software; you can redistribute it and/or modify it under the...
/* Copyright 2007, 2008 <NAME> (<EMAIL>) This file is part of Velvet. Velvet 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...
/* Copyright 2019 * * 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 t...
#include <net-snmp/net-snmp-config.h> #include "get_pid_from_inode.h" #include <net-snmp/library/system.h> /* strlcpy() */ #include <net-snmp/output_api.h> #include <ctype.h> #include <stdio.h> #if HAVE_STDLIB_H #include <stdlib.h> #endif #if HAVE_STRING_H #include <string.h> #else #include <strings.h> #endif #if HA...
/** * @file StepperMotorDriver.c * @author C-Bot * @date 06 jan. 2018 * @brief L6474 Stepper Motor Driver */ #include "StepperMotorDriver.h" #include "stm32f0xx_hal.h" #include "main.h" #include "spi.h" #include "tim.h" /** * L6474 * * Device Power-up end: * - Registers are set t...
/* * Arm SCP/MCP Software * Copyright (c) 2017-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <fwk_assert.h> #include <fwk_mm.h> #include <fwk_module.h> #include <fwk_notification.h> #include <fwk_status.h> #include <mod_clock.h> #include <mod_log.h>...
#include "bitstream.h" #include <string.h> #include <assert.h> #define bi2by(X) (((X)+7)/8) #define BS_MAXB (BS_MAX*8) /***** Output bitstream *****/ void obs_create(obitstream* obs, FILE* f) { memset(obs->bf, 0, sizeof(obs->bf)); obs->f = f; obs->bits = 0; obs->ubits = 0; } void obs_destroy(obitstream* obs) { ...
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "hash.h" void createItem(Item *item, ub4 key, ub1 * word, int sentence_num) { item->key = key; strcpy(item->word, word); item->frequency = 0; item->sentence_location[item->frequency++] = sentence_num; } ...
#include <sys/cdefs.h> __FBSDID("$FreeBSD: releng/9.3/sys/dev/spibus/spibus.c 229093 2011-12-31 14:12:12Z hselasky $"); #include <sys/param.h> #include <sys/systm.h> #include <sys/malloc.h> #include <sys/module.h> #include <sys/kernel.h> #include <sys/queue.h> #include <sys/sysctl.h> #include <sys/types.h> #include <...
/*---------------------------------------------------------------------------------------------------------*/ /* */ /* Copyright(c) 2009 Nuvoton Technology Corp. All rights reserved. ...
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <fcntl.h> #include <fuchsia/device/c/fidl.h> #include <lib/fdio/directory.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <...
/* ** NAME ** _do_tstep -- do model calculations for 1 timestep ** ** SYNOPSIS ** #include "_snobal.h" ** ** int ** _do_tstep( ** TSTEP_REC *tstep; |* timestep's record *| ** ** DESCRIPTION ** This routine performs the model's calculations for a single timestep. ** It requires...
/* * guess.c - guessing character encoding * * Copyright (c) 2000-2009 <NAME> <<EMAIL>> * * 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...
/* * shell.c * * Copyright 2017 chehw <<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 ...
#include <stdlib.h> #include <string.h> #include "nvml.h" #include "mongoose.h" #include "server.h" #include "monitor.h" static const char* MG_OPTIONS[] = { "listening_ports", "4321", "document_root", "www/", NULL }; static const char* ajax_reply_start = "HTTP/1.1 200 OK\r\n" "Cache: no-cache\r\n" "Cont...
#include "pico_device.h" #include "pico_dev_xemaclite.h" #include "pico_stack.h" static int pico_xemaclite_send(struct pico_device *dev, void *buf, int len) { uint32_t txping_busy, txpong_busy; volatile uint32_t *dword_src_buf, *dword_dst_buf; uint32_t dword, ndwords; struct xemaclite *xdev = (struct x...
/* snpOrthoJoin - given a snpOrtho table, combine species. */ /* I couldn't see how to do this with UNIX join. */ /* Another option is to do it within SQL. */ /* assume panTro2/rheMac2, or discover it? */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for l...
#include <pololu/orangutan.h> /* * buzzer1: for for the Orangutan LV, SV, SVP, X2, Baby-O and 3pi robot. * * Uses the OrangutanBuzzer library to play a series of notes on the * Orangutan's buzzer. It also uses the OrangutanLCD library to * display the notes its playing, and it uses the OrangutanPushbuttons ...
/*------------------------------------------------------------------------ * Copyright 2009 (c) <NAME> <<EMAIL>> * * This file is part of the ZBar Bar Code Reader. * * The ZBar Bar Code Reader is free software; you can redistribute it * and/or modify it under the terms of the GNU Lesser Public License as * ...
#include <stdio.h> #include <cpodes/cpodes.h> #include <cpodes/cpodes_lapack.h> #include <cpodes/cpodes_dense.h> #include <nvector/nvector_serial.h> #define Ith(v,i) NV_Ith_S(v,i-1) /* Problem Constants */ #define RTOL RCONST(1.0e-8) #define ATOL RCONST(1.0e-8) /* Functions Called by the Solver */ static int ...
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * * ...
/* * Copyright (c) 2012-2017, RISE SICS AB * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
/////////////////////////////////////////////////////////////////////////////// // File: sampleAuth.c // SDK: GameSpy Authentication Service SDK // // Copyright (c) IGN Entertainment, Inc. All rights reserved. // This software is made available only pursuant to certain license terms offered // by IGN or its subsidi...
/* UL call demonstrated: ulTIn() Purpose: Reads the user-specified temperature input channels Demonstration: Displays the temperature data for each of the user-specified channels Steps: 1. Call ulGetDaqDev...
#include "thread.h" #include "uint.h" #include "queue.h" #include "task.h" #include "scheduler.h" #include "allocator.h" #include "excep.h" #include "mmu.h" #include "cpio.h" #include "string.h" struct thread* ReadyList = NULL; extern struct thread *threads[thread_numbers]; void UserScheduler(){ if(ReadyList == N...
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/core_blas/core_zheswp.c, normal z -> s, Fri Sep 28 17:38:19 2018 * **/ #include <math.h> #include <plasma_core_bla...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <strings.h> #include <err.h> #include <errno.h> #include <fcntl.h> #include <signal.h> #include <sys/stat.h> #include <sys/types.h> void setup_ipfw_rules(); void run_tcpcryptd(char *); void stop_tcpcryptd(); void teardown_ipfw_rules(); static const c...
/** * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ // Example of reading/writing an external serial flash using the PL022 SPI interface #include <stdio.h> #include "pico/stdlib.h" #include "pico/binary_info.h" #include "hardware/spi.h" #define FLASH_PAGE_SIZE ...
#include <config.h> #include <stdio.h> #include "transform.h" #include "mintops.h" #include <mono/metadata/assembly-internals.h> #include <mono/metadata/mono-config.h> #include <mono/metadata/gc-internals.h> /* return value of "0" equals success */ typedef int (*TestVerifier)(TransformData *td); typedef struct { con...
#include "ds.h" #include <stdlib.h> #include <string.h> #include <stdio.h> expandable *createExpandable() { expandable *space = calloc(1, sizeof(expandable)); space->data = calloc(1, 50 + 1); //50 bytes, last bytes for NULL-terminator space->total_size = 50; return space; } void destroyExpandable(exp...
/* render.c * * Portions of this software are copyright © 2018 The FreeType Project * (www.freetype.org). All rights reserved. * * This comes from the FreeType2 example at * https://www.freetype.org/freetype2/docs/tutorial/example1.c * * I've modified it to be a shared object library for an Erlang * nif. It ta...
// // klog.c // // Kernel logging // // Copyright (C) 2002 <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 // ...
#include "io/ps2kb.h" #include "io/text.h" #include "libc/string.h" #include <stdbool.h> #define USED_SET_1_KEYS 89 #define MAX_EVENT_CALLBACKS 64 static enum keycode key_map[USED_SET_1_KEYS]; void init_ps2_keyboard(enum keyboard_layout layout) { switch (layout) { case KEYBOARD_LAYOUT_QWERTY: ...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stddef.h> #include <unistd.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/ioctl.h> #include <sys/errno.h> #include "ofdpa_datatypes.h" #include "ofdb.h" #include "ofdpa_util.h" #include "ofdpa_porting...
/** ****************************************************************************** * File Name : USB_OTG.c * Description : This file provides code for the configuration * of the USB_OTG instances. ****************************************************************************...
#include <errno.h> #include <stdio.h> #include <string.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> #include <fcntl.h> #include <unistd.h> #include <stdarg.h> #include "switch.h" #include "util.h" #include "ext.h" #include "util_unix.h" #define SBUF 1024 int getport(char *str) { char *bad; ...
/* * Copyright (c) 2005, Swedish Institute of Computer Science * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * no...
/*|----------------------------------------------------------------------------- *| This source code is provided under the Apache 2.0 license -- *| and is provided AS IS with no warranty or guarantee of fit for purpose. -- *| See the project's LICENSE.md for details. ...
/* * librd - Rapid Development C library * * Copyright (c) 2012-2013, <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...
/*****************************************************************/ /* Trabalho pratico 2 | PROG2 | MIEEC | 2015/16 */ /*****************************************************************/ #include <stdio.h> #include <stdlib.h> #include "grafo.h" /* cria elemento da lista de adjacencias */ lista_elem *...
#include <openssl/md5.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> #define STD_BLOCKSIZE 1024 void showHelp(){ printf("\ onmd-rebuild -f <filename> -r <recoveryfile> -v -d -h\n\ \n\ -f <filename> - binary filename, to rebuild.\n\ -r <recoveryfile> - recove...
/****************************************************************************/ /** * @file gxx_angle_gen_calculate_vector.c * @brief Calculate the satellite viewing and solar illumination vectors * @ingroup gpsAngleCoef */ /****************************************************************************/ /* Standard L...
/* * trans.c - main control of the translation process. */ #include "../h/gsupport.h" #include "tproto.h" #include "../h/version.h" #include "tglobals.h" #include "tsym.h" #include "tree.h" #include "ttoken.h" /* * Prototypes. */ static void trans1 (char *filename); void writeUID(char *, FILE *); extern int __m...
#include <lighttpd/base.h> #include <lighttpd/plugin_core.h> GQuark li_network_error_quark(void) { return g_quark_from_string("g-network-error-quark"); } /** repeats write after EINTR */ ssize_t li_net_write(int fd, void *buf, ssize_t nbyte) { ssize_t r; while (-1 == (r = write(fd, buf, nbyte))) { switch (errno...
/*---------------------------------------------------------------------------- * File: ooaofooa_MSG_AM_class.c * * Class: Asynchronous Message (MSG_AM) * Component: ooaofooa * * your copyright statement can go here (from te_copyright.body) *-------------------------------------------------------...
/* LPCUSB, an USB device driver for LPC microcontrollers Copyright (C) 2006 <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 o...
#include "mex.h" #include "math.h" #define G1 prhs[0] #define G2 prhs[1] #define G3 prhs[2] #define OPT prhs[3] #define XI prhs[4] #define ETA prhs[5] #define H1 plhs[0] // Output #define H2 plhs[1] // Output #define H3 plhs[2] // Output #define PI 3.141592653589793 #define NDIMS 3 // select k-...
/*============================================================ ** ** Source: CreateProcessW/test1/parentprocess.c ** ** Purpose: Test to ensure CreateProcessW starts a new process. This test ** launches a child process, and examines a file written by the child. ** This process (the parent process) reads the file crea...
#include "box.h" #include "player.h" #include "level.h" #include "simple_logger.h" #include "gfc_audio.h" #include "pickup.h" #include "entity.h" void pickup_think(Entity *self); void pickup_update(Entity *self); void pickup_activate(Entity *self); void pickup_activate2(Entity *self); void pickup_activate3(Entity *sel...
/* $NetBSD: macho_machdep.c,v 1.2 2001/11/15 07:03:30 lukem Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modi...
/* ** Copyright 2020 Telenor Digital AS ** ** 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...
/***************************************************************************//** * # License * * The licensor of this software is Silicon Laboratories Inc. Your use of this * software is governed by the terms of Silicon Labs Master Software License * Agreement (MSLA) available at * www.silabs.com/about-us/legal/...
/** * description here * @author xupingmao * @since 2016 * @modified 2022/04/17 21:29:55 */ #include "include/mp.h" #include "string.c" #include "list.c" #include "number.c" #include "gc.c" #include "builtins.c" #include "obj_ops.c" #include "dict.c" #include "dict_set.c" #include "function.c" #include "exception...
//============================================================================== // Copyright 2020 <NAME> & <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, i...
/** Copyright (C) 2005 <NAME>, <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, me...
/* Pfaff MAX embroidery file format */ static double maxDecode(unsigned char a1, unsigned char a2, unsigned char a3) { int res = a1 + (a2 << 8) + (a3 << 16); if (res > 0x7FFFFF) { return (-((~(res)&0x7FFFFF) - 1)); } return res; } static void maxEncode(EmbFile* file, int x, int y) { if (!f...
#include "keyboard.h" #include "lib.h" #include "interrupt.h" #include "APIC.h" #include "memory.h" #include "printk.h" /* */ struct keyboard_inputbuffer * p_kb = NULL; static int shift_l,shift_r,ctrl_l,ctrl_r,alt_l,alt_r; void keyboard_handler(unsigned long nr, unsigned long parameter, struct pt_regs * regs) { u...
#include <stdint.h> #include <string.h> #include <stdbool.h> #include <stdio.h> #include <unistd.h> #include <kernel/amc.h> #include <kernel/adi.h> #include <kernel/idt.h> #include <libport/libport.h> #include <libamc/libamc.h> #include <stdlibadd/array.h> #include "kb_driver.h" #include "kb_colemak.h" #include "kb_...
/* * Copyright 2020 <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 l...
#ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif #if defined __INTEL_COMPILER #define _BSD_SOURCE 1 #define _POSIX_C_SOURCE 200809L #endif #include <unistd.h> #include <stdio.h> #include <string.h> #include <fcntl.h> #include <stdlib.h> #include <errno.h> #include <stdlib.h> void usage() { fprintf(stderr, "Usage...
#include "common/fmplayer_file.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <shlwapi.h> #include <stdlib.h> #include <wchar.h> #if !defined(FMPLAYER_FILE_WIN_UTF16) && !defined(FMPLAYER_FILE_WIN_UTF8) #error "specify path string format" #endif static void *fileread(const wchar_t *path, ...
/* $Id$ */ /* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* * C O M P A C T A S S E M B L Y L A N G U A G E G E N E R A T I O N * */ #include <stdlib.h> #include <stdio.h> #include <string.h...
#include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "esp_err.h" #include "file_manage.h" #include "pwm_audio.h" #include "avifile.h" #include "vidoplayer.h" #include "mjpeg.h" static const char *TAG = "avi player"; #define PLAYER...
/* * libfdt - Flat Device Tree manipulation * Testcase for fdt_nop_node() * Copyright (C) 2006 <NAME>, IBM Corporation. * * 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 ver...
/* IP85LO_OpenDevice - description * * Purpose: Open an I/O channel to the DeAnza display device * * Written by: <NAME> * Date: August 21, 1987 * * Calling Sequence: * * STATUS = IP85LO_OpenDevice(Unit, dummylun) * * Parameter List: * Unit: Display device unit number * dummylun: DeAnza logical unit ...
/*********************************************************************** * * Stopwatch with LCD display output. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) 2017-Present <NAME> * Dept. of Radio Electronics, Brno University of Technology, Czechia * This work is licensed ...
/* $NetBSD: dmac_0448.h,v 1.2 1999/02/15 04:36:33 hubertf Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Sony Corp. and <NAME> of Software Research Associates, Inc. * * Redistribution ...
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifdef HAAS_AUDIO_DEMO #include <posix/pthread.h> #else #include <pthread.h> #endif #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include "sound_pcm.h" #include "audio_drv.h" #include "ulog/ulog.h" #define LOG_TAG "[soun...
#include "elHamiltonian.h" // Set H equal to the 4x4 electronic Hamiltonian H(k). // k is in the reciprocal lattice basis (i.e. k = (k_1, k_2, k_3) with // corresponding Cartesian representation k_Cart = k_1 b_1 + k_2 b_2 + k_3 b_3). void ElHamiltonian_Recip(Environment *env, double k[3], gsl_matrix_complex *H) { ...