Changeset 2673 for trunk/emx/src/emxbind
- Timestamp:
- Mar 19, 2006, 6:21:22 AM (20 years ago)
- Location:
- trunk/emx/src/emxbind
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/emx/src/emxbind/emxbind.c
r1282 r2673 160 160 case _MD_LIBRARY: 161 161 162 /* Create a DLL. Save the initialization and termination163 policies after choosing default values for unspecified164 values . */162 /* Create a DLL. Override the module name if specified. Save the 163 initialization and termination policies after choosing default 164 values for unspecified values. */ 165 165 166 166 dll_flag = TRUE; 167 168 if (stmt->library.name[0] != 0) 169 module_name = xstrdup (stmt->library.name); 170 167 171 switch (stmt->library.init) 168 172 { -
trunk/emx/src/emxbind/emxbind.h
r2300 r2673 519 519 520 520 void error (const char *fmt, ...) NORETURN2; 521 void warning (const char *fmt, ...); 521 522 void my_read (void *dst, size_t size, struct file *f); 522 523 void my_read_str (byte *dst, size_t size, struct file *f); -
trunk/emx/src/emxbind/export.c
r1333 r2673 76 76 77 77 name_len = strlen (name); 78 if (name_len >= 128) 79 name_len = 127; 78 if (name_len > 255) 79 { 80 warning("truncating export '%s' to 255 chars (ord %d)!", name, ord); 81 blen = 255; 82 } 80 83 else 81 84 blen = (byte)name_len; -
trunk/emx/src/emxbind/fixup.c
r828 r2673 285 285 286 286 name_len = strlen (name); 287 if (name_len >= 128)288 name_len = 127;289 287 i = 0; 290 288 while (i < procs.len) -
trunk/emx/src/emxbind/utils.c
r18 r2673 49 49 exit (2); 50 50 } 51 52 53 /* Print an warning message. This function is called like printf(). 54 The message will be prefixed with "emxbind: warning: " and a 55 newline will be added at the end. */ 56 57 void warning (const char *fmt, ...) 58 { 59 va_list arg_ptr; 60 61 va_start (arg_ptr, fmt); 62 fprintf (stderr, "emxbind: warning: "); 63 vfprintf (stderr, fmt, arg_ptr); 64 fputc ('\n', stderr); 65 } 66 51 67 52 68 /* Print an out of memory message and abort. */
Note:
See TracChangeset
for help on using the changeset viewer.