@@ -382,13 +382,15 @@ void InitKeywords(void){
382382 InitKeyword ("RENDERCLIP" , SCRIPT_RENDERCLIP , 1 ); // documented
383383 InitKeyword ("RENDERDIR" , SCRIPT_RENDERDIR , 1 ); // documented
384384 InitKeyword ("RENDERDOUBLEONCE" , SCRIPT_RENDERDOUBLEONCE , 1 ); // documented
385+ #ifdef pp_HTML
385386 InitKeyword ("RENDERHTMLALL" , SCRIPT_RENDERHTMLALL , 1 ); // documented
386387 InitKeyword ("RENDERHTMLDIR" , SCRIPT_RENDERHTMLDIR , 1 ); // documented
387388 InitKeyword ("RENDERHTMLGEOM" , SCRIPT_RENDERHTMLGEOM , 1 );
388389 InitKeyword ("RENDERHTMLOBST" , SCRIPT_RENDERHTMLOBST , 1 );
389390 InitKeyword ("RENDERHTMLONCE" , SCRIPT_RENDERHTMLONCE , 1 ); // documented
390391 InitKeyword ("RENDERHTMLSLICECELL" , SCRIPT_RENDERHTMLSLICECELL , 2 );
391392 InitKeyword ("RENDERHTMLSLICENODE" , SCRIPT_RENDERHTMLSLICENODE , 2 );
393+ #endif
392394 InitKeyword ("RENDERONCE" , SCRIPT_RENDERONCE , 1 ); // documented
393395 InitKeyword ("RENDERSIZE" , SCRIPT_RENDERSIZE , 1 ); // documented
394396 InitKeyword ("RENDERSTART" , SCRIPT_RENDERSTART , 1 ); // documented
@@ -924,18 +926,24 @@ int CompileScript(char *scriptfile){
924926 scripti -> ival = AVI ;
925927 }
926928 break ;
927-
929+ #ifdef pp_HTML
928930// RENDERDIR
929- // RENDERHTMLDIR
930931// directory name (char) (where rendered files will go)
931932 case SCRIPT_RENDERDIR :
932933 case SCRIPT_RENDERHTMLDIR :
934+ #else
935+ // RENDERDIR
936+ // directory name (char) (where rendered files will go)
937+ case SCRIPT_RENDERDIR :
938+ #endif
933939 {
934940 int len ;
935941 int i ;
936942
937943 scripti -> need_graphics = 1 ;
944+ #ifdef pp_HTML
938945 if (kw -> index == SCRIPT_RENDERHTMLDIR )scripti -> need_graphics = 0 ;
946+ #endif
939947 SETbuffer ;
940948 if (script_renderdir_cmd != NULL && strlen (script_renderdir_cmd )> 0 ){
941949 strcpy (param_buffer , script_renderdir_cmd );
@@ -994,7 +1002,7 @@ int CompileScript(char *scriptfile){
9941002 case SCRIPT_RENDERDOUBLEONCE :
9951003 SETcval2 ;
9961004 break ;
997-
1005+ #ifdef pp_HTML
9981006// RENDERHTMLONCE
9991007// RENDERHTMLALL
10001008// file name base (char) (or blank to use smokeview default)
@@ -1016,7 +1024,7 @@ int CompileScript(char *scriptfile){
10161024 SETcval2 ;
10171025 scripti -> need_graphics = 0 ;
10181026 break ;
1019-
1027+ #endif
10201028// RENDERSTART
10211029// start_frame (int) skip_frame (int)
10221030 case SCRIPT_RENDERSTART :
@@ -1572,6 +1580,7 @@ case SCRIPT_LOADSMV:
15721580 return return_val ;
15731581}
15741582
1583+ #ifdef pp_HTML
15751584/* ------------------ GetWebFileName ------------------------ */
15761585
15771586void GetWebFileName (char * web_filename , scriptdata * scripti ){
@@ -1648,6 +1657,7 @@ void ScriptRenderHtml(scriptdata *scripti, int option){
16481657 GetWebFileName (webvr_filename , scripti );
16491658 strcat (webvr_filename ,"_vr.html" );
16501659}
1660+ #endif
16511661
16521662/* ------------------ ScriptRenderStart ------------------------ */
16531663
@@ -4019,6 +4029,7 @@ int RunScriptCommand(scriptdata *script_command){
40194029 script_dir_path = NULL ;
40204030 }
40214031 break ;
4032+ #ifdef pp_HTML
40224033 case SCRIPT_RENDERHTMLDIR :
40234034 if (scripti -> cval != NULL && strlen (scripti -> cval )> 0 ){
40244035 script_htmldir_path = scripti -> cval ;
@@ -4033,6 +4044,7 @@ int RunScriptCommand(scriptdata *script_command){
40334044 script_htmldir_path = NULL ;
40344045 }
40354046 break ;
4047+ #endif
40364048 case SCRIPT_KEYBOARD :
40374049 if (scripti -> cval != NULL ){
40384050 char * key ;
@@ -4084,6 +4096,7 @@ int RunScriptCommand(scriptdata *script_command){
40844096 Keyboard ('r' ,FROM_SMOKEVIEW );
40854097 returnval = 1 ;
40864098 break ;
4099+ #ifdef pp_HTML
40874100 case SCRIPT_RENDERHTMLALL :
40884101 ScriptRenderHtml (scripti , HTML_ALL_TIMES );
40894102 returnval = 1 ;
@@ -4108,6 +4121,7 @@ int RunScriptCommand(scriptdata *script_command){
41084121 ScriptRenderSliceCell (scripti );
41094122 returnval = 1 ;
41104123 break ;
4124+ #endif
41114125 case SCRIPT_RENDERDOUBLEONCE :
41124126 Keyboard ('R' ,FROM_SMOKEVIEW );
41134127 returnval = 1 ;
0 commit comments