make install fails and a problem with title evaluation.
Bernhard Fischer <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Hi, 1) Since the addition of setup.cfg, i cannot install synopsis anymore: error: can't copy 'build/lib.linux-i686-2.4/lib/libSynopsis.so': doesn't exist or not a regular file when i rm setup.cfg, the build completes again without errors: copying build/temp.linux-i686-2.4/src/lib/libSynopsis.so -> build/lib.linux-i686-2.4/lib I'm trying to install as described in README. Any suggestion? 2) The attached simple example barfs at the title. an error occured trying to evaluate the value of 'title' Haven't looked what went wrong yet, so i thought i quickly ask. Thanks,
Makefile
(text/plain, 470 B)
# Modern distributions already ship synopsis packages (e.g. debian) # If you have an old distribution go to http://synopsis.fresco.org/ hdr := $(wildcard *.h) syn := $(patsubst %.h, %.syn, $(hdr)) docs: html html: $(syn) synopsis -v -d -f HTML -Wf,title="'foo, C implementation -- Documentation'" -o $@ $^ %.syn: %.h synopsis -v -d -p Cxx -I. -l CComments,CPrevious -Wp,preprocess,cppflags="'$(CFLAGS) $(CPPFLAGS)'" -o $@ $< clean: cd . && rm -rf html && rm -f *.syn
foo.h
(text/x-chdr, 1013 B)
/*
* This is something, implementation of foo
*/
#ifndef __FOO_H
#define __FOO_H
/*
* helper funtion for main function
* returns true if argument is greater than 0
* else returns false.
* Note: per C, the return type is implicitely 'int'.
*/
static inline helper1(long long int val);
static inline helper1(long long int val)
{
return (val>0);
}
/*
The bar.
Used to check CPrevious CommentParsers
Other than that it serves no qualified purpose.
This is expected behaviour.
*/
struct bar {
void* member1_fn; /* member_function1. This may do something */
void* member2_fn; /* member_function2. Another function. */
int someint; /* Description of someint */
};
/*
The main function. Some more very descriptive text.
*fn is the function to call
data is the input for fn to operate on.
*/
int foo(void* fn, long long int data);
int foo(void* fn, long long int data)
{
int err=-1;
if ((!(fn)) || (!(helper1(data))))
return(err);
err=(fn(data));
return (err);
}
#endif /* __FOO_H */