Changeset 136
- Timestamp:
- 05/04/06 15:39:15 (3 years ago)
- Location:
- trunk/orca
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/boot.c
r97 r136 303 303 "]\n" 304 304 "getenv: native [name [string!]]\n" 305 "call: native [\n"306 " command [string! block!]\n"307 " /output\n"308 " out [string! file! none!]\n"309 " /wait\n"310 "]\n"311 305 "change-dir: native [value]\n" 312 306 "what-dir: native []\n" … … 359 353 "cross: native [a [vec3!] b [vec3!]]\n" 360 354 "normalize: native [vec [vec3!]]\n" 355 "call: native [\n" 356 " command [string! block!]\n" 357 " /output\n" 358 " out [string! file! none!]\n" 359 " /wait\n" 360 "]\n" 361 361 ; 362 362 -
trunk/orca/boot.r
r97 r136 406 406 getenv: native [name [string!]] 407 407 408 call: native [409 command [string! block!]410 ;/input411 ;in [string! file! none!] ; [any-string! port! file! url! none!]412 /output413 out [string! file! none!] ; [string! port! file! url! none!]414 /wait415 ;/console416 ;/shell417 ;/info418 ]419 420 408 change-dir: native [value] 421 409 what-dir: native [] … … 719 707 if find config 'rebol [append boot load %rebol_compat.r] 720 708 709 if find config 'os_call [ 710 append natives [ 711 call: native [ 712 command [string! block!] 713 ;/input 714 ;in [string! file! none!] ; [any-string! port! file! url! none!] 715 /output 716 out [string! file! none!] ; [string! port! file! url! none!] 717 /wait 718 ;/console 719 ;/shell 720 ;/info 721 ] 722 ] 723 ] 724 721 725 ;eof -
trunk/orca/config.r
r3 r136 8 8 hex_token 9 9 math3d 10 os_call 10 11 ] -
trunk/orca/files.c
r94 r136 28 28 extern void orReadDir( const char* filename ); 29 29 extern void orNowNative( OValue* a1 ); 30 extern void orCallNative( OValue* a1 );31 30 extern void orChangeDirNative( OValue* a1 ); 32 31 extern void orWhatDirNative(); … … 35 34 extern void orDeleteNative( OValue* a1 ); 36 35 extern void orGetenvNative( OValue* a1 ); 36 37 #ifdef OR_CONFIG_OS_CALL 38 extern void orCallNative( OValue* a1 ); 39 #endif 37 40 38 41 … … 592 595 orNative( orRenameNative, "rename" ); 593 596 orNative( orDeleteNative, "delete" ); 594 orNative( orCallNative, "call" );595 597 orNative( orChangeDirNative, "change-dir" ); 596 598 orNative( orWhatDirNative, "what-dir" ); … … 599 601 orNative( orGetenvNative, "getenv" ); 600 602 orNative( cleanPathNative, "clean-path" ); 603 604 #ifdef OR_CONFIG_OS_CALL 605 orNative( orCallNative, "call" ); 606 #endif 607 601 608 #ifdef OR_CONFIG_COMPRESS 602 609 orNative( orCompressNative, "compress" ); -
trunk/orca/unix/os.c
r98 r136 190 190 191 191 192 #ifdef OR_CONFIG_OS_CALL 192 193 static void argumentList( OString* str, int sindex, char** argv, int maxArg ) 193 194 { … … 361 362 command /output out /wait 362 363 */ 363 void orCallNative( OValue* a1)364 OR_NATIVE_PUB( orCallNative ) 364 365 { 365 366 if( a1->type != OT_STRING ) … … 378 379 } 379 380 } 380 381 381 #endif 382 383 384 #ifdef OR_CONFIG_OS_CALL 382 385 /* Cleans up after callSimple() */ 383 386 static void child_handler( int sig ) … … 392 395 } 393 396 } 397 #endif 394 398 395 399 #if 0 … … 411 415 void orInstallExceptionHandlers() 412 416 { 417 #ifdef OR_CONFIG_OS_CALL 418 /* NOTE: Cannot use this if using Qt's QProcess (it uses SIGCHLD) */ 413 419 struct sigaction childSA; 414 420 … … 418 424 419 425 sigaction( SIGCHLD, &childSA, NULL ); 426 #endif 420 427 421 428 #if 0 -
trunk/orca/win32/os.c
r98 r136 210 210 } 211 211 212 213 #ifdef OR_CONFIG_OS_CALL 212 214 213 215 #define REF_CALL_OUTPUT a1+1 … … 373 375 374 376 375 void orCallNative( OValue* a1)377 OR_NATIVE_PUB( orCallNative ) 376 378 { 377 379 if( a1->type != OT_STRING ) … … 390 392 } 391 393 } 394 #endif 392 395 393 396
