diff options
Diffstat (limited to 'server')
| -rw-r--r-- | server/synctex_parser.c | 48 | ||||
| -rw-r--r-- | server/synctex_parser.h | 2 | ||||
| -rw-r--r-- | server/synctex_parser_advanced.h | 6 |
3 files changed, 28 insertions, 28 deletions
diff --git a/server/synctex_parser.c b/server/synctex_parser.c index f4f7d84..430d0c0 100644 --- a/server/synctex_parser.c +++ b/server/synctex_parser.c @@ -648,12 +648,12 @@ static synctex_open_s __synctex_open_v2(const char * output, synctex_io_mode_t i quoteless_synctex_name = NULL; } } - /* The operation is successfull, return the arguments by value. */ + /* The operation is successful, return the arguments by value. */ open.status = SYNCTEX_STATUS_OK; return open; } -/* Opens the ouput file, taking into account the eventual build_directory. +/* Opens the output file, taking into account the eventual build_directory. * - returns: an open structure which status is * SYNCTEX_STATUS_OK on success, * SYNCTEX_STATUS_ERROR on failure. @@ -1499,7 +1499,7 @@ DEFINE_SYNCTEX_DATA_INT_GETSET(depth_V) * It contains V variants of geometrical information. * It happens that hboxes contain material that is not used to compute * the bounding box. Some letters may appear out of the box given by TeX. - * In such a situation, the visible bouding box is bigger ence the V variant. + * In such a situation, the visible bounding box is bigger ence the V variant. * Only hboxes have such variant. It does not make sense for void boxes * and it is not used here for vboxes. * - author: JL @@ -4125,7 +4125,7 @@ static synctex_is_s _synctex_decode_int_v(synctex_scanner_p scanner) { * and before the next '\n' character. * If a string was properly decoded, it is returned in value_ref and * the cursor points to the new line marker. - * The returned string was alloced on the heap, the caller is the owner and + * The returned string was allocated on the heap, the caller is the owner and * is responsible to free it in due time, * unless it transfers the ownership to another object. * If no string is parsed, * value_ref is undefined. @@ -4666,7 +4666,7 @@ static synctex_status_t _synctex_make_hbox_contain_box(synctex_node_p node,synct # endif -/* Here are the control characters that strat each line of the synctex output file. +/* Here are the control characters that start each line of the synctex output file. * Their values define the meaning of the line. */ # define SYNCTEX_CHAR_BEGIN_SHEET '{' @@ -5027,7 +5027,7 @@ SYNCTEX_INLINE static void _synctex_handle_set_tlc(synctex_node_p x_handle, sync * When we have parsed a box, we must register * all the contained heading boundary nodes * that have not yet been registered. - * Those handles will be deleted when poping. + * Those handles will be deleted when popping. */ SYNCTEX_INLINE static void _synctex_handle_make_friend_tlc(synctex_node_p node) { while (node) { @@ -5165,7 +5165,7 @@ main_loop: /* At least 1 more character */ zs = _synctex_buffer_get_available_size(scanner,1); if (zs.size == 0){ - _synctex_error("Uncomplete synctex file, postamble missing."); + _synctex_error("Incomplete synctex file, postamble missing."); SYNCTEX_RETURN(SYNCTEX_STATUS_ERROR); } goto main_loop; @@ -5182,13 +5182,13 @@ ignore_loop: --ignored_form_depth; } if (_synctex_next_line(scanner)<SYNCTEX_STATUS_OK) { - _synctex_error("Uncomplete container."); + _synctex_error("Incomplete container."); SYNCTEX_RETURN(SYNCTEX_STATUS_ERROR); } } else { zs = _synctex_buffer_get_available_size(scanner,1); if (zs.size == 0){ - _synctex_error("Uncomplete synctex file, postamble missing."); + _synctex_error("Incomplete synctex file, postamble missing."); SYNCTEX_RETURN(SYNCTEX_STATUS_ERROR); } } @@ -5264,7 +5264,7 @@ content_loop: synctex_node_log(child); # endif if (_synctex_next_line(scanner)<SYNCTEX_STATUS_OK) { - _synctex_error("Uncomplete container."); + _synctex_error("Incomplete container."); SYNCTEX_RETURN(SYNCTEX_STATUS_ERROR); } last_k = last_g = NULL; @@ -5373,7 +5373,7 @@ content_loop: sibling = _synctex_tree_child(parent); _synctex_data_set_point(sibling,_synctex_data_point_V(parent)); if (last_k && last_g && (child = synctex_node_child(parent))) { - /* Find the node preceeding last_k */ + /* Find the node preceding last_k */ synctex_node_p next; while ((next = __synctex_tree_sibling(child))) { if (next == last_k) { @@ -5397,7 +5397,7 @@ content_loop: # endif } if (_synctex_next_line(scanner)<SYNCTEX_STATUS_OK) { - _synctex_error("Uncomplete container."); + _synctex_error("Incomplete container."); SYNCTEX_RETURN(SYNCTEX_STATUS_ERROR); } last_k = last_g = NULL; @@ -5678,7 +5678,7 @@ _synctex_make_hbox_contain_box(parent,_synctex_data_box(child)); } zs = _synctex_buffer_get_available_size(scanner,1); if (zs.size == 0){ - _synctex_error("Uncomplete synctex file, postamble missing."); + _synctex_error("Incomplete synctex file, postamble missing."); SYNCTEX_RETURN(SYNCTEX_STATUS_ERROR); } last_k = last_g = NULL; @@ -5956,7 +5956,7 @@ content_not_found: return status; } if (_synctex_next_line(scanner)<SYNCTEX_STATUS_OK) { - _synctex_error("Uncomplete Content."); + _synctex_error("Incomplete Content."); return SYNCTEX_STATUS_ERROR; } if (status == SYNCTEX_STATUS_NOT_OK) { @@ -6063,7 +6063,7 @@ synctex_scanner_p synctex_scanner_parse(synctex_scanner_p scanner) { scanner->pre_unit = 8192; scanner->pre_x_offset = scanner->pre_y_offset = 578; /* initialize the offset with a fake unprobable value, - * If there is a post scriptum section, this value will be overriden by the real life value */ + * If there is a post scriptum section, this value will be overridden by the real life value */ scanner->x_offset = scanner->y_offset = 6.027e23f; scanner->reader->line_number = 1; @@ -7578,7 +7578,7 @@ synctex_node_p synctex_node_target(synctex_node_p node) { # pragma mark Geometric utilities # endif -/** Rougly speaking, this is: +/** Roughly speaking, this is: * node's h coordinate - hit point's h coordinate. * If node is to the right of the hit point, then this distance is positive, * if node is to the left of the hit point, this distance is negative. @@ -7613,7 +7613,7 @@ static synctex_nd_s _synctex_point_h_ordered_distance_v2 width = _synctex_data_width(node); min = _synctex_data_h(node); max = min + (width>0?width:-width); - /* We allways have min <= max */ + /* We always have min <= max */ if (hit->h<min) { nd.distance = min - hit->h; /* regions 1+4+7, result is > 0 */ } else if (hit->h>max) { @@ -7627,7 +7627,7 @@ static synctex_nd_s _synctex_point_h_ordered_distance_v2 width = synctex_node_width(node); min = synctex_node_h(node); max = min + (width>0?width:-width); - /* We allways have min <= max */ + /* We always have min <= max */ if (hit->h<min) { nd.distance = min - hit->h; /* regions 1+4+7, result is > 0 */ } else if (hit->h>max) { @@ -7642,7 +7642,7 @@ static synctex_nd_s _synctex_point_h_ordered_distance_v2 width = synctex_node_hbox_width(node); min = synctex_node_hbox_h(node); max = min + (width>0?width:-width); - /* We allways have min <= max */ + /* We always have min <= max */ if (hit->h<min) { nd.distance = min - hit->h; /* regions 1+4+7, result is > 0 */ } else if (hit->h>max) { @@ -7722,7 +7722,7 @@ static synctex_nd_s _synctex_point_h_ordered_distance_v2 } return nd; } -/** Rougly speaking, this is: +/** Roughly speaking, this is: * node's v coordinate - hit point's v coordinate. * If node is at the top of the hit point, then this distance is positive, * if node is at the bottom of the hit point, this distance is negative. @@ -7754,7 +7754,7 @@ static synctex_nd_s _synctex_point_v_ordered_distance_v2 min = synctex_node_v(node); max = min + _synctex_abs(_synctex_data_depth(node)); min -= _synctex_abs(_synctex_data_height(node)); - /* We allways have min <= max */ + /* We always have min <= max */ if (hit->v<min) { nd.distance = min - hit->v; /* regions 1+2+3, result is > 0 */ } else if (hit->v>max) { @@ -7768,7 +7768,7 @@ static synctex_nd_s _synctex_point_v_ordered_distance_v2 min = synctex_node_v(node); max = min + _synctex_abs(synctex_node_depth(node)); min -= _synctex_abs(synctex_node_height(node)); - /* We allways have min <= max */ + /* We always have min <= max */ if (hit->v<min) { nd.distance = min - hit->v; /* regions 1+2+3, result is > 0 */ } else if (hit->v>max) { @@ -7785,7 +7785,7 @@ static synctex_nd_s _synctex_point_v_ordered_distance_v2 max = min + (depth>0?depth:-depth); height = synctex_node_hbox_height(node); min -= (height>0?height:-height); - /* We allways have min <= max */ + /* We always have min <= max */ if (hit->v<min) { nd.distance = min - hit->v; /* regions 1+2+3, result is > 0 */ } else if (hit->v>max) { @@ -7801,7 +7801,7 @@ static synctex_nd_s _synctex_point_v_ordered_distance_v2 min = _synctex_data_v(node); max = min + _synctex_abs(_synctex_data_depth(_synctex_tree_parent(node))); min -= _synctex_abs(_synctex_data_height(_synctex_tree_parent(node))); - /* We allways have min <= max */ + /* We always have min <= max */ if (hit->v<min) { nd.distance = min - hit->v; /* regions 1+2+3, result is > 0 */ } else if (hit->v>max) { diff --git a/server/synctex_parser.h b/server/synctex_parser.h index e54a017..9e0a00e 100644 --- a/server/synctex_parser.h +++ b/server/synctex_parser.h @@ -105,7 +105,7 @@ extern "C" { * Use 0 only if you do not want to parse the * content but just check for existence. * Available since version 1.5 - * - resturn: a scanner. NULL is returned in case + * - return: a scanner. NULL is returned in case * of an error or non existent file. */ synctex_scanner_p synctex_scanner_new_with_output_file(const char * output, const char * build_directory, int parse); diff --git a/server/synctex_parser_advanced.h b/server/synctex_parser_advanced.h index 867fbf7..95c2ac1 100644 --- a/server/synctex_parser_advanced.h +++ b/server/synctex_parser_advanced.h @@ -65,7 +65,7 @@ extern "C" { /** * These are the masks for the synctex node types. - * int's are 32 bits at leats. + * int's are 32 bits at least. */ enum { synctex_shift_root, @@ -325,7 +325,7 @@ extern "C" { * Proxies are used to support pdf forms. * The ref primary nodes are replaced by a tree * of proxy nodes which duplicate the tree of primary - * nodes available in the refered form. + * nodes available in the referred form. * Roughly speaking, the primary nodes of the form * know what to display, the proxy nodes know where. * Handles are used in queries. They point to either @@ -449,7 +449,7 @@ extern "C" { */ void synctex_iterator_free(synctex_iterator_p iterator); /** - * Wether the iterator actually points to an object. + * Whether the iterator actually points to an object. * - argument iterator: the object to iterate on... */ synctex_bool_t synctex_iterator_has_next(synctex_iterator_p iterator); |
