* Added a special case in Elk_Init for the forthcoming libelk.
git-svn-id: svn://svn.zoy.org/elk/trunk@17 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
		
							parent
							
								
									86881e9a5f
								
							
						
					
					
						commit
						f66cc0d573
					
				| 
						 | 
				
			
			@ -284,11 +284,14 @@ int main (int ac, char **av) {
 | 
			
		|||
 | 
			
		||||
    Set_Error_Tag ("top-level");
 | 
			
		||||
#ifdef NOMAIN
 | 
			
		||||
    if ((loadfile = toplevel) == 0) {
 | 
			
		||||
    if (toplevel == 0) {
 | 
			
		||||
	Interpreter_Initialized = 1;
 | 
			
		||||
	GC_Debug = debug;
 | 
			
		||||
	return;
 | 
			
		||||
    }
 | 
			
		||||
    /* Special case: if toplevel is "", act as if run from main() */
 | 
			
		||||
    if (loadfile == 0 && toplevel[0] != '\0')
 | 
			
		||||
	loadfile = toplevel;
 | 
			
		||||
#endif
 | 
			
		||||
    if (loadfile == 0)
 | 
			
		||||
	loadfile = "toplevel.scm";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue