Changeset 89f5338


Ignore:
Timestamp:
Dec 23, 2007, 9:18:36 PM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
9aba27b, 61abb18
Parents:
78667f3
Message:
Moving owl_get_datadir to util.c so make test'' works again.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r78667f3 r89f5338  
    6464owl_global g;
    6565
    66 char * owl_get_datadir() {
    67     char * datadir = getenv("BARNOWL_DATA_DIR");
    68     if(datadir != NULL)
    69         return strchr(datadir, '=') + 1;
    70     return DATADIR;
    71 }
    72 
    7366int main(int argc, char **argv, char **env)
    7467{
  • util.c

    r04166e9 r89f5338  
    776776}
    777777
     778char * owl_get_datadir() {
     779    char * datadir = getenv("BARNOWL_DATA_DIR");
     780    if(datadir != NULL)
     781        return strchr(datadir, '=') + 1;
     782    return DATADIR;
     783}
     784
    778785/**************************************************************************/
    779786/************************* REGRESSION TESTS *******************************/
Note: See TracChangeset for help on using the changeset viewer.