Last change
on this file since 1587 was 1164, checked in by Bruno Cornec, 18 years ago |
Compiler warning solved (M. Loiseleur again !)
Code displaced to ease memeory management in case of exit in libmondo-archive.c
|
-
Property svn:eol-style
set to
native
|
File size:
897 bytes
|
Rev | Line | |
---|
[1088] | 1 | /* mr_file.h
|
---|
| 2 | *
|
---|
| 3 | * $Id$
|
---|
| 4 | *
|
---|
| 5 | * (c) 2006 Bruno Cornec <bruno@mondorescue.org>
|
---|
| 6 | *
|
---|
| 7 | * Header file of mr_file
|
---|
| 8 | *
|
---|
| 9 | * Provided under the GPLv2
|
---|
| 10 | */
|
---|
| 11 |
|
---|
| 12 | #ifndef MR_FILE_H
|
---|
| 13 | #define MR_FILE_H
|
---|
| 14 |
|
---|
| 15 | #include <stdio.h>
|
---|
| 16 |
|
---|
| 17 | /* functions (public methods) */
|
---|
| 18 |
|
---|
[1133] | 19 | #define mr_fopen(x,y) mr_fopen_int((const char *)x, (const char *)y,__LINE__,__FILE__)
|
---|
| 20 | #define mr_fprintf(x,y,args...) mr_fprintf_int(x,__LINE__,__FILE__,y,## args)
|
---|
[1137] | 21 | #define mr_fclose(x) mr_fclose_int((FILE **)&x, __LINE__,__FILE__)
|
---|
| 22 | #define mr_mkdir(x,y) mr_mkdir_int((const char *)x,(mode_t)y,__LINE__,__FILE__)
|
---|
[1088] | 23 |
|
---|
[1133] | 24 | extern FILE *mr_fopen_int(const char *path, const char *mode,int line, char *file);
|
---|
| 25 | extern FILE *mr_fprintf_int(FILE *stream,int line, char *file, const char *fmt, ...);
|
---|
[1164] | 26 | extern void mr_fclose_int(FILE **fd, int line, char *file);
|
---|
[1133] | 27 | extern void mr_mkdir_int(const char *pathname, mode_t mode, int line, char *file);
|
---|
| 28 |
|
---|
[1088] | 29 | #endif /* MR_FILE_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.