OSDN Git Service

deleting to wasted space
authorYoshihiro Yamazaki <yoya@awm.jp>
Sun, 22 Nov 2015 17:42:57 +0000 (02:42 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Sun, 22 Nov 2015 17:42:57 +0000 (02:42 +0900)
src/php7_swfed.c

index e7699dc..b52809f 100644 (file)
@@ -289,9 +289,9 @@ PHP_FUNCTION(confirm_swfed_compiled)
        RETURN_STRINGL(string, len);
 }
 /* }}} */
-/* The previous line is meant for vim and emacs, so it can correctly fold and 
-   unfold functions in source code. See the corresponding marks just before 
-   function definition, where the functions purpose is also documented. Please 
+/* The previous line is meant for vim and emacs, so it can correctly fold and
+   unfold functions in source code. See the corresponding marks just before
+   function definition, where the functions purpose is also documented. Please
    follow this convention for the convenience of others editing your code.
 */
 
@@ -384,8 +384,6 @@ PHP_METHOD(swfed, getHeaderInfo) {
     add_assoc_long(return_value, "y_min", swf->header_movie.frame_size.y_min / SWF_TWIPS);
     add_assoc_long(return_value, "x_max", swf->header_movie.frame_size.x_max / SWF_TWIPS);
     add_assoc_long(return_value, "y_max", swf->header_movie.frame_size.y_max / SWF_TWIPS);
-    
-    
 }
 
 PHP_METHOD(swfed, setHeaderInfo) {
@@ -1184,13 +1182,11 @@ PHP_METHOD(swfed, replaceBitmapData) {
                                                 (unsigned char *)data,
                                                 (unsigned long) data_len,
                                                 rgb15);
-            
             break;
         case BITMAP_UTIL_FORMAT_GIF:
             result = swf_object_replace_gifdata(swf, image_id,
                                                 (unsigned char *)data,
                                                 (unsigned long) data_len);
-            
             break;
         default:
             php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown Bitmap Format");
@@ -1372,7 +1368,7 @@ PHP_METHOD(swfed, replaceEditString) {
                               &ini_text, &ini_text_len) == FAILURE) {
         RETURN_FALSE;
     }
-    swf = get_swf_object(getThis() TSRMLS_CC);    
+    swf = get_swf_object(getThis() TSRMLS_CC);
     result = swf_object_replace_editstring(swf, var_name,  var_name_len,
                                            ini_text, ini_text_len);
     if (result) {
@@ -1386,7 +1382,6 @@ PHP_METHOD(swfed, getActionData) {
     swf_object_t *swf = NULL;
     unsigned char *data = NULL;
     unsigned long data_len = 0;
-    
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &tag_seqno) == FAILURE) {
         RETURN_FALSE;
     }
@@ -1506,7 +1501,7 @@ PHP_METHOD(swfed, replaceMovieClip) {
         }
         break;
     }
-    swf = get_swf_object(getThis() TSRMLS_CC);    
+    swf = get_swf_object(getThis() TSRMLS_CC);
     result = swf_object_replace_movieclip(swf,
                                           (unsigned char *)instance_name,
                                           instance_name_len,
@@ -1555,7 +1550,7 @@ PHP_METHOD(swfed, isShapeTagData) {
                                     data_len) == 0) {
         RETURN_FALSE;
     }
-    RETURN_TRUE;      
+    RETURN_TRUE;
 }
 
 PHP_METHOD(swfed, isBitmapTagData) {
@@ -1569,7 +1564,7 @@ PHP_METHOD(swfed, isBitmapTagData) {
                                      data_len) == 0) {
         RETURN_FALSE;
     }
-    RETURN_TRUE;      
+    RETURN_TRUE;
 }
 
 
@@ -1594,4 +1589,3 @@ static void free_swfed_resource(zend_resource *resource TSRMLS_DC)
 //    printf("SWFEditor->destory\n");
     swf_object_close((swf_object_t *) resource->ptr);
 }
-