Git Product home page Git Product logo

fcpp's Introduction

Frexx CPP (C Preprocessor)

Copyright (c) by Daniel Stenberg 1993 - 2011

This is a C preprocessor. It is a project based on public domain code, then
forked by Daniel in 1993 and future work has been done under a BSD license.

The C preprocessor is now (mostly?) ANSI C compliant, and some tweaks have
been applied to also make it fairly usable to process other data files, such
as HTML for simple web sites.

WWW:   http://daniel.haxx.se/projects/fcpp/
Code:  https://github.com/bagder/fcpp

fcpp's People

Contributors

bagder avatar jay avatar vszakats 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fcpp's Issues

varadic argument

the following fails

#define MAC2STR(x) x[0],x[1],x[2],x[3],x[4],x[5]
#define FT_DEBUG(fmt, args...) if(pGlobalCtx && pGlobalCtx->debug_level>=2) printf("FT-dbg: "fmt, ##args)

FT_DEBUG("  %02x:%02x:%02x:%02x:%02x:%02x\n", MAC2STR(pCtx->wlan_intf_addr[i]));

gcc -E

if(pGlobalCtx && pGlobalCtx->debug_level>=2) printf("FT-dbg: "fmt, pCtx->wlan_intf_addr[i][0],pCtx->wlan_intf_addr[i][1],pCtx->wlan_intf_addr[i][2],pCtx->wlan_intf_addr[i][3],pCtx->wlan_intf_addr[i][4],pCtx->wlan_intf_addr[i][5]);

fcpp

Frexx C Preprocessor v1.5.1 Copyright (C) by FrexxWare 1993 - 2002.
Compiled Jan 18 2022
#line 1 "[stdin]"
cpp: "[stdin]", line 2: Error: #define syntax error
cpp: "[stdin]", line 2: Warning: Unexpected text in #control line ignored



cpp: "[stdin]", line 4: Warning: Wrong number of macro arguments for "FT_DEBUG"
;

Token-pasting support for number##identifier

This code:

#define K_DOUBLE(x) x##l
K_DOUBLE(0.5)

currently emits:

0.5�l

In an IDE the intermediate token is usually invisible leading to a very confusing compile error. However, it's just the TOK_SEP character being inserted where a concat operation hasn't been detected.

I've "fixed" the issue here: Celtoys@b6f4e10

That may not be the best way of going about this so would appreciate your feedback.

Thanks!

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.