Last change
on this file was 18, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
629 bytes
|
Line | |
---|
1 | /* omflibam.c (emx+gcc) -- Copyright (c) 1993-1996 by Eberhard Mattes */
|
---|
2 |
|
---|
3 | /* Add an OBJ module to an OMFLIB. */
|
---|
4 |
|
---|
5 | #include <stdio.h>
|
---|
6 | #include <stdlib.h>
|
---|
7 | #include <string.h>
|
---|
8 | #include "omflib0.h"
|
---|
9 | #include <sys/omflib.h>
|
---|
10 |
|
---|
11 | int omflib_add_module (struct omflib *p, const char *fname, char *error)
|
---|
12 | {
|
---|
13 | FILE *f;
|
---|
14 | char name[256];
|
---|
15 | char obj_fname[256+4];
|
---|
16 | int ret;
|
---|
17 |
|
---|
18 | omflib_module_name (name, fname);
|
---|
19 | strcpy (obj_fname, fname);
|
---|
20 | _defext (obj_fname, "obj");
|
---|
21 | f = fopen (obj_fname, "rb");
|
---|
22 | if (f == NULL)
|
---|
23 | return omflib_set_error (error);
|
---|
24 | ret = omflib_copy_module (p, p->f, NULL, f, name, error);
|
---|
25 | fclose (f);
|
---|
26 | return ret;
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.