Giter VIP home page Giter VIP logo

c99sh's People

Contributors

albuspiroglu avatar flipcoder avatar producermatt avatar rhysu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

c99sh's Issues

Problems with non-RC #includes?

Seeing repeated include issues with a script like the following:

#!/home/rhys/bin/cxxsh -m
#include <random>
using namespace std;

which should compile without incident. Problem may be for any include not in an RC file, but I've not tracked it down.

Add a -Wall -Werror command line flag

Would aid having small, clean scripts to have a single flag enact -Wall -Werror. Maybe worth separating the two. Certainly something possible in an RCfile.

Support dual shebang/compiled behavior

Is there another way to write the shebang line #!/usr/bin/env c99sh, so that a .c file supports both c99sh invocation, as well as traditional gcc compilation? I think this shebang would be rejected by most C compilers?

Add command line flag #including C99 standard headers

Provide a single command line option that will include the useful majority of C99. This might include a subset of

#include <alloca.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <regex.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include <tgmath.h>
#include <time.h>

as well as -lm. Intent is to simplify here documents.

stdin not handled properly

Turns out this doesn't read from stdin when run...

#!/home/rhys/bin/c99sh -sm

char name[255] = "Oxford";
int age = 8;

puts("What's your name?");
scanf("%s", name);
puts("What's your birthday?");
printf("Hello, %s. You are %d years old.\n", name, age);

License?

What license is this code under?

Add regression suite

Use the examples and some diff magic (or better) to cook a regression testing suite.

Possibly fire up compiler early to amortize load time

Might be possible to bring up the compiler early, in the background, against a named pipe. This would let the OS do its thing for the compiler while we're out hitting RC files and pkg-config. Small chance it'll improve latency.

bash: unbound var "pkg"

1> bash c99sh
c99sh: line 126: pkg: unbound variable

1> bash --version
GNU bash, Version 4.3.30(1)-release (x86_64-pc-linux-gnu) (Debian Jessie)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.