Skip to content

Instantly share code, notes, and snippets.

View AbstractBeliefs's full-sized avatar

Gareth Pulham AbstractBeliefs

  • Scotland
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
int main(int argc, char ** argv) {
int fd;
// Open the Port. We want read/write, no "controlling tty" status, and open it no matter what state DCD is in
int main() {
struct dirent **namelist;
int nf;
char dev[20]="tun0";
char setup[40], utkommando[60];
unsigned char inbuf[2000];
unsigned char outbuf[2000];
int fd;
int fd2;
FILE *fil;
$ clang table.c -std=c99 -ggdb
table.c:17:17: warning: incompatible pointer types initializing 'int *(*)(int *)' with an expression of type 'int *(*[2])(int *)' [-Wincompatible-pointer-types]
for (int* (*manip)(int*) = manipulators; manip++; manip != NULL){
^ ~~~~~~~~~~~~
table.c:17:61: warning: inequality comparison result unused [-Wunused-comparison]
for (int* (*manip)(int*) = manipulators; manip++; manip != NULL){
~~~~~~^~~~~~~
table.c:17:61: note: use '|=' to turn this inequality comparison into an or-assignment
for (int* (*manip)(int*) = manipulators; manip++; manip != NULL){
^~
clang -std=c11 -Wall -ggdb -c main.c -o main.o
main.c:30:18: warning: incompatible pointer types initializing 'node *(*)(node *)' with an expression of type 'node *(*[])(node *)' [-Wincompatible-pointer-types]
for (node* (*optimisation)(node*) = optimisations; optimisation++; optimisation != NULL){
^ ~~~~~~~~~~~~~
main.c:30:85: warning: inequality comparison result unused [-Wunused-comparison]
for (node* (*optimisation)(node*) = optimisations; optimisation++; optimisation != NULL){
~~~~~~~~~~~~~^~~~~~~
main.c:30:85: note: use '|=' to turn this inequality comparison into an or-assignment
for (node* (*optimisation)(node*) = optimisations; optimisation++; optimisation != NULL){
^~
program
: bf[B] { *sequence = addNode(*sequence, $B); }
| program bf[B] { *sequence = addNode(*sequence, $B); }
;
bf
: TOKEN_ADD { $$ = createArithmetic(1); }
| TOKEN_SUB { $$ = createArithmetic(-1); }
| TOKEN_LEFT { $$ = createNavigation(false); }
| TOKEN_RIGHT { $$ = createNavigation(true); }
%{
#include "program_sequence.h"
#include "bf.parse.h"
#include "bf.lex.h"
int yyerror(node* *sequence, yyscan_t scanner, const char *msg) {
printf("Aaa: %s\n", msg);
return 0;
}
/* Copyright (c) 2007 Atmel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
int speed = 0;
char speed_str[5];
void setup() {
}
void loop() {
Compiling scraper-rust v0.1.0 (file:///home/gareth/development/rsstool/ingesters/scraper-rust)
error[E0277]: the trait bound `select::document::Document: std::convert::From<&std::string::String>` is not satisfied
--> src/main.rs:23:15
|
23 | let dom = Document::from(&body);
| ^^^^^^^^^^^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `select::document::Document`
|
= help: the following implementations were found:
<select::document::Document as std::convert::From<tendril::tendril::Tendril<tendril::fmt::UTF8>>>
<select::document::Document as std::convert::From<&'a str>>