mirror of
				https://github.com/onyx-and-iris/vmrcli.git
				synced 2025-11-04 07:01:47 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "a7c0bc1620bc67e8b0932747af596ce8c768dec3" and "a05b029e9d2fae344a15176fea2382c2adc10e54" have entirely different histories.
		
	
	
		
			a7c0bc1620
			...
			a05b029e9d
		
	
		
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -51,6 +51,4 @@ Module.symvers
 | 
			
		||||
Mkfile.old
 | 
			
		||||
dkms.conf
 | 
			
		||||
 | 
			
		||||
.vscode/
 | 
			
		||||
 | 
			
		||||
test*
 | 
			
		||||
.vscode/
 | 
			
		||||
							
								
								
									
										10
									
								
								src/vmrcli.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/vmrcli.c
									
									
									
									
									
								
							@ -32,8 +32,7 @@
 | 
			
		||||
              "\tm: Launch the MacroButtons application\n"                                       \
 | 
			
		||||
              "\ts: Launch the StreamerView application"
 | 
			
		||||
#define OPTSTR ":hk:msc:iID:v"
 | 
			
		||||
#define MAX_LINE 4096 /* Size of the input buffer */
 | 
			
		||||
#define RES_SZ 512    /* Size of the buffer passed to VBVMR_GetParameterStringW */
 | 
			
		||||
#define MAX_LINE 512
 | 
			
		||||
#define COUNT_OF(x) (sizeof(x) / sizeof(x[0]))
 | 
			
		||||
#define DELIMITERS " \t;,"
 | 
			
		||||
 | 
			
		||||
@ -55,7 +54,7 @@ struct result
 | 
			
		||||
    union val
 | 
			
		||||
    {
 | 
			
		||||
        float f;
 | 
			
		||||
        wchar_t s[RES_SZ];
 | 
			
		||||
        wchar_t s[MAX_LINE];
 | 
			
		||||
    } val;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -241,19 +240,18 @@ enum kind set_kind(char *kval)
 | 
			
		||||
void interactive(PT_VMR vmr, bool with_prompt)
 | 
			
		||||
{
 | 
			
		||||
    char input[MAX_LINE];
 | 
			
		||||
    size_t len;
 | 
			
		||||
 | 
			
		||||
    if (with_prompt)
 | 
			
		||||
        printf(">> ");
 | 
			
		||||
    while (fgets(input, MAX_LINE, stdin) != NULL)
 | 
			
		||||
    {
 | 
			
		||||
        input[strcspn(input, "\n")] = 0;
 | 
			
		||||
        if ((len = strlen(input)) == 1 && toupper(input[0]) == 'Q')
 | 
			
		||||
        if (strlen(input) == 1 && toupper(input[0]) == 'Q')
 | 
			
		||||
            break;
 | 
			
		||||
 | 
			
		||||
        parse_input(vmr, input);
 | 
			
		||||
        memset(input, 0, len); /* reset input buffer */
 | 
			
		||||
 | 
			
		||||
        memset(input, 0, MAX_LINE); /* reset input buffer */
 | 
			
		||||
        if (with_prompt)
 | 
			
		||||
            printf(">> ");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user