pim@ele.tue.nl (Pim Buurman) (09/14/90)
I have found this unlogic behavior of uil (Motif 1.0.A): when I include a file with a slash in its name, then it is not searched for through the list of include directories. For example: > >include file 'uil/XmAppl.uil'; > gives a severe error, unless the file uil/XmAppl.uil exists. From the documentation it is not clear that this is not an error. I have changed uil that its include-behavior is smarter :-). An include-file can be specified relative to the current directory, absolute ( starting with '/' ) or relative to a standard include directory (/usr/include, or -Imyinclude). This change is one line of code in ./clients/uil/UilSrcSrc.c . *** UilSrcSrc.c Fri Sep 14 16:38:55 1990 --- UilSrcSrc.c.org Wed Apr 18 11:02:00 1990 *************** *** 690,696 **** /* If a specific directory was specified, or if the file was found, then we are done. */ ! if ( (c_file_name[0] == '/') || (az_fcb -> az_file_ptr != NULL) ) { goto open_label; } --- 690,696 ---- /* If a specific directory was specified, or if the file was found, then we are done. */ ! if ( (len != 0) || (az_fcb -> az_file_ptr != NULL) ) { goto open_label; } -- ______ Pim Buurman, Phone: +(31)40-473238 Email: pim@ele.tue.nl Eindhoven University of Technology, Dept. of Electr. Eng. (ES/EH 7.24) P.O. Box 513, 5600 MB Eindhoven, The Netherlands