summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
...
* simplified formattingBen Morrison2019-06-081-3/+1
* updated depsBen Morrison2019-06-083-0/+17
* updated makefile/deps v0.2.3Ben Morrison2019-06-065-4/+190
* deduplicated duplicate deduplication functionsBen Morrison2019-06-062-40/+18
* renamed functionsBen Morrison2019-06-063-25/+10
* version constant changedBen Morrison2019-06-061-1/+1
* modified readme a bitBen Morrison2019-06-061-24/+38
* config and logging functions split into own fileBen Morrison2019-06-061-0/+187
* help and manual text moved to help.goBen Morrison2019-06-061-0/+273
* moved funcs out of init.go to aid organizationBen Morrison2019-06-061-479/+0
* enabled apiTagsHandler and apiTagsBaseHandler testsBen Morrison2019-06-061-2/+1
* moved initDatabase() to db.goBen Morrison2019-06-061-0/+30
* brief readmeBen Morrison2019-06-061-0/+8
* updated tests to work with new project structureBen Morrison2019-06-064-6/+93
* fixed some import commentsBen Morrison2019-06-057-7/+7
* moved bulk of code to its own package to clean up source treeBen Morrison2019-06-0521-100/+203
* updated nginx configuration sectionBen Morrison2019-06-051-2/+5
* added db type, assets dir to config v0.2.2Ben Morrison2019-06-051-0/+5
* expanded manual to include assets dir, db type, db path flags and configBen Morrison2019-06-051-2/+21
* set version constant to 0.2.2Ben Morrison2019-06-051-1/+1
* updated readme installation/configuration sectionsBen Morrison2019-06-051-1/+12
* new install instructions, updated benchmarkBen Morrison2019-06-051-30/+30
* temporarily disabling Test_pushpullDatabase()Ben Morrison2019-06-051-1/+2
* moved cacheAndPush() outside of initDatabase()Ben Morrison2019-06-051-1/+1
* moved db test funcs to db_test.goBen Morrison2019-06-052-86/+91
* cache/push check interval increased to 1sBen Morrison2019-06-051-0/+1
* cli flags for db path/type, assets dir. systemd unit file. makefile.Ben Morrison2019-06-058-10/+89
* updated index.AddUser() calls to reflect new version of registry libBen Morrison2019-06-043-5/+5
* updated registry library depBen Morrison2019-06-042-3/+3
* updated readme to mention other database back-ends in developmentBen Morrison2019-06-041-4/+5
* split caching and db function filesBen Morrison2019-06-042-129/+135
* expanding options for databases. abstractions for database push/pull functionsBen Morrison2019-06-044-30/+94
* updated version constantBen Morrison2019-06-041-1/+1
* fixed most example api calls with horizontal scrolling v0.2.1Ben Morrison2019-06-041-10/+10
* link to buckket/twtxt in notes sectionBen Morrison2019-06-041-0/+3
* added long flags list to -h outputBen Morrison2019-06-041-4/+5
* expanded readmeBen Morrison2019-06-041-16/+54
* minor correction in landing page query output exampleBen Morrison2019-06-041-1/+1
* refactored landing page template and tweaked stylingBen Morrison2019-06-042-20/+44
* expanded -m help text to cover landing page customization, example api queriesBen Morrison2019-06-041-25/+150
* adding version to index template v0.2.0Ben Morrison2019-06-033-2/+4
* version const updatedBen Morrison2019-06-031-2/+2
* updated readme re: ?page=NBen Morrison2019-06-031-1/+3
* Merge branch 'dev' into 'master' for v0.2.0Ben Morrison2019-06-036-35/+117
|\
| * updated registry depBen Morrison2019-06-032-3/+3
| * ?page=N query addedBen Morrison2019-06-032-17/+81
| * explicit method enumeration and page query valueBen Morrison2019-06-031-12/+28
| * updated usage guide to reflect ?page=NBen Morrison2019-06-031-3/+5
| * updated depsBen Morrison2019-06-032-3/+3
|/
* updated wording of install sectionBen Morrison2019-06-011-2/+2
an> // declarations for them. Remember to define (not just declare) constants with // extern linkage in this section, since C++ global constants have internal // linkage by default. // // End Globals int main(int argc, char* argv[]) { atexit(reset); // we require a 32-bit little-endian system assert(sizeof(int) == 4); assert(sizeof(float) == 4); assert_little_endian(); // End One-time Setup // Commandline Parsing // End Commandline Parsing // End Main return 0; } // Unit Tests // End Unit Tests //: our first directive; insert the following headers at the start of the program :(before "End Includes") #include <assert.h> #include <stdlib.h> //: Without directives or with the :(code) directive, lines get added at the //: end. //: //: Regardless of where functions are defined, we can call them anywhere we //: like as long as we format the function header in a specific way: put it //: all on a single line without indent, end the line with ') {' and no //: trailing whitespace. As long as functions uniformly start this way, our //: 'build' script contains a little command to automatically generate //: declarations for them. :(code) void reset() { // End Reset } void assert_little_endian() { const int x = 1; const char* y = reinterpret_cast<const char*>(&x); if (*y != 1) { cerr << "SubX requires a little-endian processor. Do you have Intel (or AMD or Atom) inside?\n"; exit(1); } } :(before "End Includes") #include<iostream> using std::cerr;