Ignore:
Timestamp:
Mar 12, 2006, 6:02:46 PM (19 years ago)
Author:
bird
Message:

applied OS/2 patches (manually).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/texinfo/makeinfo/files.c

    r2617 r2619  
    202202
    203203  fullpath
    204     = get_file_info_in_path (filename, use_path ? include_files_path : NULL, 
     204    = get_file_info_in_path (filename, use_path ? include_files_path : NULL,
    205205                             &fileinfo);
    206206
     
    369369}
    370370
     371#if defined (__EMX__)
     372/* Convert DOS slashes to UNIX slashes. */
     373static char *slashify (char *filename)
     374{
     375  if (filename)
     376    for (char *s = strchr (filename, '/'); s; s = strchr (s + 1, '/')
     377      *s = '/';
     378  return filename;
     379}
     380#endif
     381
    371382/* Return just the simple part of the filename; i.e. the
    372383   filename without the path information, or extensions.
     
    375386filename_part (char *filename)
    376387{
     388#if defined (__EMX__)
     389  char *basename = filename_non_directory (slashify (filename));
     390#else
    377391  char *basename = filename_non_directory (filename);
     392#endif
    378393
    379394#ifdef REMOVE_OUTPUT_EXTENSIONS
     
    394409  char *result = NULL;
    395410  int i;
     411#ifdef __EMX__
     412  slashify (filename);
     413#endif
    396414
    397415  filename = expand_filename (filename, "");
     
    414432  int initial_character;
    415433  char *result;
     434#ifdef __EMX__
     435  slashify (filename);
     436#endif
    416437
    417438  /* No filename given? */
    418439  if (!filename || !*filename)
    419440    return xstrdup ("");
    420  
     441
    421442  /* Already absolute? */
    422443  if (IS_ABSOLUTE (filename) ||
     
    443464      strcat (localdir, "/");
    444465      strcat (localdir, filename);
     466#ifdef __EMX__
     467      slashify (localdir);
     468#endif
    445469      result = xstrdup (localdir);
    446470      free (localdir);
     
    505529{
    506530  int i;
     531#ifdef __EMX__
     532  slashify (filename);
     533  slashify (input_name);
     534#endif
    507535
    508536  if (filename)
     
    542570      /* Make it so that relative names work. */
    543571      char *result;
    544      
     572
    545573      i = strlen (input_name) - 1;
    546574
     
    580608  char *lastdot, *p;
    581609
    582 #ifdef _PC_NAME_MAX
     610#if defined (_PC_NAME_MAX) && !defined(__EMX__) /* bird: _PC_NAME_MAX => 14 on OS/2. FIXME!!! */
    583611  maxlen = pathconf (fname, _PC_NAME_MAX);
    584612  if (maxlen < 1)
     
    657685      || FILENAME_CMP (current_output_filename, ALSO_NULL_DEVICE) == 0)
    658686    return;
    659    
     687
    660688  /* We need the HTML header in the output,
    661689     to get a proper output_position.  */
Note: See TracChangeset for help on using the changeset viewer.