No longer truncate module names at 10 characters when constructing paths;
rename some library modules to their full names.
This commit is contained in:
parent
d50a6f99de
commit
893471a42e
|
@ -113,6 +113,7 @@ cprogram {
|
|||
"h+emheaders",
|
||||
"modules+headers",
|
||||
"modules/src/alloc+lib",
|
||||
"modules/src/data+lib",
|
||||
"modules/src/em_code+lib_k",
|
||||
"modules/src/em_data+lib",
|
||||
"modules/src/em_mes+lib",
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <em_arith.h>
|
||||
#include <em_label.h>
|
||||
#include <stdlib.h>
|
||||
#include <astring.h>
|
||||
|
||||
#include "LLlex.h"
|
||||
#include "Lpars.h"
|
||||
|
@ -64,12 +65,7 @@ GetFile(name) char* name;
|
|||
/* Try to find a file with basename "name" and extension ".def",
|
||||
in the directories mentioned in "DEFPATH".
|
||||
*/
|
||||
char buf[15];
|
||||
char *strncpy(), *strcat();
|
||||
|
||||
strncpy(buf, name, 10);
|
||||
buf[10] = '\0'; /* maximum length */
|
||||
strcat(buf, ".def");
|
||||
char* buf = aprintf("%s.def", name);
|
||||
DEFPATH[0] = WorkingDir;
|
||||
if (!InsertFile(buf, DEFPATH, &(FileName)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue