]> granicus.if.org Git - php/commitdiff
Add folding markers and editor directive blocks.
authorJon Parise <jon@php.net>
Wed, 19 Feb 2003 21:36:00 +0000 (21:36 +0000)
committerJon Parise <jon@php.net>
Wed, 19 Feb 2003 21:36:00 +0000 (21:36 +0000)
ext/rpc/skeleton/php_skeleton.h
ext/rpc/skeleton/skeleton.c
ext/rpc/skeleton/skeleton.h

index e591b90b13a4bed6d805f34ea661ae36adce0442..a1e8a84bc44b9829d9dd748abe02a48aef0f3cf6 100644 (file)
 extern zend_module_entry skeleton_module_entry;
 #define phpext_skeleton_ptr &skeleton_module_entry
 
-#endif /* PHP_SKELETON_H */
\ No newline at end of file
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ * vim600: fdm=marker
+ * vim: sw=4 ts=4 noet
+ */
+#endif /* PHP_SKELETON_H */
index 99af187af656f381aad1890bc0b7f7f1315bc505..bebafb71ecc6b5ce9923e34a2845b354cffa8735 100644 (file)
@@ -120,6 +120,9 @@ ZEND_GET_MODULE(skeleton);
 #endif
 
 /* rpc handler functions */
+
+/* {{{ skeleton_hash
+ */
 static int skeleton_hash(rpc_string name, rpc_string *hash, void *data, int num_args, char *arg_types, int type)
 {
        /* TODO: implement your hash function here. if you have specified any of the HASH_AS_INT constants, simply set
@@ -133,13 +136,19 @@ static int skeleton_hash(rpc_string name, rpc_string *hash, void *data, int num_
 
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_name
+ */
 static int skeleton_name(rpc_string hash, rpc_string *name, void *data, int type)
 {
        /* TODO: do the opposite of what you did above */
        return FAILURE;
 }
+/* }}} */
 
+/* {{{ skeleton_ctor
+ */
 static int skeleton_ctor(rpc_string class_name, void **data, int num_args, zval **args[])
 {
        /* TODO: use *data as a pointer to your internal data. if you want to enable your instances for
@@ -154,13 +163,19 @@ static int skeleton_ctor(rpc_string class_name, void **data, int num_args, zval
         */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_dtor
+ */
 static int skeleton_dtor(void *data)
 {
        /* TODO: free everything you alloc'ed above */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_describe
+ */
 static int skeleton_describe(rpc_string method_name, void *data, char **arg_types, unsigned char **ref_types)
 {
        /* TODO: return a zend_parse_parameters() like string in arg_types to describe the
@@ -170,7 +185,10 @@ static int skeleton_describe(rpc_string method_name, void *data, char **arg_type
         */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_call
+ */
 static int skeleton_call(rpc_string method_name, void **data, zval *return_value, int num_args, zval **args[])
 {
        /* TODO: implement call handler. if you passed back an arg_types string in the describe function the arguments
@@ -179,45 +197,73 @@ static int skeleton_call(rpc_string method_name, void **data, zval *return_value
         */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_get
+ */
 static int skeleton_get(rpc_string property_name, zval *return_value, void **data)
 {
        /* TODO: implement get handler */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_set
+ */
 static int skeleton_set(rpc_string property_name, zval *value, void **data)
 {
        /* TODO: implement set handler */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_compare
+ */
 static int skeleton_compare(void **data1, void **data2)
 {
        /* TODO: implement compare handler */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_has_property
+ */
 static int skeleton_has_property(rpc_string property_name, void **data)
 {
        /* TODO: implement has property handler */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_unset_property
+ */
 static int skeleton_unset_property(rpc_string property_name, void **data)
 {
        /* TODO: implement unset property handler */
        return SUCCESS;
 }
+/* }}} */
 
+/* {{{ skeleton_get_properties
+ */
 static int skeleton_get_properties(HashTable **properties, void **data)
 {
        /* TODO: implement get properties handler */
        return SUCCESS;
 }
+/* }}} */
 
 
 /* custom functions */
 ZEND_FUNCTION(skeleton_function)
 {
 }
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ * vim600: fdm=marker
+ * vim: sw=4 ts=4 noet
+ */
index 001872a2f5230ce6da829d87afb09ca59dc83196..cd7972126010aa6c8b282372f4b330acd99ae68c 100644 (file)
@@ -32,4 +32,12 @@ ZEND_MINFO_FUNCTION(skeleton);
 ZEND_FUNCTION(skeleton_function);
 /**/
 
-#endif /* SKELETON_H */
\ No newline at end of file
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ * vim600: fdm=marker
+ * vim: sw=4 ts=4 noet
+ */
+#endif /* SKELETON_H */