www.delorie.com/gnu/docs/gcc/gnat_ug_170.html   search  
 
Buy the book!


Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

13.3 Krunching Method

The initial file name is determined by the name of the unit that the file contains. The name is formed by taking the full expanded name of the unit and replacing the separating dots with hyphens and using ^lowercase^uppercase^ for all letters, except that a hyphen in the second character position is replaced by a ^tilde^dollar sign^ if the first character is ^a, i, g, or s^A, I, G, or S^. The extension is .ads for a specification and .adb for a body. Krunching does not affect the extension, but the file name is shortened to the specified length by following these rules:

Of course no file shortening algorithm can guarantee uniqueness over all possible unit names, and if file name krunching is used then it is your responsibility to ensure that no name clashes occur. The utility program gnatkr is supplied for conveniently determining the krunched name of a file.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003