compiling in windows; building lexer library docs

master
Allen Webster 2016-09-21 09:07:08 -04:00
parent 33407c2258
commit 3947255b00
6 changed files with 47 additions and 336 deletions

File diff suppressed because one or more lines are too long

View File

@ -1380,7 +1380,6 @@ DOC_SEE(get_active_view)
API_EXPORT int32_t API_EXPORT int32_t
View_Get_Setting(Application_Links *app, View_Summary *view, View_Setting_ID setting){ View_Get_Setting(Application_Links *app, View_Summary *view, View_Setting_ID setting){
Command_Data *cmd = (Command_Data*)app->cmd_context; Command_Data *cmd = (Command_Data*)app->cmd_context;
System_Functions *system = cmd->system;
View *vptr = imp_get_view(cmd, view); View *vptr = imp_get_view(cmd, view);
int32_t result = -1; int32_t result = -1;

View File

@ -80,7 +80,7 @@ struct Models{
struct Live_Views *live_set; struct Live_Views *live_set;
Editing_File *message_buffer; Editing_File *message_buffer;
Editing_File *scratch_buffer; Editing_File *scratch_buffer;
f32 default_display_width; i32 default_display_width;
char hot_dir_base_[256]; char hot_dir_base_[256];
Hot_Directory hot_directory; Hot_Directory hot_directory;

View File

@ -285,7 +285,7 @@ view_width(View *view){
inline f32 inline f32
view_file_display_width(View *view){ view_file_display_width(View *view){
f32 result = view->display_width; f32 result = (f32)view->display_width;
return(result); return(result);
} }

View File

@ -2970,9 +2970,9 @@ generate_custom_headers(){
"<body>" "<body>"
"<div style='font-family:Arial; margin: 0 auto; " "<div style='font-family:Arial; margin: 0 auto; "
"width: 800px; text-align: justify; line-height: 1.25;'>" "width: 800px; text-align: justify; line-height: 1.25;'>"
// "<h1 style='margin-top: 5mm; margin-bottom: 5mm;'>4cpp Lexing Library</h1>"); "<h1 style='margin-top: 5mm; margin-bottom: 5mm;'>4cpp Lexing Library</h1>");
"<h1 style='margin-top: 5mm; margin-bottom: 5mm;'>4coder API</h1>"); // "<h1 style='margin-top: 5mm; margin-bottom: 5mm;'>4coder API</h1>");
struct Section{ struct Section{
char *id_string; char *id_string;
@ -2983,9 +2983,9 @@ generate_custom_headers(){
static Section sections[] = { static Section sections[] = {
{"introduction", "Introduction"}, {"introduction", "Introduction"},
{"4coder_systems", "4coder Systems"}, //{"4coder_systems", "4coder Systems"},
{"types_and_functions", "Types and Functions"}, //{"types_and_functions", "Types and Functions"},
{"string_library", "String Library"}, //{"string_library", "String Library"},
{"lexer_library", "Lexer Library"} {"lexer_library", "Lexer Library"}
}; };
@ -3013,11 +3013,11 @@ generate_custom_headers(){
append_sc(&out, sections[msection].display_string); append_sc(&out, sections[msection].display_string);
append_sc(&out, "</h2>"); append_sc(&out, "</h2>");
#if 0 #if 1
// NOTE(allen): doc intro for lexer standalone // NOTE(allen): doc intro for lexer standalone
append_sc(&out, append_sc(&out,
"<div>" "<div>"
"<p>This is the documentation for the 4cpp lexer version 1.0. " "<p>This is the documentation for the 4cpp lexer version 1.1. "
"The documentation is the newest piece of this lexer project " "The documentation is the newest piece of this lexer project "
"so it may still have problems. What is here should be correct " "so it may still have problems. What is here should be correct "
"and mostly complete.</p>" "and mostly complete.</p>"
@ -3029,6 +3029,8 @@ generate_custom_headers(){
"</div>"); "</div>");
#endif #endif
#if 0
append_sc(&out, append_sc(&out,
"<div>" "<div>"
"<p>This is the documentation for " VERSION " The documentation is still " "<p>This is the documentation for " VERSION " The documentation is still "
@ -3157,6 +3159,13 @@ generate_custom_headers(){
#undef MAJOR_SECTION #undef MAJOR_SECTION
#define MAJOR_SECTION "5" #define MAJOR_SECTION "5"
msection = 4; msection = 4;
#endif
(void)(unit);
#undef MAJOR_SECTION
#define MAJOR_SECTION "2"
msection = 1;
append_sc(&out, "\n<h2 id='section_"); append_sc(&out, "\n<h2 id='section_");
append_sc(&out, sections[msection].id_string); append_sc(&out, sections[msection].id_string);

View File

@ -886,7 +886,7 @@ buffer_get_render_data(Buffer_Type *buffer, Buffer_Render_Item *items, i32 max,
case '\t': case '\t':
if (write.item < item_end){ if (write.item < item_end){
i32 new_x = write.x + ch_width; f32 new_x = write.x + ch_width;
write = write_render_item(write, i, ' ', 0); write = write_render_item(write, i, ' ', 0);
write.x = new_x; write.x = new_x;
} }