Changeset 11084 for trunk/Ohana/src/opihi/pcontrol/pcontrol.c
- Timestamp:
- Jan 12, 2007, 4:26:31 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/pcontrol.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/pcontrol.c
r10693 r11084 44 44 set_str_variable ("RCFILE", opihi_rcfile); 45 45 46 # ifdef HELPDIR_DEFAULT 47 set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT)); 46 # ifdef DATADIR_DEFAULT 47 { 48 char *datadir; 49 char *helpdir; 50 char *modules; 51 datadir = MACRO_NAME(DATADIR_DEFAULT); 52 /* set_str_variable ("DATADIR", datadir); */ 53 ALLOCATE (helpdir, char, strlen(datadir) + strlen("/help") + 2); 54 sprintf (helpdir, "%s/help", datadir); 55 set_str_variable ("HELPDIR", helpdir); 56 free (helpdir); 57 ALLOCATE (modules, char, strlen(datadir) + strlen("/modules") + 2); 58 sprintf (modules, "%s/modules", datadir); 59 set_str_variable ("MODULES:0", modules); 60 set_int_variable ("MODULES:n", 1); 61 free (helpdir); 62 } 48 63 # endif 49 64
Note:
See TracChangeset
for help on using the changeset viewer.
