forked from mirrors/kore
Style changes.
This commit is contained in:
parent
ec9ea6df36
commit
81c3325677
@ -26,8 +26,11 @@ extern "C" {
|
||||
int
|
||||
page(struct http_request *req)
|
||||
{
|
||||
example_class example;
|
||||
const char* str = example.a();
|
||||
http_response(req, 200, static_cast<void*>(const_cast<char*>(str)), strlen(str));
|
||||
example_class example;
|
||||
const char *str = example.a();
|
||||
|
||||
http_response(req, 200,
|
||||
static_cast<void*>(const_cast<char*>(str)), strlen(str));
|
||||
|
||||
return (KORE_RESULT_OK);
|
||||
}
|
||||
|
@ -17,14 +17,12 @@
|
||||
#include "example_class.h"
|
||||
|
||||
example_class::example_class() {
|
||||
|
||||
}
|
||||
|
||||
example_class::~example_class() {
|
||||
|
||||
}
|
||||
|
||||
const char*
|
||||
const char *
|
||||
example_class::a() {
|
||||
return "Hello world!";
|
||||
}
|
||||
|
@ -20,13 +20,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
class example_class {
|
||||
|
||||
public:
|
||||
example_class();
|
||||
~example_class();
|
||||
|
||||
const char*
|
||||
a();
|
||||
const char *a();
|
||||
};
|
||||
|
||||
#endif /* defined(____example_class__) */
|
||||
|
Loading…
Reference in New Issue
Block a user