File: patch-jack-rack-loadfile

package info (click to toggle)
freewheeling 0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,564 kB
  • ctags: 2,681
  • sloc: cpp: 22,418; sh: 3,711; xml: 2,879; makefile: 78; ansic: 12
file content (34 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- jack-rack-1.4.3/src/main.c
+++ jack-rack-1.4.3/src/main.c
96a97
>   printf(" -f, --file <string>         %s\n", _("Load <string> .rack at start"));
106,107c107,109
< 
<   const char * options = "hps:ionc:tD:";
---
>   char *loadfile = 0;
>   
>   const char * options = "hps:ionc:tDf:";
118a121
>     { "file", 1, NULL, 'f' },
211a215,219
> 
>       case 'f':
> 	loadfile = (char *) malloc(sizeof(char) * (strlen(optarg)+1));
> 	strcpy(loadfile,optarg);
> 	break;
237c245,256
<   
---
> 
>   /* Load a file at startup? */
>   if (loadfile) {  
>     int err;
>     
>     printf("Loading file: '%s'\n",loadfile);
>     err = ui_open_file (global_ui, loadfile);
>     
>     if (!err)
>       ui_set_filename (global_ui, loadfile);
>   }
>