Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!svin02!eba!al.ele.tue.nl!pim From: pim@ele.tue.nl (Pim Buurman) Newsgroups: comp.windows.x.motif Subject: UIL include strategy Message-ID: <555@al.ele.tue.nl> Date: 14 Sep 90 15:13:39 GMT Sender: news@eba.eb.ele.tue.nl (The News system) Organization: Eindhoven University of Technology, The Netherlands Lines: 41 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