Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
efad8b22
Commit
efad8b22
authored
May 26, 2006
by
Browse files
fixed some problems with mapi_errors.c
git-svn-id:
file:///home/svn/mapi/trunk@551
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
3008eaea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
efad8b22
...
...
@@ -87,24 +87,21 @@ mstring.o: mstring.c mstring.h
mapipktdecoder.o
:
mapipktdecoder.c mapipktdecoder.h
$(CC)
$(CFLAGS)
-fPIC
-c
$<
create_error_files
:
errors.mapi
# cat errors.mapi|grep -v "#" > mapi_errors.dat
# cat errors.mapi|grep "#" > mapi_errors.h
mapi.so
:
mapi.o mapiipc.o mapilibhandler.o fhelp.o flist.o parseconf.o mapipktdecoder.o priorities.o printfstring.o mapi_errors.o
$(CC)
-shared
-o
$@
$^
-ldl
$(KEYNOTE_LDADD)
-lpthread
mapi_errors.c
:
errors.mapi
echo
-e
"#ifndef _MAPI_ERRORS_H_
\n
#define _MAPI_ERRORS_H_
\n
"
>
mapi_errors.h
cat
errors.mapi|grep
"^#"
>>
mapi_errors.h
echo
-e
"\ntypedef struct
foobar
{ \nint err_no; \nchar *desc; \n} errorstruct; \n"
>>
mapi_errors.h
echo
-e
"
\n
typedef struct
errstrct
{
\n
int err_no;
\n
char *desc;
\n
} errorstruct;
\n
"
>>
mapi_errors.h
echo
-e
"#endif
\n
"
>>
mapi_errors.h
echo
-e
"#include
\"
mapi_errors.h
\"\n\n
const errorstruct Errors[] =
\n
{"
>
mapi_errors.c
cat
errors.mapi|grep
-v
"#"
|
awk
-F
=
'{print "{" $$1 "," $$2 "},"}'
>>
mapi_errors.c
echo
-e
"{0,0} };
\n\n
"
>>
mapi_errors.c
mapi.so
:
mapi.o mapiipc.o mapilibhandler.o fhelp.o flist.o parseconf.o mapipktdecoder.o priorities.o printfstring.o mapi_errors.o
$(CC)
-shared
-o
$@
$^
-ldl
$(KEYNOTE_LDADD)
-lpthread
mapi_errors.o
:
create_error_files
mapi_errors.o
:
mapi_errors.c mapi_errors.h
$(CC)
$(CFLAGS)
-c
mapi_errors.c
#mapierror.o: mapierror.c mapi.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment