Giter Club home page Giter Club logo

cfunctions's People

Contributors

benkasminbullock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cfunctions's Issues

Garbage output from ok-verbatim.c test

The output from running cfunctions on tests/ok-verbatim.c is utter nonsense:

/*
This file was generated by the following command:

./cfunctions tests/ok-verbatim.c

*/
#ifndef CFH_OK_VERBATIM_H
#define CFH_OK_VERBATIM_H


#line 16 "tests/ok-verbatim.c"
typedef int fuga;

#if 0
 99
#line 21 "tests/ok-verbatim.c"

#if 0

#endif
int jub;

#endif /* 0 */

An extra #if 0 has been added to the output, and there is also a stray 99 in the output.

Line numbers are wrong in many cases

#include "ok-arg.h"

int funkyfunc (int x)

in link-arg.c results in

#line 4 "link-arg.c"
int funkyfunc (int x );

in the output, obviously off by one.

Function prototype bug

bool (*libraryfunction_d)(custom_type_t *location) = NULL;

Results in:

extern bool ;

Instead of

extern bool (*libraryfunction_d)(custom_type_t *location);

-D trad is given by -D help but it appears not to work

$ ~/projects/cfunctions/src/cfunctions -D help
The following flags may be passed after -D:
       tag: debug tag creation                                                
      func: debug function and function argument                              
       cpp: debug C preprocessor-like actions                                 
   comment: debug C comments                                                  
     brace: debug handling of { and }                                         
       arg: debug function arguments                                          
      fptr: debug function pointers                                           
    string: debug C strings                                                   
      flex: debug flex lexer                                                  
      trad: debug pre-ANSI (traditional C) handling                           
      help: debug Print these messages                 

but

~/projects/cfunctions/src/cfunctions -D trad cdecl.c 
cfunctions: warning: unknown debug flag 'trad': see the Cfunctions manual for a list of possible debugging flags.

Bug with "make test"

Somewhere there is a bug whereby "test.perl" is not generated under some circumstances.

__attribute__ ((noreturn)) breaks it

static void print_usage_message () __attribute__ ((noreturn));

produces an error

/home/ben/software/install/bin/cfunctions -in log-parse.c
cfunctions:argument.c:178: internal error: cfunctions:argument.c:178: internal error: no [ in suffix, string is __attribute__.

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.